监控之_nrpe
監(jiān)控機(jī)上安裝nagios插件和nrpe(nrpe添加為xinetd服務(wù))
1、添加nagios用戶?
/usr/sbin/useradd nagios?
passwd nagios
2、安裝nagios插件:
cd /usr/local/src
tar zxvf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install?
3、安裝nrpe:
cd /usr/local/src
tar -zxvf nrpe-2.12.tar.gz
cd nrpe-2.12
./configure --prefix=/usr/local/nagios
make all
make install-plugin
make install-daemon
make install-daemon-config?
make install-xinetd??? #nrpe安裝為xinetd服務(wù)
編輯nrpe配置文件,增加監(jiān)控機(jī)地址:?????
vi /etc/xinetd.d/nrpe
only_from? = 127.0.0.1 172.16.3.56? #172.16.3.56是監(jiān)控服務(wù)器IP
修改services文件,增加端口
vi /etc/services
nrpe???5666/tcp????#NRPE
安裝xinetd,并重啟xinetd服務(wù)
yum -y install xinetd???????
service xinetd restart
檢查目錄及文件:
ll /usr/local/nagios/libexec?
看看里面是不是有一大堆check的什么東西,如果有就對(duì)了。
?
總結(jié)
- 上一篇: 《天天酷跑》抽奖时间规律,必中抽奖时间技
- 下一篇: C Primer Plus 第8章 字