Nagios-plugins作為連接配接用戶端與伺服器端的工具,意義重大
tar zxvf nagios-plugins-1.4.14.tar.gz
Cd nagios-plugins-1.4.14
./configure --prefix=/usr/local/nagios
Make && make install
便會在nagios目錄下生成libexec目錄
Cd /usr/local/nagios/libexec
Ls //檢視到所有腳本,這些是伺服器狀态的檢視腳本
Chkconfig –add nagios
Chkconfig nagios on
檢測文法
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
建立監控帳号和密碼
/usr/local/apache/bin/htpasswd -c /usr/local/nagios/etc/htpasswd nagios
Service nagios start
<a href="http://192.168.213.134/nagios">http://192.168.213.134/nagios</a>
輸入帳号和密碼發現隻是監控自己,不行還要監控别的
<a href="http://blog.51cto.com/attachment/201207/090916959.png" target="_blank"></a>
本文轉自zsaisai 51CTO部落格,原文連結:http://blog.51cto.com/3402313/916692