Hi Marc, <br><br>The command /bin/ping -n -U -w 10 -c 1 <span><a href="http://192.168.0.1">192.168.0.1</a></span> is executable for user nagios. I logged as nagios user and exec the command above and everythings is OK.<br>
<br>The nagios machine is running CentOS 4.0. I installed nagios via yum.<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;"><br><br>> -----Original Message-----<br>> From: <a href="mailto:nagios-users-admin@lists.sourceforge.net">
nagios-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>] 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 always 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 we were on<br>holiday.<br>><br>> The notification information is sent to an e-mail address that I<br>> especified on contacts.cfg. The web interface is not installed yet.
<br>><br>> Find attached some cfg files and the notification 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><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 nagios user. Try
<br>running the command in the Info as the nagios user. In some<br>distributions, ping is only executable by root. You can modify that by<br>giving /bin/ping suid permissions if it doesn't have them already --<br><br># ls -al /bin/ping
<br>-rwxr-xr-x 1 root root 27860 Sep 29 13:28 /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 /bin/ping<br><br>--<br>Marc<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>