Hi, I am using solaris x86. I have made the config ok. However, I need to monitor the iowait. Thus I have added the following at /etc/zabbix/zabbix_agentd.conf:
UserParameter=system[read],/usr/local/zabbix/bin/monio
and the monio have the following:
iostat -ix 5 2 |awk '$1 ~ /c0d0/{a=$6} END {print a}'
however, the agentd report 'broken pipe'. While:
iostat -ix 5 2 |awk '$1 ~ /c0d0/{a=$6} END {print a}'
can be run ok.
I browse the agentd code thought it is TIMEOUT problem. I changed:
#define AGENT_TIMEOUT 20
at the common.h and compiled again. Still have the broken pipe error.
Thus I would like to know if it is related to the TIMEOUT problem, how can I made
the changes?
UserParameter=system[read],/usr/local/zabbix/bin/monio
and the monio have the following:
iostat -ix 5 2 |awk '$1 ~ /c0d0/{a=$6} END {print a}'
however, the agentd report 'broken pipe'. While:
iostat -ix 5 2 |awk '$1 ~ /c0d0/{a=$6} END {print a}'
can be run ok.
I browse the agentd code thought it is TIMEOUT problem. I changed:
#define AGENT_TIMEOUT 20
at the common.h and compiled again. Still have the broken pipe error.
Thus I would like to know if it is related to the TIMEOUT problem, how can I made
the changes?