Exit Code 137 using NRPE
Subhendu Ghosh
sghosh at sghosh.org
Wed Aug 20 17:54:26 CEST 2003
http://www.nagios.org/faqs/viewfaq.php?faq_id=17
On Wed, 20 Aug 2003, Jurgens, Matthew wrote:
>
> 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]
>
--
-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
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