Page 1 of 1

Return code of 127 is out of bounds - plugin may be missing

Posted: Tue Oct 20, 2015 10:43 am
by rexconsulting
I just had an instance of this "Return code of 127 is out of bounds" issue using jython for a plugin interpreter. And solved it by setting "JAVA_HOME" and "JYTHON_HOME" within the "$JYTHON_HOME/bin/jython" start script.

Now I need to figure out why it showed up as Green OK despite there being a return code of 127.... It seems 127 should be UNKOWN not OK.

Re: Return code of 127 is out of bounds - plugin may be miss

Posted: Tue Oct 20, 2015 11:11 am
by eloyd
A return code from the plugin might not be the same as what the plugin returns. Meaning, the "return code out of bounds" may be text generated by the plugin from checking something else, but it fails to recognize that as a failure condition and properly return a 1 or 2 or 3 to Nagios (0 meaning OK, 1=warning, 2=critical, and anything else as unknown).

In other words: The plugin may be checking something, receiving a return code out of bounds, and passing that along as its output but not properly flagging the result as an error. In which case, the exit code of the plugin is zero, which Nagios sees as "OK."

Re: Return code of 127 is out of bounds - plugin may be miss

Posted: Tue Oct 20, 2015 4:25 pm
by tmcdonald
Eric hit the nail on the head on this one!