Nagios 4: return code 127 is out of bounds

Joerg Linge pitchfork at ederdrom.de
Thu Sep 20 10:57:11 CEST 2012


Am 19.09.2012 um 01:42 schrieb Andreas Ericsson <ae at op5.se>:

> On 09/18/2012 07:00 PM, Joerg Linge wrote:
>> Hi Andreas
>> 1.4 million hits while searching for "return code 127 is out of bounds" on google
>> 
>> But Nagios 3.99 ( git rev 9b1af7a ) just tell me
>> 
>> ---8<---
>> Status Information:	(No output returned from plugin)
>> ---8<---
>> 
>> I want to have my 127 back !!11! ;)
>> 
>> Tested by pointing $USER1$ to a non exiting directory.
>> 
> 
> Hmm. The output you're supposed to get from that is
> (No output on stdout) stderr: execvp() failed. errno is 2: No such file or directory
> 
> which I hope is a decent improvement. It certainly works that way
> with the wproc binary (cd lib && make wproc && ./wproc; #enter lala)
> and the core workers use that exact same code. It might be I'm not
> assigning the outerr variable properly though.
> 
> Ah. Found it. I'm only checking for wpres->outstd == NULL and not if
> it's the nul string. Commit incoming.
> 

Much better now

(No output on stdout) stderr: execvpe() failed. errno is 2: No such file or directory 

Thanks!




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html




More information about the Developers mailing list