<br><br><div><span class="gmail_quote">On 10/29/07, <b class="gmail_sendername">Mike Hanby</b> <<a href="mailto:mhanby@uab.edu">mhanby@uab.edu</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;">
Could this be an SELinux issue? (modify below to point to the correct<br>paths):<br><br>You can test if this is the case before executing the chcon commands by<br>running:<br><br>$ sudo echo 0 > /selinux/enforce<br><br>
Then let schedule another nrpe check, if it succeeds, then run the chcon<br>commands.<br><br>$ sudo echo 1 > /selinux/enforce<br>$ sudo chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/<br>$ sudo chcon -R -t httpd_sys_content_t /usr/local/nagios/share/
<br>$ sudo chcon -R -t httpd_sys_script_rw_t /usr/local/nagios/var/rw/<br><br>-----Original Message-----<br>From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a><br>
[mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a>] On Behalf Of Hiamal<br>Llanos<br>Sent: Wednesday, October 17, 2007 17:06<br>To: <a href="mailto:nagios-users@lists.sourceforge.net">
nagios-users@lists.sourceforge.net</a><br>Subject: [Nagios-users] check_nrpe trouble<br><br>Hi,<br><br>I'm having trouble with check_nrpe and I don't know whats wrong, what<br>I'm doing wrong.<br>I followed the nagios and nrpe doc's  but it don't work :-P
<br><br>/var/log/nagios2/nagios.log says:<br>SERVICE ALERT: otherhost;nrpe_load;UNKNOWN;SOFT;1;(No output returned<br>from plugin)<br><br>But if I run the command on the terminal window it works happily:<br>$ sudo -u nagios /usr/lib/nagios/plugins/check_nrpe -H otherhost -c
<br>check_load<br>OK - load average: 0.00, 0.00, 0.00|load1=0.....<br><br>Hope someone has som clues what could be wrong.<br><br><br>The Nagios server host is a i386 smp with Debian Etch  and otherhost<br>is a amd64 x2 also with Debian Etch.
<br><br>On the Nagios server I'm runnig:<br>nagios2 2.6-2+etch1<br>nagios-nrpe-plugin 2.5.1-3<br>nagios-nrpe-server 2.5.1-3<br><br>on otherhost:<br>nagios-nrpe-plugin 2.5.1-3<br>nagios-nrpe-server 2.5.1-3<br><br>Nagios config:
<br>define service{<br>        use                             generic-service<br>        host_name                       otherhost<br>        service_description             nrpe_load<br>        check_command                   check_nrpe!c
 heck_load
<br>        }<br><br>nrpe config:<br>command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c<br>30,25,20<br><br><br>TiA</blockquote><div><br>I would check everything from the server to the client to give a clue to problem. You can try checking in the following order.
<br><br>1. run the check command locally ie.  on the nrpe server run as user nagios ( or whatever user is configured in nrpe.cfg but nagios is default ) PATH/check_load -w 15..<snip><br><br>2. from the client run the command  PATH/check_nrpe -H <nrpe server> -c check_load
<br><br>These tests should narrow down your problem.<br><br>Haydn<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">------------------------------------------------------------------------
<br>-<br>This SF.net email is sponsored by: Splunk Inc.<br>Still grepping through log files to find problems?  Stop.<br>Now Search log events and configuration files using AJAX and a browser.<br>Download your FREE copy of Splunk now >> 
<a href="http://get.splunk.com/">http://get.splunk.com/</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<br>reporting any issue.
<br>::: Messages without supporting info will risk being sent to /dev/null<br><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Splunk Inc.<br>Still grepping through log files to find problems?  Stop.
<br>Now Search log events and configuration files using AJAX and a browser.<br>Download your FREE copy of Splunk now >> <a href="http://get.splunk.com/">http://get.splunk.com/</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>