Re: [Nagios-devel] Nagios 4: return code 127 is out of bounds

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Nagios 4: return code 127 is out of bounds

Post by Guest »

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.

--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked