Code: Select all
(Return code of 127 is out of bounds - plugin may be missing)
But what is the problem? It's impossible to tell because Nagios is ignoring the return value from the waitpid() system call. Until the waitpid() return value has verified not to be equal to -1, it's not appropriate to even look at the process exit value.
If you look at the Nagios code (I downloaded version 3.4.3), in every occurrence where waitpid() is invoked, the return value is ignored.
Please fix this so we can better understand what is going on in these cases.
Thanks.