Problem with check_ping


#1

Hi There,

I just installed nagios-3.0b5.tar.gz on a freshly installed Redhat Ent. 5 server and I’m experiencing some trouble with the check_ping plugin.

I keep on getting the following Error
<-----Error------>
Current Status: UNKNOWN (for 0d 4h 51m 40s)
Status Information: /bin/ping -n -U -w 10 -c 5 10.4.0.2
CRITICAL - Could not interpret output from ping command
</----Error----->

Here’s a copy the config I’m using.
<----Config----->
define host{
use generic-switch ; Inherit default values from a template
host_name AP1 ;The name we’re giving to this switch
alias AP1 Main ; A longer name associated with the switch
address 10.4.0.1 ; IP address of the switch
hostgroups switches ; Host groups this switch is associated with
}

define service{
use generic-service ; Inherit values from a template
host_name AP1 ; The name of the host the service is associated with
service_description PING ; The service description
check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}

This is the first time I’ve installed Nagios so I’m most probably doing something wrong some where. Any ideas would be very welcome.

Thanks in advance.


#2

Anyone?


#3

in your service definition try changing the check_command line to read simply:

check_command check_ping

the arguments you have after the command should already be listed in the chec_ping command config.


#4

I’m now getting the following error:
check_ping: %s: Warning threshold must be integer or percentage!

This is what the definition looks like in my commands.cfg file.

‘check_ping’ command definition

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

Thanks for the reply.


#5

try this…

command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w 100.0,60% -c 200.0,90% -p 5