NRPE daemon vs IP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

NRPE daemon vs IP

Post by vmesquita »

We have the NRPE clients in the monitored machines pointed to the server by name in the config files (i.e., nagios.domain.com). Now we are planning on having a backup server in a secondary site, which will be enabled only on crysis scenarios. This server will assume the same name (nagios.domain.com), but will have a different IP. I know the NRPE client checks reverse DNS. The question is, does it refresh the IP correspondency from time to time? Or does it get the IP only when the service starts (so this implementation would make the servers stop being monitored, until the NRPE services are restarted on the monitores machines)?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE daemon vs IP

Post by slansing »

I don't think it will go as far as IP, you would need to have a statically assigned address on your failover server, and use that address in the "allowed_from=" directive of the xinetd.conf/nrpe.cfg files, depending on which way you use NRPE.
Locked