Return code of 255 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
ovaisalam
Posts: 3
Joined: Mon Dec 20, 2010 7:21 am

Return code of 255 is out of bounds

Post by ovaisalam »

Hi,

i have install nagios 4.0 on a server and its working fine for localhost after that i have setup a linux host to monitor
when i added to nagios and went to see from web interface, its showing me following error for every service .

CPU Load
CRITICAL 05-08-2014 11:43:03 0d 1h 37m 29s 3/3 (Return code of 255 is out of bounds)
Current Users
CRITICAL 05-08-2014 11:44:21 0d 1h 36m 12s 3/3 (Return code of 255 is out of bounds)
FTP Monitoring
CRITICAL 05-08-2014 11:46:00 0d 1h 34m 33s 3/3 (Return code of 255 is out of bounds)
SSH Monitoring
CRITICAL 05-08-2014 11:43:25 0d 1h 35m 54s 3/3 (Return code of 255 is out of bounds)
Total Processes
CRITICAL 05-08-2014 11:45:33 0d 1h 35m 0s 3/3 (Return code of 255 is out of bounds)


while i am running the command on linux host to check the services its fine and providing expected results.

but not working from nagios server.

can u please help me to figure out and resolve this issue.

Thanks
Ovais alam
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Return code of 255 is out of bounds

Post by sreinhardt »

What are the permissions on those files, on the remote system? Also are you using an agent or check_by_ssh to check that system remotely?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
ovaisalam
Posts: 3
Joined: Mon Dec 20, 2010 7:21 am

Re: Return code of 255 is out of bounds

Post by ovaisalam »

its resolved.

issue was with the nrpe

i added the server ip in remote hosts's nrpe.cfg file. its works now.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Return code of 255 is out of bounds

Post by tmcdonald »

Good to hear. I'll close this up now.
Former Nagios employee
Locked