NRPE gives wrong exit codes

Morris, Patrick patrick.morris at hp.com
Thu Sep 3 20:48:48 CEST 2009


On Thu, 03 Sep 2009, Ciro Iriarte wrote:

> 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
> -------------

How is check_disk defined in your nrpe config and is it configured to 
allow arguments?

------------------------------------------------------------------------------
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