我看到两个不同的地方,我可以configuration哪些Nagios服务器,我的NRPE客户端将与之通话。
第一个,configurationNRPE在xinetd下运行:
only_from = 127.0.0.1 mon1.company.com
第二个,在/etc/nagios/nrpe.cfg文件中:
allowed_hosts=127.0.0.1,mon1.company.com
我的问题是:
nrpe.cfg和xinetd/nrpe ) – 哪个configuration更强? 意思是哪一个会覆盖另一个? xinetd NRPE),那么xinetdconfiguration就更加强大了,因为如果源主机不匹配,永远不会产生NRPE进程,所以在NRPEconfiguration填充中所做的configuration永远不会被评估。 xinetd ,则必须小心。