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.<br><br>Thanks <br><br>Daniel<br><br><div><span class="gmail_quote">
On 3/2/06, <b class="gmail_sendername">Marc Powell</b> <<a href="mailto:marc@ena.com">marc@ena.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
And that's even more unexpected. If you ran the test as the nagios user<br>then you did exactly what nagios is doing. Do you have multiple copies<br>of nagios running? Stop nagios, use ps to verify that all are dead and<br>
restart nagios.<br><br>--<br>Marc<br><br>> -----Original Message-----<br>> From: <a href="mailto:dlcarvalho@gmail.com">dlcarvalho@gmail.com</a> [mailto:<a href="mailto:dlcarvalho@gmail.com">dlcarvalho@gmail.com</a>] On Behalf Of
<br>> Daniel Carvalho<br>> Sent: Thursday, March 02, 2006 10:32 AM<br>> To: Marc Powell<br>> Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>> Subject: Re: [Nagios-users] nagios check-host-alive always down
<br>{Disarmed}<br>> {Fraud?} {Disarmed} {Fraud?}<br>><br>> Marc,<br>><br>> The nagios users check_ping result is: PING OK - Packet loss = 0%, RTA<br>=<br>> 0.07 ms<br>><br>> The SELinux is not enabled because I installed ganglia monitor too.
<br>And<br>> there is no message like 'avc denied' in /var/log/message and the<br>output<br>> of command audit2allow is blank.<br>><br>> Thanks<br>><br>> Daniel<br>><br>><br>> On 3/2/06, Marc Powell <
<a href="mailto:marc@ena.com">marc@ena.com</a>> wrote:<br>><br>> Hmm. That's an unexpected result. The next step would be to go<br>one<br>> level<br>> higher and execute nagios' check_ping as the nagios user --
<br>><br>> /path/to/nagios/libexec/check_ping -H <a href="http://192.168.0.1">192.168.0.1</a> -w 3000.0,80%<br>-c<br>> 5000.0,100% -p 1<br>><br>> Do you have SELinux enabled? Have you modified the default
<br>policies?<br>> I'd<br>> look for 'avc denied' messages related to nagios in<br>> /var/log/messages<br>> just to be safe or, as root, run 'audit2allow -l -i<br>> /var/log/messages<br>> -v'.
<br>><br>> --<br>> Marc Powell<br>> > -----Original Message-----<br>> > From: <a href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net
</a> [mailto:<br>nagios-<br>> users- <mailto:<a href="mailto:nagios-users-">nagios-users-</a>><br>> > <a href="mailto:admin@lists.sourceforge.net">admin@lists.sourceforge.net</a>] On Behalf Of Daniel Carvalho
<br>> > Sent: Thursday, March 02, 2006 10:00 AM<br>> > To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a> <mailto:<a href="mailto:nagios-">nagios-</a>
<br>> <a href="mailto:users@lists.sourceforge.net">users@lists.sourceforge.net</a>><br>> > Subject: Re: [Nagios-users] nagios check-host-alive always<br>down<br>> {Disarmed}<br>> > {Fraud?}
<br>> ><br>> > Hi Marc,<br>> ><br>> > The command /bin/ping -n -U -w 10 -c 1 <a href="http://192.168.0.1">192.168.0.1</a> is<br>executable<br>> for<br>> user<br>
> > nagios. I logged as nagios user and exec the command above and<br>> everythings<br>> > is OK.<br>> ><br>> > The nagios machine is running CentOS 4.0. I installed nagios
<br>via<br>> yum.<br>> ><br>> > Thanks<br>> ><br>> > Daniel<br>> ><br>> ><br>> > On 3/2/06, Marc Powell < <a href="mailto:marc@ena.com">
marc@ena.com</a> <mailto:<a href="mailto:marc@ena.com">marc@ena.com</a> > ><br>> wrote:<br>> ><br>> ><br>> ><br>> > > -----Original Message-----<br>> > > From:
<a href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net</a><br><mailto:<br>> nagios-<br>> > <a href="mailto:users-admin@lists.sourceforge.net">users-admin@lists.sourceforge.net
</a>> [mailto:<a href="mailto:nagios-users-">nagios-users-</a><br>> > > <a href="mailto:admin@lists.sourceforge.net">admin@lists.sourceforge.net</a><br>> <mailto:<a href="mailto:admin@lists.sourceforge.net">
admin@lists.sourceforge.net</a>> ] On Behalf Of Daniel Carvalho<br>> > > Sent: Thursday, March 02, 2006 6:11 AM<br>> > > To: <a href="mailto:nagios-users@lists.sourceforge.net">
nagios-users@lists.sourceforge.net</a><br>> > > Subject: Re: [Nagios-users] nagios check-host-alive<br>always<br>> down<br>> > {Disarmed}<br>> > > {Fraud?}
<br>> > ><br>> > > Hello Marc, thanks for your answer.<br>> > ><br>> > > I'm sorry to reply to you too late. Here in my country<br>we<br>
> were<br>> on<br>> > holiday.<br>> > ><br>> > > The notification information is sent to an e-mail<br>address<br>> that<br>> I<br>> > > especified on
contacts.cfg. The web interface is not<br>> installed<br>> > yet.<br>> > ><br>> > > Find attached some cfg files and the notification<br>alert.<br>> > >
<br>> > > Thanks and best regards<br>> > ><br>> > > ***** Nagios *****<br>> > ><br>> > > Notification Type: PROBLEM
<br>> > > Host: bud01<br>> > > State: DOWN<br>> > > Address: <a href="http://192.168.0.1">192.168.0.1</a> <<a href="http://192.168.0.1">http://192.168.0.1</a>
><br>> > > Info: /bin/ping -n -U -w 10 -c 1 <a href="http://192.168.0.1">192.168.0.1</a><br>> ><br>> > It would appear that /bin/ping is not executable by the<br>> nagios
<br>> user.<br>> > Try<br>> > running the command in the Info as the nagios user. In<br>some<br>> > distributions, ping is only executable by root. You can<br>> modify
<br>> that<br>> > by<br>> > giving /bin/ping suid permissions if it doesn't have<br>them<br>> already --<br>> ><br>> > # ls -al /bin/ping<br>> > -rwxr-xr-x 1 root root 27860 Sep 29 13:28
<br>> /bin/ping<br>> ><br>> > # chmod u+s /bin/ping<br>> ><br>> > # ls -al /bin/ping<br>> > -rwsr-xr-x 1 root root 27860 Sep 29 13:28
<br>> /bin/ping<br>> ><br>> > --<br>> > Marc<br>> ><br>> ><br>> > -------------------------------------------------------<br>
> > This SF.Net email is sponsored by xPML, a groundbreaking<br>> scripting<br>> > language<br>> > that extends applications into web and mobile media.<br>Attend<br>
> the<br>> live<br>> > webcast<br>> > and join the prime developer group breaking into this<br>new<br>> coding<br>> > territory!<br>> ><br>><br><a href="http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642">
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642</a><br>> > _______________________________________________<br>> > Nagios-users mailing list<br>> >
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>> ><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>> <<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>><br>> > ::: Please include Nagios version, plugin version (-v)
<br>and<br>> OS<br>> when<br>> > reporting any issue.<br>> > ::: Messages without supporting info will risk being<br>sent to<br>> > /dev/null<br>> ><br>> >
<br>><br>><br>><br>> -------------------------------------------------------<br>> This SF.Net email is sponsored by xPML, a groundbreaking<br>scripting<br>> language<br>> that extends applications into web and mobile media. Attend the
<br>live<br>> webcast<br>> and join the prime developer group breaking into this new coding<br>> territory!<br>><br><a href="http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642">
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642</a><br>> _______________________________________________<br>> Nagios-users mailing list<br>> <a href="mailto:Nagios-users@lists.sourceforge.net">
Nagios-users@lists.sourceforge.net</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>> <<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a>><br>> ::: Please include Nagios version, plugin version (-v) and OS<br>when<br>> reporting any issue.<br>> ::: Messages without supporting info will risk being sent to
<br>> /dev/null<br>><br>><br><br><br><br>-------------------------------------------------------<br>This SF.Net email is sponsored by xPML, a groundbreaking scripting language<br>that extends applications into web and mobile media. Attend the live webcast
<br>and join the prime developer group breaking into this new coding territory!<br><a href="http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642">http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null
<br></blockquote></div><br>