Wrong results from NRPE
Andreas Ericsson
ae at op5.se
Mon Oct 8 13:19:03 CEST 2007
Don't respond to me privately. I don't run a free support center.
Don't top-post. It makes it hard to read the conversation and understand
what you're responding to.
Follow these two advices, or you'll end up in my kill-file.
Now scroll down for the interesting parts.
Jorge Gonzalez wrote:
> Hi Andreas!
>
> As nagios user:
>
> -sh-3.1$ ./check_nrpe -H 127.0.0.1 -c check_xen
> Critical Xen VMs Usage - Total NB: 0 - detected VMs:
>
> As root user:
>
> [root at jano plugins]# ./check_nrpe -H 127.0.0.1 -c check_xen
> Critical Xen VMs Usage - Total NB: 0 - detected VMs:
>
Which user you're running check_nrpe as hasn't got the slightest impact
on the result you get from check_xen, as it's the nrpe daemon that
executes check_xen.
> NRPE runs with xinetd:
> # default: off
> # description: NRPE (Nagios Remote Plugin Executor)
> service nrpe
> {
> flags = REUSE
> type = UNLISTED
> port = 5666
> socket_type = stream
> wait = no
> user = nagios
> group = nagios
> server = /usr/sbin/nrpe
> server_args = -c /etc/nagios/nrpe.cfg --inetd
> log_on_failure += USERID
> disable = no
> only_from = 0.0.0.0/0
> }
>
>
> NRPE running as a service, no xinetd:
>
> As root:
>
nrpe doesn't run as root. It will bail out if you try to make it.
> [root at jano plugins]# ./check_nrpe -H 127.0.0.1 -c check_xen
> Critical Xen VMs Usage - Total NB: 0 - detected VMs:
>
>
> As nagios:
>
> -sh-3.1$ ./check_nrpe -H 127.0.0.1 -c check_xen
> Critical Xen VMs Usage - Total NB: 0 - detected VMs:
>
You have permission problems. Don't bother trying to run check_nrpe as
a specific user. It won't matter in the slightest. Try running check_xen
directly as the nagios user instead. That might show you what the real
problem is.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------------------------------------------------------------------
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