summaryrefslogtreecommitdiffstats
path: root/src/zabbix_agent
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-09-15 11:05:18 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-09-15 11:05:18 +0000
commita4e6191b4a44b51e087ac05775001167bf6cdc35 (patch)
tree3188e2d22ccd164cb94e73df37d77cfb222bfcc3 /src/zabbix_agent
parentc39937a4da83dff194e41245d65031499b604a7d (diff)
downloadzabbix-a4e6191b4a44b51e087ac05775001167bf6cdc35.tar.gz
zabbix-a4e6191b4a44b51e087ac05775001167bf6cdc35.tar.xz
zabbix-a4e6191b4a44b51e087ac05775001167bf6cdc35.zip
More support for netload*. Change in documentation.
git-svn-id: svn://svn.zabbix.com/trunk@496 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_agent')
-rw-r--r--src/zabbix_agent/stats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zabbix_agent/stats.c b/src/zabbix_agent/stats.c
index 2a10730f..38950234 100644
--- a/src/zabbix_agent/stats.c
+++ b/src/zabbix_agent/stats.c
@@ -125,7 +125,7 @@ void report_stat(int now)
int i,j;
- file=fopen("/tmp/zabbix_agentd.tmp","w");
+ file=fopen("/tmp/zabbix_agentd.tmp2","w");
if(NULL == file)
{
fprintf(stderr, "Cannot file [%s] [%m]\n","/proc/net/dev");
@@ -244,6 +244,7 @@ void report_stat(int now)
}
fclose(file);
+ rename("/tmp/zabbix_agentd.tmp2","/tmp/zabbix_agentd.tmp");
}