Page 1 of 1

(Return code of 255 is out of bounds)

Posted: Tue Oct 17, 2017 7:11 am
by jabi27
Hi,

I have made a fresh install of linux-nrpe-agent on a Red Hat Enterprise Linux Server release 7.2 (Maipo). From the nagios web I only see "(Return code of 255 is out of bounds)"

A local test seems to be OK:

/usr/local/nagios/libexec/check_disk -w 10% -c 5% -p / /ekstradisk
DISK OK - free space: / 3721 MB (41,84% inode=-); /ekstradisk 140824 MB (73,65% inode=99%);| /=5173MB;8765;9252;0;9739 /ekstradisk=50376MB;181310;191383;0;201456

Any ideas?

Best
/Jan

Re: (Return code of 255 is out of bounds)

Posted: Tue Oct 17, 2017 7:48 am
by gwakem
Check the /etc/nagios/nrpe.cfg and verify that the server's IP that is querying the nrpe service is listed in the allowed_hosts= line. It already has 127.0.0.1 so local querying of the nrpe service would be allowed.

Re: (Return code of 255 is out of bounds)

Posted: Tue Oct 17, 2017 8:49 am
by jabi27
Thanks,

That did it :-)


/Jan

Re: (Return code of 255 is out of bounds)

Posted: Tue Oct 17, 2017 10:11 am
by kyang
Thanks @gwakem!

@jabi27, Are we okay to close this thread? Or do you have more questions?