Trouble with ping

Marc Powell marc at ena.com
Thu Apr 22 20:23:46 CEST 2004


Mark Price <mailto:mark at tqhosting.com> wrote:
> Hi, I am a new NAGIOS user and am unable to get the ping service to
> work. 

[snippage]

> 
> the problem is that the pings always go into an unknown state in
> nagios.  In the "status information" for the service, it says:
> /bin/ping -n -U -c 5 209.120.238.150, but I don't have that /bin/ping
> command anywhere in my .cfg files.  It was in cgi.cfg but I blanked
> it out.   
> 
> It shows the same thing in my nagios.log:
> 
> [1082654666] SERVICE ALERT: host1;PING;UNKNOWN;SOFT;1;/bin/ping -n -U
> -c 5 10.1.1.1
> [1082654726] SERVICE ALERT: host1;PING;UNKNOWN;HARD;2;/bin/ping -n -U
> -c 5 10.1.1.1
> 
> If I ping that host from the commandline on this box, it works fine.
> 
> any ideas?  thanks


Check_ping is a fancy wrapper to /bin/ping. More than likely /bin/ping
can only be run as root. You'll need to suid the executable so that
other users can run it. chmod 4755 /bin/ping should do it for you.

--
Marc 


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
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