參考: http://portable.easylife.tw/2846
環境 CentOS 6.2.x86_64
1.必須先安裝 RPMforge http://wiki.centos.org/zh-tw/AdditionalResources/Repositories/RPMForge
2.安裝相依套件
yum install rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple httpd
3.下載安裝monitorix
rpm -ivh http://www.monitorix.org/monitorix-3.2.1-1.noarch.rpm
4.設定檔 /etc/monitorix.conf
5.設定開機啟用
chkcofig --level 35 httpd on
chkcofig --level 35 monitorix on
6.服務啟用
service httpd start
service monitorix start
完工,打開瀏覽器 http://localhost:8080/monitorix
密技:
http://localhost:8080/monitorix-cgi/monitorix.cgi?mode=localhost&graph=all&when=1day&color=black
可以手動將網址內的when參數改成1hour or 2hour
http://localhost:8080/monitorix-cgi/monitorix.cgi?mode=localhost&graph=all&when=1hour&color=black
這樣就可以看一小時內的監控紀錄,依此類推,舉一反三!
沒有留言:
張貼留言