Nagios 是一套功能非常強大的網路監控系統,可以協助網管人員即時監控系統服務的狀態,並且在系統服務發生異狀時,以 email 通知管理者。
Nagios 官方網站:http://www.nagios.org/
安裝 Nagios
# yum install nagios nagios-plugins-all nagios-plugins-nrpe nrpe –enablerepo=epel
啟動 Nagios
# service nagios start
Starting nagios: done.
設定開機時啟動 Nagios
# chkconfig –level 3 nagios on
[@more@]
設定 Nagios 的管理帳號及密碼 nagiosadmin / 123456
# htpasswd -cb /etc/nagios/passwd nagiosadmin 123456
Adding password for user nagiosadmin
開啟瀏覽器,在網址列輸入 http://Server’IP/nagios
啟動 NRPE 服務
# service nrpe start
Starting nrpe:
[ 確定 ]
設定開機時啟動
# chkconfig –level 3 nrpe on
檢查是否有正常啟動
# netstat -antulp | grep nrpe
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 57902/nrpe