Ok, a really wierd one here.
Zabbix 1.6.1
Agent 1.6.1 CentOS x86_64
I have a script that gives me some cpu statistics, and I get the following error in the zabbix_server.log file
4039:20081217:152934 Timeout while answering request
4039:20081217:152934 Get value from agent failed. Error: ZBX_TCP_READ() failed [Interrupted system call]
4039:20081217:152934 Host [webcargo]: first network error, wait for 15 seconds
4039:20081217:152934 Parameter [vmc.cpu.stats] will be checked after 120 seconds on host [webcargo]
Here is the zabbix_agentd.conf entries
UserParameter=vmc.cpu.stats,/usr/local/sbin/cpu_stats.pl
UserParameter=vmc.cpu.iowait,/usr/local/sbin/cpu_stats.pl -iowait
Now as you can see I have the same script being used, and if you pass a parameter it gives you different values.
Running the script manually using either of the above returns a value immediately.
If I telnet right to the box:
# telnet webcargo 10050
Trying 10.1.16.174...
Connected to webcargo.vm.local (10.1.16.174).
Escape character is '^]'.
vmc.cpu.stats
(...30 seconds wait...)
ZBXD17745Connection closed by foreign host.
However that same box using the other UserParameter comes back fast.
# telnet webcargo 10050
Trying 10.1.16.174...
Connected to webcargo.vm.local (10.1.16.174).
Escape character is '^]'.
vmc.cpu.iowait
ZBXD0.00Connection closed by foreign host.
Any insight? And please don't tell me to use the built in cpu items.
Zabbix 1.6.1
Agent 1.6.1 CentOS x86_64
I have a script that gives me some cpu statistics, and I get the following error in the zabbix_server.log file
4039:20081217:152934 Timeout while answering request
4039:20081217:152934 Get value from agent failed. Error: ZBX_TCP_READ() failed [Interrupted system call]
4039:20081217:152934 Host [webcargo]: first network error, wait for 15 seconds
4039:20081217:152934 Parameter [vmc.cpu.stats] will be checked after 120 seconds on host [webcargo]
Here is the zabbix_agentd.conf entries
UserParameter=vmc.cpu.stats,/usr/local/sbin/cpu_stats.pl
UserParameter=vmc.cpu.iowait,/usr/local/sbin/cpu_stats.pl -iowait
Now as you can see I have the same script being used, and if you pass a parameter it gives you different values.
Running the script manually using either of the above returns a value immediately.
If I telnet right to the box:
# telnet webcargo 10050
Trying 10.1.16.174...
Connected to webcargo.vm.local (10.1.16.174).
Escape character is '^]'.
vmc.cpu.stats
(...30 seconds wait...)
ZBXD17745Connection closed by foreign host.
However that same box using the other UserParameter comes back fast.
# telnet webcargo 10050
Trying 10.1.16.174...
Connected to webcargo.vm.local (10.1.16.174).
Escape character is '^]'.
vmc.cpu.iowait
ZBXD0.00Connection closed by foreign host.
Any insight? And please don't tell me to use the built in cpu items.
Comment