NRPE gives wrong exit codes

Marc Powell marc at ena.com
Fri Sep 4 21:54:10 CEST 2009


On Sep 4, 2009, at 2:30 PM, Ciro Iriarte wrote:

>> It's weird, if I restart the daemon it works, but just for the  
>> first execution.
>>
>> ---------
>> spmon:/etc/nagios/objects/services #
>> /usr/lib/nagios/plugins/check_nrpe -H billbd2 -c check_disk -a 90%  
>> 80%
>> /kml_inst2
>> DISK CRITICAL - free space: /kml_inst2 76172 MB (21% inode=100%);|
>> /kml_inst2=273552MB;34972;69944;0;349725
>> spmon:/etc/nagios/objects/services # echo $?
>> 2
>> spmon:/etc/nagios/objects/services #
>> /usr/lib/nagios/plugins/check_nrpe -H billbd2 -c check_disk -a 90%  
>> 80%
>> /kml_inst2
>> DISK CRITICAL - free space: /kml_inst2 76172 MB (21% inode=100%);|
>> /kml_inst2=273552MB;34972;69944;0;349725
>> spmon:/etc/nagios/objects/services # echo $?
>> 0
>> ----------
>>
>> Regards,
>>
>
> Any ideas?.

Never seen it before.

Don't test as root.

Try using truss on check_nrpe to verify that you're getting the right  
exit code back from the remote host.

--
Marc

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