I have added check_ping command to monitor the hosts but can't get it work, everythig is configured the same ( as other commands) but this plugins doesn't want to work.
On remote host in nrpe.cfg the command is defined as:
and from this remote server command line it works:command[check_ping]=/usr/local/nagios/libexec/check_ping -H localhost -w 100.0,60% -c 200.0,60%
BUT Nagios page gives an orange error:# /usr/local/nagios/libexec/check_ping -H localhost -w 100.0,60% -c 200.0,60%
PING OK - Packet loss = 0%, RTA = 0.05 ms|rta=0.047000ms;100.000000;200.000000;0.000000 pl=0%;60;60;0
PING UNKNOWN 11-23-2011 15:15:30 0d 0h 21m 10s 3/3 /bin/ping6 -n -U -w 30 -c 5 localhost
On nagios server in the host configuration I have:
OS on the both servers is CentOS Linux release 6.0# Ping check
define service{
use generic-service
host_name z1.***.com
service_description PING
check_command check_nrpe!check_ping
max_check_attempts 3
}
Please explain what am I doing wrong and how to fix this?