1、tar -zxvf nrpe-2.14.tar.gz
2、cd nrpe-2.14
3、./configure
4、make all
5、make install-plugin
6、make install-daemon
7、make install-daemon-config
8、make install-xinetd,输出结果如下:
/usr/bin/install -c -m 644 sample-config/nrpe.xinetd/etc/xinetd.d/nrpe
10、vim /etc/xinetd.d/nrpe,修改only_from = 127.0.0.1,192.168.1.105
11、vim /usr/local/nagios/etc/nrpe.cfg,修改 allowed_hosts=127.0.0.1,192.168.1.105(nagios服务器)
12、启动nrpe:/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
13、netstat -an | grep 5666 //是否监听5666用于nrpe通信端
nagios配nrpe
最新推荐文章于 2021-11-01 12:26:06 发布