Return code of 255 is out of bounds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmwareguy
Posts: 69
Joined: Wed Mar 16, 2016 9:41 am

Return code of 255 is out of bounds

Post by vmwareguy »

Hi everyone - I have a new install of XI and for some reason I have 2 CentOS servers that continue to post a "Return code of 255 is out of bounds"

Code: Select all

/ Disk Usage
	Critical 	18h 2m 40s 	5/5 	2016-06-24 10:13:37 	(Return code of 255 is out of bounds)
	
/boot Disk Usage
	Critical 	17h 59m 51s 	5/5 	2016-06-24 10:15:47 	(Return code of 255 is out of bounds)
	
/opt Disk Usage
	Critical 	18h 0m 2s 	5/5 	2016-06-24 10:15:29 	(Return code of 255 is out of bounds)
	
/tmp Disk Usage
	Critical 	18h 0m 45s 	5/5 	2016-06-24 10:15:02 	(Return code of 255 is out of bounds)
	
/usr Disk Usage
	Critical 	18h 1m 51s 	5/5 	2016-06-24 10:13:07 	(Return code of 255 is out of bounds)
	
/usr/local Disk Usage
	Critical 	17h 59m 48s 	5/5 	2016-06-24 10:16:07 	(Return code of 255 is out of bounds)
	
/var Disk Usage
	Critical 	18h 2m 9s 	5/5 	2016-06-24 10:13:23 	(Return code of 255 is out of bounds)
	
/var/log Disk Usage
	Critical 	18h 2m 44s 	5/5 	2016-06-24 10:12:55 	(Return code of 255 is out of bounds)
	
/var/log/audit Disk Usage
	Critical 	17h 59m 22s 	5/5 	2016-06-24 10:16:22 	(Return code of 255 is out of bounds)
	
CPU Stats
	Critical 	18h 1m 28s 	5/5 	2016-06-24 10:14:21 	(Return code of 255 is out of bounds)
	
Memory Usage
	Critical 	18h 0m 32s 	5/5 	2016-06-24 10:15:06 	(Return code of 255 is out of bounds)
I've tried a few things I've read online but so far I haven't had any luck getting these server to check in properly. Any suggestions would be great.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Return code of 255 is out of bounds

Post by lmiltchev »

What kind of checks are these? Are you using check_nrpe, check_by_ssh, etc.? Show us the actual command run from the command line along with the output of it. Also, show us the service and command definitions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
vmwareguy
Posts: 69
Joined: Wed Mar 16, 2016 9:41 am

Re: Return code of 255 is out of bounds

Post by vmwareguy »

lmiltchev wrote:What kind of checks are these? Are you using check_nrpe, check_by_ssh, etc.? Show us the actual command run from the command line along with the output of it. Also, show us the service and command definitions.
I'm very new to Nagios - which command would you like me to run to provide the requested output
vmwareguy
Posts: 69
Joined: Wed Mar 16, 2016 9:41 am

Re: Return code of 255 is out of bounds

Post by vmwareguy »

when I run
./check_nrpe -H X.X.X.X
connect to address X.X.X.X port 5666: No route to host
connect to host X.X.X.X port 5666: No route to host
vmwareguy
Posts: 69
Joined: Wed Mar 16, 2016 9:41 am

Re: Return code of 255 is out of bounds

Post by vmwareguy »

figured it out - firewall was blocking 5666

ran iptables -I INPUT -s x.x.x.x -p tcp -m tcp --dport 5666 -j ACCEPT

Working great
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Return code of 255 is out of bounds

Post by rkennedy »

Ah! That would do it, I was just about to respond to this so nice work! In the future, it helps to troubleshoot the plugins from the /usr/local/nagios/libexec/ directory over the command line, that way you can emulate the checks and see what the actual error message is. It's usually a bit more information then the web GUI provides.

Are we good to mark this as resolved?
Former Nagios Employee
vmwareguy
Posts: 69
Joined: Wed Mar 16, 2016 9:41 am

Re: Return code of 255 is out of bounds

Post by vmwareguy »

rkennedy wrote:Ah! That would do it, I was just about to respond to this so nice work! In the future, it helps to troubleshoot the plugins from the /usr/local/nagios/libexec/ directory over the command line, that way you can emulate the checks and see what the actual error message is. It's usually a bit more information then the web GUI provides.

Are we good to mark this as resolved?
yes sir - thanks for the responses
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Return code of 255 is out of bounds

Post by mcapra »

Closing this!
Former Nagios employee
https://www.mcapra.com/
Locked