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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
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

Post 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.
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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

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

Post 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."
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Eric hit the nail on the head on this one!
Former Nagios employee
Locked