nagios check-host-alive always down

Marc Powell marc at ena.com
Thu Mar 2 16:31:03 CET 2006



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Daniel Carvalho
> Sent: Thursday, March 02, 2006 6:11 AM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] nagios check-host-alive always down
{Disarmed}
> {Fraud?}
> 
> Hello Marc, thanks for your answer.
> 
> I'm sorry to reply to you too late. Here in my country we were on
holiday.
> 
> The notification information is sent to an e-mail address that I
> especified on contacts.cfg. The web interface is not installed yet.
> 
> Find attached some cfg files and the notification alert.
> 
> Thanks and best regards
> 
> ***** Nagios  *****
> 
> Notification Type: PROBLEM
> Host: bud01
> State: DOWN
> Address: 192.168.0.1 
> Info: /bin/ping -n -U -w 10 -c 1 192.168.0.1 

It would appear that /bin/ping is not executable by the nagios user. Try
running the command in the Info as the nagios user. In some
distributions, ping is only executable by root. You can modify that by
giving /bin/ping suid permissions if it doesn't have them already --

# ls -al /bin/ping
-rwxr-xr-x    1 root     root        27860 Sep 29 13:28 /bin/ping

# chmod u+s /bin/ping

# ls -al /bin/ping
-rwsr-xr-x    1 root     root        27860 Sep 29 13:28 /bin/ping

--
Marc


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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