Nagios 2.0 check_ping not working


#1

Hi everyone,

I’m a little stumped and was wondering if anyone can help me.

I’m using Nagios 2.0. Everything is setup and working so far as I know. The only issue I’m having is my PING and check-host-alive service.

I just get UNKNOWN with this as status information: /bin/ping -n -U -w 10 -c 1 192.168.1.101 .

The check_ping service works, I was able to run it from cli as well as the ping service within linux itself. This is running on CentOS.

Thank you very much in advance!!!

Born2Net


#2

Try running the command from CLI as user Nagios.


#3

Ok. Thanks!


#4

Thank you! That did the trick. Never thought about that. This issue is now resolved.

Thanks!!!

Born2Net


#5

But you didn’t say how you fixed it. I will guess that nagios user didn’t have access to the ping command?


#6

Sorry, mah bad. :slight_smile:

Nagios user didn’t have access to use the ping file so I just did

chmod u+s ping

That gave the nagios user access and Nagios was good to go on ping afterwards.

Born2Net