check_nrpe trouble
Mike Hanby
mhanby at uab.edu
Mon Oct 29 16:49:29 CET 2007
Could this be an SELinux issue? (modify below to point to the correct
paths):
You can test if this is the case before executing the chcon commands by
running:
$ sudo echo 0 > /selinux/enforce
Then let schedule another nrpe check, if it succeeds, then run the chcon
commands.
$ sudo echo 1 > /selinux/enforce
$ sudo chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
$ sudo chcon -R -t httpd_sys_content_t /usr/local/nagios/share/
$ sudo chcon -R -t httpd_sys_script_rw_t /usr/local/nagios/var/rw/
-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hiamal
Llanos
Sent: Wednesday, October 17, 2007 17:06
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_nrpe trouble
Hi,
I'm having trouble with check_nrpe and I don't know whats wrong, what
I'm doing wrong.
I followed the nagios and nrpe doc's but it don't work :-P
/var/log/nagios2/nagios.log says:
SERVICE ALERT: otherhost;nrpe_load;UNKNOWN;SOFT;1;(No output returned
from plugin)
But if I run the command on the terminal window it works happily:
$ sudo -u nagios /usr/lib/nagios/plugins/check_nrpe -H otherhost -c
check_load
OK - load average: 0.00, 0.00, 0.00|load1=0.....
Hope someone has som clues what could be wrong.
The Nagios server host is a i386 smp with Debian Etch and otherhost
is a amd64 x2 also with Debian Etch.
On the Nagios server I'm runnig:
nagios2 2.6-2+etch1
nagios-nrpe-plugin 2.5.1-3
nagios-nrpe-server 2.5.1-3
on otherhost:
nagios-nrpe-plugin 2.5.1-3
nagios-nrpe-server 2.5.1-3
Nagios config:
define service{
use generic-service
host_name otherhost
service_description nrpe_load
check_command check_nrpe!check_load
}
nrpe config:
command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c
30,25,20
TiA
------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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