Question: Is it possible to change NRPE port?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Question: Is it possible to change NRPE port?

Post 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
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

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

Post 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.
Nicholas Scott
Former Nagios employee
Locked