Page 1 of 1

Re: AW: [Nagios-devel] Nagios 2.0b4 restart issue

Posted: Tue Nov 29, 2005 2:17 am
by Guest
Husch Andreas wrote:
>>
>>Code 127 is "command not found"
>>(http://www.tldp.org/LDP/abs/html/exitcodes.html) so there is not much
>
> to do except figuring out why nagios can't find your plugin.
>
>>Try to 'su nagios' and then run the command exactly as nagios would
>
> (using the full path and so on)
>
> Hi,
> there are many possible causes for Error 127, but in Nagios 2.x the most
> common problem is that two Nagios instances are running at the same
> time!


No it's not. Multiple instances has absolutely nothing to do with what
the shell returns when asked to run a program. In this case, it does

result = execve(argv[0], argv, envp);
/* execve() only returns on errors, so hint what went wrong */
exit (-errno);

and since ENOENT == 2 this results in a return code of -127 on all
architectures that implement the two-complement bit pattern.

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





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