Return code of 4 is 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.
Locked
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Return code of 4 is out of bounds

Post by orani »

I get this critical error "Return code of 4 is out of bounds" sometimes at some checks.

Any ideas?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Return code of 4 is out of bounds

Post by mcapra »

We need a bit more context.

What plugin(s) are being used for these checks that are sometimes failing? I'm assuming check_nrpe on the Nagios Core side of things? If so, what plugins is check_nrpe calling on the remote machine?

What operating system is Nagios Core installed on? What steps did you use to install Nagios Core?
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Return code of 4 is out of bounds

Post by scottwilkerson »

orani wrote:I get this critical error "Return code of 4 is out of bounds" sometimes at some checks.

Any ideas?
If the plugin you are running is returning an exit code above 3 it is out of bounds.

Here is the section of the plugin development guidelines which is relevant
http://nagios-plugins.org/doc/guidelines.html#AEN78
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked