Nagios Ping Problem?


#1

Hi,

I am new in linux. Two days back I have installed Nagios on my linux (redhat) system and its working fine with other services but problem is only that i m getting following message on my mail and nagios web interface .

Host Status: DOWN (for 2d 17h 38m 2s)
Status Information: /bin/ping -n -U -w 10 -c 1 192.16.11.1
CRITICAL - Could not interpret output from ping command

My cgi.cfg file configuration -->

ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$

ANd My commands.cfg configuration —>

‘check_ping’ command definition

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

command_line $USER1$/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5

command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1

      }

Can anyone solve my problem and also let me know how can i change monitoring http service instead of ping and where i have to done changes.

Thanks in advance…

MAP 007


Could not interpret output from ping command
#2

Status Information: /bin/ping -n -U -w 10 -c 1 192.16.11.1

ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$

Well, the counter thats executed in the above command is 1… so it will send just an echo request, and will wait for just 1 echo reply

In the below command, its sending 5 echo requests, so it will wait for 5 echo requests.

Maybe you could try putting the same counter for each command.

Just guessing…