Ping Service Status UNKNOWN

Victor Ruiz Rivas vruiz at renfe.es
Thu Apr 21 22:04:00 CEST 2005


Hello:

I've installed Nagios 1.2 on a Red Hat Enterprise Linux machine running 
2.4.21-15.EL kernel version. Other services are running ok but ping 
service status is UNKNOWN for all hosts.

For troubleshooting I redefined the check_ping command definition in 
checkcommands.cfg like:

    # 'check_ping' command definition
        define command{
                    command_name    check_ping
                    command_line    $USER1$/check_ping_debug -H 
$HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
            }

to point to a shell script "check_ping_debug" containing:

    #!/bin/sh
    echo `date` >> /tmp/debug_check_ping_plugin
    echo $* >> /tmp/debug_check_ping_plugin
    /usr/local/nagios/libexec/check_ping $*
 
as suggested in Nagios web page to find out the arguments Nagios does 
pass to the check_ping command.

After starting Nagios it turns out that the arguments passed to 
check_ping are:

    [root at ovxterm nagios]# tail -f /tmp/debug_check_ping_plugin
    jue abr 21 19:28:08 CEST 2005
    -H 192.168.252.3 -w 100.0,20% -c 500.0,60% -p 5
    jue abr 21 19:28:42 CEST 2005
    -H 192.168.252.4 -w 100.0,20% -c 500.0,60% -p 5
    jue abr 21 19:28:53 CEST 2005
    -H 192.168.252.5 -w 100.0,20% -c 500.0,60% -p 5
    ....

And issuing manually the command I get the next error:

    [root at ovxterm libexec]# ./check_ping -H 192.168.252.3 -w 100.0,20% 
-c 500.0,60% -p 5
    /bin/ping -n -U -w 10 -c 5 192.168.252.3
    CRITICAL - Could not interpret output from ping command

The ping version is:

    [root at ovxterm libexec]# ping -V
    ping utility, iputils-ss020927

and its output looks like this:

    [root at ovxterm libexec]# /bin/ping -n -U -w 10 -c 5 192.168.252.3
    PING 192.168.252.3 (192.168.252.3) 56(84) bytes of data.
    64 bytes from 192.168.252.3: icmp_seq=0 ttl=253 time=1.05 ms
    64 bytes from 192.168.252.3: icmp_seq=1 ttl=253 time=1.39 ms
    64 bytes from 192.168.252.3: icmp_seq=2 ttl=253 time=1.00 ms
    64 bytes from 192.168.252.3: icmp_seq=3 ttl=253 time=1.10 ms
    64 bytes from 192.168.252.3: icmp_seq=4 ttl=253 time=1.21 ms

    --- 192.168.252.3 ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4046ms
    rtt min/avg/max/mdev = 1.000/1.153/1.394/0.144 ms, pipe 2


Can anyone help me with this error?
What should the output format be?
Why can't check_ping interpret it?

Thanks,
Victor Ruiz


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list