(Return code of 255 is out of bounds)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

(Return code of 255 is out of bounds)

Post by lafargeuser »

I am not able to monitor Linux server using NRPE, However, the same server being monitor by other Nagios XI. I get below error
(Return code of 255 is out of bounds)

I have two Nagios server & trying to monitor linux box with these two, with one i am able to monitor but other i didnt not. I have modified below file & entered Nagios servers separated by comma & restarted the service.

/etc/xined.d/nrpe

i
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

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

Post by jdalrymple »

Are you sure you have 'check_nrpe' on your new server, and is it in the predetermined location that you've specified?

What happens if you run the check_nrpe from the command line?

Code: Select all

/path/to/your/check_nrpe -H <linux_IP>
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post by Box293 »

lafargeuser wrote: I have modified below file & entered Nagios servers separated by comma & restarted the service.

/etc/xined.d/nrpe
The file is:
/etc/xinetd.d/nrpe

And the only_from directive is a list of host address separated by a space (not comma).

Correct this and then restart the xinetd service.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

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

Post by lafargeuser »

Everthing looks fine. Modified xinetd.d/nrpe file & replaced existing Nagios server with New server, Strange but it worked for me.

Here, am I not able to monitor one server with multiple Nagios servers ?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

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

Post by jdalrymple »

Sorry I didn't spot this in your original post. only_from on xinetd.conf - no commas, just spaces.
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

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

Post by lafargeuser »

No problem. It worked now. Thanks for brought to my notice. You may close this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post by hsmith »

lafargeuser wrote:No problem. It worked now. Thanks for brought to my notice. You may close this post.
Glad to hear that it worked.

Thanks for the update.
Former Nagios Employee.
me.
Locked