Page 1 of 1

Question: Is it possible to change NRPE port?

Posted: Fri Aug 19, 2011 5:18 pm
by jrmartin
We monitor on a different port than 5666. How can I change this so the Nagios XI server knows to check on that port versus the default 5666?

TIA.

Jeff

Re: Question: Is it possible to change NRPE port?

Posted: Mon Aug 22, 2011 11:31 am
by nscott
You'll need to edit [all of the following will be on the machine you are monitoring with NRPE, not your nagios server] your /etc/xinet.d/nrpe and adjust the port, your /etc/services will also have to be edited to be the proper port (be sure to remove the old entry) and just to be safe you'll want to edit nrpe.cfg at /usr/local/nagios/etc/nrpe.cfg and change the port there.

Then on your Nagios XI box you'll need to specify the port when running the check using the -p flag.