Exit Code 137 using NRPE

Jurgens, Matthew Matthew.Jurgens at Sensis.com.au
Wed Aug 20 09:20:42 CEST 2003


I am running a simple service check using NRPE:

on the Nagios host if I run it manually like:
# /usr/local/nagios/libexec/check_nrpe -H pokemon -c check_maj -t 180
Performance Check OK

# echo $?
0

It works perfectly

The NAgios config to execute it is (basically what I ran manually)
command_line    /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c
$ARG1$ -t 180

The service definition is
# Service definition
define service{
        use                             generic-service         ; Name of
service template to use

        host_name                       pokemon
        service_description             MAJ
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           1
        retry_check_interval            1
        contact_groups                  nagios-admins
        notification_interval           120
        notification_period             24x7
        notification_options            c,r
        check_command                   check_nrpe!check_maj
}

and yet when it runs under Nagios it always returns 

Current Status:	  CRITICAL    
Status Information:	(Return code of 137 is out of bounds)

What is exit code 137?
Any ideas?





The script it is running is nothing special
it is simply

#!/usr/bin/ksh
#echo "Performance Check OK|1:0.8:0.7:0.7"
echo "Performance Check OK"
exit 0

www.sensis.com.au

A leading Australian advertising, information 
and directories business. 

www.yellowpages.com.au
www.whitepages.com.au
www.citysearch.com.au
www.whereis.com.au
www.telstra.com.au

This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged.
Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email.
If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030820/f4ae78a9/attachment.html>


More information about the Users mailing list