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

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

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

Post by Guest »

> > there are many possible causes for Error 127, but in Nagios 2.x the=20
> > most common problem is that two Nagios instances are running at the=20
> > 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 =3D execve(argv[0], argv, envp);
> /* execve() only returns on errors, so hint what went wrong */
> exit (-errno);
>
> and since ENOENT =3D=3D 2 this results in a return code of -127 on all
architectures that implement the two-complement bit pattern.

Hi Andreas,

thats right. But there are cases where the useres get Error 127 when
they reload with the init script. If they do a clean stop and start, the
error is gone away. =20
Im not really a C coder an i had no look at the source for this (which i
should had), but maybe $USER1$ ist not filled right in this cases? So
the Path to the plugin is wrong and as a result we get Error 127 from
the shell. Just a stupid guess.

btw: I've done a test on my 2.0b3 production system (if this is fixed in
a newer version forget everything i wrote): If i hit "/etc/init.d/nagios
reload", Nagios immediately detects my hole network as DOWN because ALL
checks result in an error 127. If i do a clean stop and start everything
works ALLWAYS fine.

Regards
Andreas H.





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