nrpe (No output returned from plugin) works fine from cli

Corey Van Allen coreyva at gmail.com
Thu Feb 10 19:51:45 CET 2005


I'm having an issue with nrpe where I can run 
/usr/lib/nagios/plugins/check_nrpe -H 206.135.x.x -c check_load
and it returns
OK - load average: 0.88, 0.65, 0.59
but the web client shows (No output returned from plugin). I have
debugging on client side and will see the cli connection from the
server, but nothing from the daemon. I have tried debugging the plugin
using this information, but the file is never created.
http://www.nagios.org/faqs/viewfaq.php?faq_id=162
Looking through the archives, I've seen that -a $ARG2$ should be
removed if not using arguments, which I'm not, so I did. No change.
Here are the relevant file contents
/etc/nagios-plugins/config/check_nrpe.cfg 
define command {
        command_name    check_nrpe
        command_line    /usr/lib/nagios/plugins/check_nrpe -H
$HOSTADDRESS$ -c $ARG1$
}

services.cfg
define service{
        use                             generic-service         ; Name
of service template to use

        host_name                       linux
        service_description             LOAD
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  foo-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_nrpe!check_load
        }
 
client side
/usr/local/nagios/etc/nrpe.cfg
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
BTW, This happens with all the nrpe commands not just the load.

Client side debug output
Feb 10 10:45:55 qmail nrpe[26034]: Connection from 206.135.x.x port 53767
Feb 10 10:45:55 qmail nrpe[26034]: Host address checks out ok
Feb 10 10:45:55 qmail nrpe[26034]: Handling the connection...
Feb 10 10:45:56 qmail nrpe[26034]: Host is asking for command
'check_load' to be run...
Feb 10 10:45:56 qmail nrpe[26034]: Running command:
/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
Feb 10 10:45:56 qmail nrpe[26034]: Command completed with return code
0 and output: OK - load average: 1.37, 0.65, 0.59
Feb 10 10:45:56 qmail nrpe[26034]: Return Code: 0, Output: OK - load
average: 1.37, 0.65, 0.59
Feb 10 10:45:56 qmail nrpe[26034]: Connection from 206.135.x.x closed.

versions
ii  nagios-common  1.3-cvs.200501 A host/service/network monitoring and manage
ii  nagios-mysql   1.3-cvs.200501 A host/service/network monitoring and manage
ii  nagios-nrpe-do 2.0-7          Documentation for nagios-nrpe
ii  nagios-nrpe-pl 2.0-7          Nagios Remote Plugin Exectutor Plugin
ii  nagios-nrpe-se 2.0-7          Nagios Remote Plugin Exectutor Server
ii  nagios-plugins 1.3.1.0-12     Plugins for the nagios network monitoring an
ii  nagios-statd-c 3.09-7         nagios client for montioring remote system i
ii  nagios-statd-s 3.09-7         nagios server for monitoring remote system i

Ideas? At this point I'm baffled.

-- 
Corey


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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