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.
Return code of 127 is out of bounds - plugin may be missing
- rexconsulting
- Posts: 60
- Joined: Fri May 04, 2012 4:27 pm
- Location: Oakland, CA
- Contact:
Return code of 127 is out of bounds - plugin may be missing
CP
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
Re: Return code of 127 is out of bounds - plugin may be miss
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."
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."
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Return code of 127 is out of bounds - plugin may be miss
Eric hit the nail on the head on this one!
Former Nagios employee