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
(Return code of 255 is out of bounds)
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: (Return code of 255 is out of bounds)
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?
What happens if you run the check_nrpe from the command line?
Code: Select all
/path/to/your/check_nrpe -H <linux_IP>- 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)
The file is:lafargeuser wrote: I have modified below file & entered Nagios servers separated by comma & restarted the service.
/etc/xined.d/nrpe
/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)
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 ?
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)
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)
No problem. It worked now. Thanks for brought to my notice. You may close this post.
Re: (Return code of 255 is out of bounds)
Glad to hear that it worked.lafargeuser wrote:No problem. It worked now. Thanks for brought to my notice. You may close this post.
Thanks for the update.
Former Nagios Employee.
me.
me.