And that's even more unexpected. If you ran the test as the nagios user then you did exactly what nagios is doing. Do you have multiple copies of nagios running? Stop nagios, use ps to verify that all are dead and restart nagios.
-- Marc > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Daniel Carvalho > Sent: Thursday, March 02, 2006 10:32 AM > To: Marc Powell > Cc: [email protected] > Subject: Re: [Nagios-users] nagios check-host-alive always down {Disarmed} > {Fraud?} {Disarmed} {Fraud?} > > Marc, > > The nagios users check_ping result is: PING OK - Packet loss = 0%, RTA = > 0.07 ms > > The SELinux is not enabled because I installed ganglia monitor too. And > there is no message like 'avc denied' in /var/log/message and the output > of command audit2allow is blank. > > Thanks > > Daniel > > > On 3/2/06, Marc Powell <[EMAIL PROTECTED]> wrote: > > Hmm. That's an unexpected result. The next step would be to go one > level > higher and execute nagios' check_ping as the nagios user -- > > /path/to/nagios/libexec/check_ping -H 192.168.0.1 -w 3000.0,80% -c > 5000.0,100% -p 1 > > Do you have SELinux enabled? Have you modified the default policies? > I'd > look for 'avc denied' messages related to nagios in > /var/log/messages > just to be safe or, as root, run 'audit2allow -l -i > /var/log/messages > -v'. > > -- > Marc Powell > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto: nagios- > users- <mailto:nagios-users-> > > [EMAIL PROTECTED] On Behalf Of Daniel Carvalho > > Sent: Thursday, March 02, 2006 10:00 AM > > To: [email protected] <mailto:nagios- > [EMAIL PROTECTED]> > > Subject: Re: [Nagios-users] nagios check-host-alive always down > {Disarmed} > > {Fraud?} > > > > Hi Marc, > > > > The command /bin/ping -n -U -w 10 -c 1 192.168.0.1 is executable > for > user > > nagios. I logged as nagios user and exec the command above and > everythings > > is OK. > > > > The nagios machine is running CentOS 4.0. I installed nagios via > yum. > > > > Thanks > > > > Daniel > > > > > > On 3/2/06, Marc Powell < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] > > > > wrote: > > > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] <mailto: > nagios- > > [EMAIL PROTECTED]> [mailto:nagios-users- > > > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> ] On Behalf Of Daniel Carvalho > > > Sent: Thursday, March 02, 2006 6:11 AM > > > To: [email protected] > > > 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 <http://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?cmdlnk&kid0944&bid$1720&dat1642 > > _______________________________________________ > > Nagios-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/nagios-users > <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 > > > > > > > > ------------------------------------------------------- > 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?cmdlnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nagios-users > <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 > > ------------------------------------------------------- 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 [email protected] 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
