I see two different places where I can configure which Nagios server my NRPE clients will speak with.
The first one, while configuring NRPE to run under xinetd:
only_from = 127.0.0.1 mon1.company.com
The second one, in the /etc/nagios/nrpe.cfg
file:
allowed_hosts=127.0.0.1,mon1.company.com
My question is:
- Incase both are configured (
nrpe.cfg
andxinetd/nrpe
) - Which configuration is stronger? Meaning, which one will override the other? - If they do not override each other, should they both be configured?