Servis state information is:
Current status: UNKNOWN
Status information: /bin/ping -n -U -w 10 -c 5 127.0.0.1
CRITICAL - Could not interpret output from ping command
localhost has status DOWN.
Other services as Current load, HTTP, Root Partition is ok. And file /bin/ping has 777 (-rwxrwxrwx) permissions. I tried to execute
Code: Select all
/bin/ping -n -U -w 10 -c 5 127.0.0.1and get
Code: Select all
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.030 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.041 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.035 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.026 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.034 ms
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.026/0.033/0.041/0.006 msCode: Select all
define command{
command_name check_ping
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}In file localhost.cfg check_ping is described as:
Code: Select all
define service{
use local-service ; Name of service template to use
host_name localhost
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}So, can anybody help me and give same advises, what shuld I do