NRPE: Unable to read output for check_procs

SCHAER Frederic frederic.schaer at cea.fr
Mon Dec 10 16:29:38 CET 2007


Hi,

Is there really a "i" before the /usr/lib/... in your check_procs
command definition ?
Other question : is any other nrpe command working ?

Regards

-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Jason
Joines
Sent: Friday, December 07, 2007 4:38 PM
To: Nagios Users
Subject: [Nagios-users] NRPE: Unable to read output for check_procs


    I'm running Nagios 2.9 and NRPE 2.8.1 on Ubuntu 7.10 Gutsy.

    On the box running NRPE, I have check_procs defined in
/etc/nagios/nrpe.cfg as:
command[check_procs]=i/usr/lib/nagios/plugins/check_procs -w 250 -c 400
and I'm running NRPE as a daemon via "/usr/sbin/nrpe -c
/etc/nagios/nrpe.cfg -d" as the user nagios.

    When I run the check locally on the NRPE box it works just fine:
root at box02:~# sudo -u nagios /usr/lib/nagios/plugins/check_procs
PROCS OK: 78 processes
root at box02:~# sudo -u nagios /usr/lib/nagios/plugins/check_procs -w 250
-c 400
PROCS OK: 78 processes

    On the Nagios box I have the service defined in
/etc/nagios2/conf.d/box02_nagios2.cfg as:
define service{
        use                  generic-service
        host_name            box02
        service_description  Total Processes
        check_command        check_nrpe_1arg!check_procs
        }

    However, both the web interface and the command line show "Unable to
read output":
root at box01:~# /usr/lib/nagios/plugins/check_nrpe -H box02.sub.dom.top -c
check_procs
NRPE: Unable to read output
root at box01:~#

    Most of the other NRPE checks defined for box02 work as expected.
Any ideas?


Jason Joines
=================================


------------------------------------------------------------------------
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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