Page 1 of 1

importance of allowed_hosts in nrpe.cfg file

Posted: Tue Jun 16, 2020 12:39 pm
by bsivavani
Hi,

Can you let us know the importance of allowed_hosts entry in nrpe.cfg file.

Kindly advice if there is any issue if we comment the allowed_hosts entry in nrpe.cfg file ?

and also uncomment the entry and give desired Nagios instances ?

What is your recommendation on these two.

Re: importance of allowed_hosts in nrpe.cfg file

Posted: Tue Jun 16, 2020 2:34 pm
by jbrunkow
This is a security precaution. I suggest that you use it unless you have another feature in your network to prevent the connection to that host from being intercepted (such as a robust firewall) or if you just don't mind taking the risk for some other reason...

I do not think that you could just comment out that line, I believe some of the internal logic of Nagios requires it. You can certainly add more IP addresses to it, just make sure that they are separated by a comma.

Is there a reason you don't want to use it?