Nagios / NRPE giving the error "No output returned from the plugin"

Receiving "No Output Returned from Plugin" Error Message from Nagios / NRPE Script

1) Starting Nagios v3.2.3 and NRPE v2.12

2) script:

   OK_STATE=0
   UNAME=/bin/uname -r       
   echo "OK: Kernel Version=$UNAME"       
   exit $OK_STATE

2) Command line results on a Nagios server using NRPE

  • The results are the same OK for root and nagios users:

[nagios @ cmonmm03 libexec] $. / check_nrpe -H dappsi01b.dev.screenscape.local -c check_kernel OK: kernel version = 2.6.18-194.11.3.el5

When I run the check_kernel.sh script in the local command line of the machine, it works there.

Help, any thoughts or a known decision on this subject will be appreciated?

thank

+5
source share
2

, , , check_nrpe , :

define command{
    command_name    check_nrpe
    command_line    /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$
}

:

define service{
    use                             normal-service
    host_name                       hostname
    service_description             Description
    check_command                   check_nrpe!check_foo!placeholder
}
+8

nagios /etc/xinetd.nrpe.cfg? , only_from localhost ( ). IP- nagios:

# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
    flags           = REUSE
    socket_type     = stream
    port            = 5666
    wait            = no
    user            = nagios
    group           = nagios
    server          = /usr/local/nagios/bin/nrpe
    server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
    log_on_failure  += USERID
    disable         = no
    only_from       = 127.0.0.1 192.168.1.61
}
0

All Articles