Hi.
I'm using zabbix server 3.4.6
Zabbix agent is on version 3.0.7 (latest from jessie backports).
I've noticed some services being down and zabbix didn't alert me, so I asked myself why is that. Doing some troubleshooting I've noticed that zabbix_get on host with checking item is returning different value compared to the same command executed directly on zabbix agent.
Example:
- zabbix agent have user param defined item:
UserParameter=check.nfs.process,ps auxw | grep nfs | wc -l
If I execute that command directly on zabbix agent it returns value - e.g. 2, but if I run on zabbix server zabbix_get
# zabbix_get -s AGENT_IP -p 10050 -k check.nfs.process
I will get value 3 (one more). Why does this happen? I've other checks with grep-ing string and it works just fine.
How to troubleshoot this difference?
I'm using zabbix server 3.4.6
Zabbix agent is on version 3.0.7 (latest from jessie backports).
I've noticed some services being down and zabbix didn't alert me, so I asked myself why is that. Doing some troubleshooting I've noticed that zabbix_get on host with checking item is returning different value compared to the same command executed directly on zabbix agent.
Example:
- zabbix agent have user param defined item:
UserParameter=check.nfs.process,ps auxw | grep nfs | wc -l
If I execute that command directly on zabbix agent it returns value - e.g. 2, but if I run on zabbix server zabbix_get
# zabbix_get -s AGENT_IP -p 10050 -k check.nfs.process
I will get value 3 (one more). Why does this happen? I've other checks with grep-ing string and it works just fine.
How to troubleshoot this difference?
Comment