I want use zabbix instead nagios. I have a trouble, need help.
I have many server, each server need to ping it's master/slave,so it's different for each server,I want exec this command to easier for insted.
example:
In nagios I write in nrep.conf.
/usr/local/nagios/libexec/check_ping -H 192.168.1.1 -p 5 -w 1,20% -c 2,20%
In zabbix I write:
UserParameter=nagios.check_ping,/usr/local/nagios/libexec/check_ping -H 192.168.1.1 -p 5 -w 1,20% -c 2,20%
And use this for test:
/usr/local/zabbix/sbin/zabbix_agentd -c /usr/local/zabbix/zabbix_agentd.conf -t "nagios.check_ping"
I found exec this must less 3 sec,more than 3 sec just view "alarm clock"
Modify zabbix_agentd.conf of Timeout,but is not work.
for 3 sec (-p 3)
[root@localhost zabbix]# /usr/local/zabbix/sbin/zabbix_agentd -c /usr/local/zabbix/zabbix_agentd.conf -t "nagios.check_ping"
nagios.check_ping [t|PING OK - Packet loss = 0%, RTA = 0.55 ms|rta=0.549000ms;1.000000;2.000000;0.000000 pl=0%;20;20;0]
for 4 sec (-p 4)
[root@localhost zabbix]# /usr/local/zabbix/sbin/zabbix_agentd -c /usr/local/zabbix/zabbix_agentd.conf -t "nagios.check_ping"
Alarm clock
I have many server, each server need to ping it's master/slave,so it's different for each server,I want exec this command to easier for insted.
example:
In nagios I write in nrep.conf.
/usr/local/nagios/libexec/check_ping -H 192.168.1.1 -p 5 -w 1,20% -c 2,20%
In zabbix I write:
UserParameter=nagios.check_ping,/usr/local/nagios/libexec/check_ping -H 192.168.1.1 -p 5 -w 1,20% -c 2,20%
And use this for test:
/usr/local/zabbix/sbin/zabbix_agentd -c /usr/local/zabbix/zabbix_agentd.conf -t "nagios.check_ping"
I found exec this must less 3 sec,more than 3 sec just view "alarm clock"
Modify zabbix_agentd.conf of Timeout,but is not work.
for 3 sec (-p 3)
[root@localhost zabbix]# /usr/local/zabbix/sbin/zabbix_agentd -c /usr/local/zabbix/zabbix_agentd.conf -t "nagios.check_ping"
nagios.check_ping [t|PING OK - Packet loss = 0%, RTA = 0.55 ms|rta=0.549000ms;1.000000;2.000000;0.000000 pl=0%;20;20;0]
for 4 sec (-p 4)
[root@localhost zabbix]# /usr/local/zabbix/sbin/zabbix_agentd -c /usr/local/zabbix/zabbix_agentd.conf -t "nagios.check_ping"
Alarm clock
Comment