NRPE gives wrong exit codes

Ciro Iriarte cyruspy at gmail.com
Thu Sep 3 20:11:37 CEST 2009


Hi, i'm trying to monitor a Solaris box using NRPE. The thing is
nagios sees always an EXIT_CODE=0.

Running the check by hand on the Solaris host works as expected:

--------------
[solaris ~]$ /usr/local/nagios/libexec/check_disk -w 50% -c 10% -p /kml_
DISK WARNING - free space: /kml_inst2 101125 MB (28% inode=100%);|
/kml_inst2=248599MB;174862;314752;0;349725
[solaris ~]$ echo $?
1
--------------

But running it from the nagios host I get:
-------------
spmon:~ # /usr/lib/nagios/plugins/check_nrpe -H solaris -c check_disk
-a 50% 10% /test
DISK WARNING - free space: /test 101125 MB (28% inode=100%);|
/test=248599MB;174862;314752;0;349725
spmon:~ # echo $?
0
-------------

Versions:

check_nrpe
--------------
NRPE Plugin for Nagios
Copyright (c) 1999-2008 Ethan Galstad (nagios at nagios.org)
Version: 2.12
Last Modified: 03-10-2008
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required
-------------

remote NRPE agent
-------------
spmon:~ # /usr/lib/nagios/plugins/check_nrpe -H solaris
NRPE v2.12
------------

It's a bug in NRPE agent?, configuration error?

Regards,

-- 
Ciro Iriarte
http://cyruspy.wordpress.com
--

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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