nagios check-host-alive always down {Disarmed} {Fraud?}
Marc Powell
marc at ena.com
Thu Mar 2 17:10:31 CET 2006
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: 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 10:00 AM
> To: nagios-users at lists.sourceforge.net
> 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 < marc at ena.com <mailto:marc at ena.com> > wrote:
>
>
>
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net <mailto: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?cmdlnk&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
>
>
-------------------------------------------------------
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