AW: Nagios 2.0b4 restart issue
Andreas Ericsson
ae at op5.se
Tue Nov 29 11:16:57 CET 2005
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 andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
More information about the Developers
mailing list