Hi
I'm trying to monitor few services on an older FreeBSD server, version 5.4.
I tried zabbix_agentd from ports (1.4.1) and I also compiled and tried the agent from the last version of Zabbix (1.4.6).
First - proc.num[] doesn't work. I found a post here stating that proc.num[] is not supported until FreeBSD version 6. However, the post was related to an older version of Zabbix and I thought that maybe it's working on the last version. I've got only ZBX_NOTSUPPORTED in the logs.
I decided to use UserParameters but no luck with this one either. The external script returns the right number of processes but zabbix_agentd reports a smaller number which decrease in time and finally become 0.
For example, 77 apache processes,
root@server:ttyp2 ~ # /etc/zabbix/apache_proc.sh
77
... zabbix logs reported:
95348:20080826:151841 Run remote command [/etc/zabbix/apache_proc.sh] Result [8] [ 1]...
95348:20080826:151841 Sending back [ 1]
Anyone has any experience with the agent on FreeBSD 5.2? Any other approach will do the job. I'm just trying to monitor the number of few processes - apache, postgresql and tinydns.
Thanks,
Daniel
I'm trying to monitor few services on an older FreeBSD server, version 5.4.
I tried zabbix_agentd from ports (1.4.1) and I also compiled and tried the agent from the last version of Zabbix (1.4.6).
First - proc.num[] doesn't work. I found a post here stating that proc.num[] is not supported until FreeBSD version 6. However, the post was related to an older version of Zabbix and I thought that maybe it's working on the last version. I've got only ZBX_NOTSUPPORTED in the logs.
I decided to use UserParameters but no luck with this one either. The external script returns the right number of processes but zabbix_agentd reports a smaller number which decrease in time and finally become 0.
For example, 77 apache processes,
root@server:ttyp2 ~ # /etc/zabbix/apache_proc.sh
77
... zabbix logs reported:
95348:20080826:151841 Run remote command [/etc/zabbix/apache_proc.sh] Result [8] [ 1]...
95348:20080826:151841 Sending back [ 1]
Anyone has any experience with the agent on FreeBSD 5.2? Any other approach will do the job. I'm just trying to monitor the number of few processes - apache, postgresql and tinydns.
Thanks,
Daniel