Page 1 of 1

Return code of 255 is out of bounds

Posted: Fri Jun 24, 2016 9:15 am
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.

Re: Return code of 255 is out of bounds

Posted: Fri Jun 24, 2016 9:33 am
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.

Re: Return code of 255 is out of bounds

Posted: Fri Jun 24, 2016 9:37 am
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

Re: Return code of 255 is out of bounds

Posted: Fri Jun 24, 2016 9:55 am
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

Re: Return code of 255 is out of bounds

Posted: Fri Jun 24, 2016 10:01 am
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

Re: Return code of 255 is out of bounds

Posted: Fri Jun 24, 2016 10:03 am
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?

Re: Return code of 255 is out of bounds

Posted: Fri Jun 24, 2016 10:07 am
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

Re: Return code of 255 is out of bounds

Posted: Fri Jun 24, 2016 10:09 am
by mcapra
Closing this!