Page 1 of 1

Return code of 127 is out of bounds on Host Checks Only

Posted: Sat Sep 08, 2012 2:18 pm
by mrochelle
Nagios XI 3.2 64 Bit VM install
CentOS release 6.2

I consistently get the following error when I configure a host check (Return code of 127 is out of bounds - plugin may be missing) but I use the same identical check as a service without a problem. Are the host checks limited to pings only or some strict return codes?

Thanks, Marcus

Re: Return code of 127 is out of bounds on Host Checks Only

Posted: Sun Sep 09, 2012 3:05 pm
by mrochelle
Well, after reading the Nagios Plugin development guidelines, I totally re-wrote my plugins I had problems with and this post is resolve. The largest problem I had was resolved by using %ERRORS from utils.pm and exiting with $ERRORS{'OK'} rather than return codes. Although I found a number of other items this guideline allowed me to improve.