return code ??? out of bounds

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

return code ??? out of bounds

Post by jssingh »

What does it mean when a nagios plugin seemingly randomly has the output:

Code: Select all

return code ??? out of bounds
when the return code is always different? The plugin itself only returns the nagios-approved values of 0,1,2 or 3. And most of the time it has valid output, but the random outputs are happening often enough to be annoying.

This is the different return codes we've gotten in the past week:
214
191
143
215
124
221
135
110
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: return code ??? out of bounds

Post by tmcdonald »

I'll be able to dig more into this later in the week, but when I see codes >128 I tend to reference this:

http://www.tldp.org/LDP/abs/html/exitcodes.html

Sorry for the lack of info, hectic Monday!
Former Nagios employee
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: return code ??? out of bounds

Post by jssingh »

Thanks for the documentation however it only covered 2 of the codes.

When things are less hectic, please take a look and let me know what you think.

thanks!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: return code ??? out of bounds

Post by rkennedy »

For reference, which plugin is returning values like this?
Former Nagios Employee
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: return code ??? out of bounds

Post by eloyd »

Is it a Nagios plugin or one of your magic star cluster plugins?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: return code ??? out of bounds

Post by tmcdonald »

Yea, if it's code you can share I can do a little more, but my Google-fu is failing me for finding the exact link I was hoping to share.
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: return code ??? out of bounds

Post by Box293 »

I just wanted to post my 2 thoughts about this, they're not entirely helpful though ...

I've often wondered why Nagios doesn't return the corresponding result that came with the unexpected return code. It would make troubleshooting so much easier. You think I should make a feature request for this?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: return code ??? out of bounds

Post by jssingh »

I've always found the "return code ..." error to be unhelpful, so anything that provides more info would be a good idea.

The plugin I'm writing about is a custom plugin, but not one I wrote so I'm not very familiar with what it's doing. I'll need to find out if I can post it.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: return code ??? out of bounds

Post by lmiltchev »

The plugin I'm writing about is a custom plugin, but not one I wrote so I'm not very familiar with what it's doing. I'll need to find out if I can post it.
Posting the plugin should help. We can test it in-house and suggest a possible solution/workaround.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: return code ??? out of bounds

Post by eloyd »

If you can share it, I would love to see it. Scripts that return changing results are very interesting to me.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
Locked