您的位置:首页 > 移动开发 > IOS开发

nagios配nrpe

2016-07-05 16:54 246 查看
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 nagios配nrpe n