Page 1 of 1

Surfaced again: Return code of 255 is out of bounds

Posted: Thu Oct 25, 2018 11:54 am
by ebp12100
Hi all,
I ran into this problem several months ago and had to pass it on to another admin. I revisited my earlier post on this and *think* I have most every thing in place for nrpe, which I believe is the issue again. I'm including a screen shot in hopes someone might have a solution to monitor this Linux box.
Capture.PNG
I'm running Core Version 4.1.1

Thanks,

Ed

Re: Surfaced again: Return code of 255 is out of bounds

Posted: Thu Oct 25, 2018 12:06 pm
by andyford
Looks like you might have a problem running your plugins. I would try running the plugins directly on the monitored host from the command line and see if they work without Nagios in the equation.

Re: Surfaced again: Return code of 255 is out of bounds

Posted: Thu Oct 25, 2018 12:43 pm
by ebp12100
Thanks Andy. How is one able to run a check plugin from the target/monitored server? Could you give me an example please?

Ed

Re: Surfaced again: Return code of 255 is out of bounds

Posted: Thu Oct 25, 2018 12:54 pm
by ebp12100
I get the following when run from my target/monitored Linux server. Helpful?

[root:/etc/xinetd.d]# /usr/local/nagios/libexec/check_nrpe -H localhost
connect to address ::1 port 5666: Connection refused
connect to address 127.0.0.1 port 5666: Connection refused
connect to host localhost port 5666: Connection refused[root:/etc/xinetd.d]#

Re: Surfaced again: Return code of 255 is out of bounds

Posted: Thu Oct 25, 2018 2:25 pm
by andyford
That is helpful since it shows that your nrpe listener is not taking connections.
Since you're in the xinet directory, I assume that you're trying to run the nrpe listener from within xinetd.
1) Is your nrpe xinetd config set up?
2) Once you have that in place, you'll need to reload xinetd to pull in the new configuration that includes nrpe.

Perhaps you could show us your nrpe config for xinetd?

This document has a lot of great information:

Re: Surfaced again: Return code of 255 is out of bounds

Posted: Thu Oct 25, 2018 4:47 pm
by scottwilkerson
If you did install it as a xinetd service can you share your /etc/xinetd.d/nrpe file?

Did you restart xinetd?

Code: Select all

service xinetd restart