nagios check-host-alive always down {Disarmed} {Fraud?} {Disarmed} {Fraud?}
Daniel Carvalho
daniel at dep.fem.unicamp.br
Thu Mar 2 18:23:50 CET 2006
When I run as nagios user, everything works fine. And I have only one copy
of nagios when I ran ps command. I stoped and restart nagios and only one
service appeared.
Thanks
Daniel
On 3/2/06, Marc Powell <marc at ena.com> wrote:
>
> 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: dlcarvalho at gmail.com [mailto:dlcarvalho at gmail.com] On Behalf Of
> > Daniel Carvalho
> > Sent: Thursday, March 02, 2006 10:32 AM
> > To: Marc Powell
> > Cc: nagios-users at lists.sourceforge.net
> > 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 <marc at ena.com> 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: nagios-users-admin at lists.sourceforge.net [mailto:
> nagios-
> > users- <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 <mailto: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
> > <mailto: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 <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
> > > Nagios-users at lists.sourceforge.net
> > >
> 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
> > Nagios-users at lists.sourceforge.net
> > 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
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060302/37655b9c/attachment.html>
More information about the Users
mailing list