I got everything figured out on zabbix and need this last bit to go to production.
I have this in my zabbix_agentd.conf:
UserParameter=dhcpd.test,/usr/local/bin/check_dhcp.sh
[root@oolong init.d]# zabbix_agentd -t dhcpd.test
dhcpd.test [m|ZBX_NOTSUPPORTED]
[root@oolong init.d]# zabbix_get -s localhost -k dhcpd.test
ZBX_NOTSUPPORTED
The actual script exits with status zero:
[root@oolong init.d]# /usr/local/bin/check_dhcp.sh
[root@oolong init.d]# echo $?
0
I guess the question is how to fix this?
I have this in my zabbix_agentd.conf:
UserParameter=dhcpd.test,/usr/local/bin/check_dhcp.sh
[root@oolong init.d]# zabbix_agentd -t dhcpd.test
dhcpd.test [m|ZBX_NOTSUPPORTED]
[root@oolong init.d]# zabbix_get -s localhost -k dhcpd.test
ZBX_NOTSUPPORTED
The actual script exits with status zero:
[root@oolong init.d]# /usr/local/bin/check_dhcp.sh
[root@oolong init.d]# echo $?
0
I guess the question is how to fix this?
Comment