Surfaced again: 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
ebp12100
Posts: 45
Joined: Thu Oct 30, 2014 11:33 am

Surfaced again: Return code of 255 is out of bounds

Post 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
andyford
Posts: 7
Joined: Mon Nov 03, 2014 6:53 am

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

Post 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.
ebp12100
Posts: 45
Joined: Thu Oct 30, 2014 11:33 am

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

Post 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
ebp12100
Posts: 45
Joined: Thu Oct 30, 2014 11:33 am

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

Post 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]#
andyford
Posts: 7
Joined: Mon Nov 03, 2014 6:53 am

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

Post 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:
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked