查看完整版本: CentOS 下效能監控工具 - Monitorix v2.4.0 比MRTG好用


lancer 2011-12-11 22:39

CentOS 下效能監控工具 - Monitorix v2.4.0 比MRTG好用

<div style="word-wrap: break-word; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); text-align: left; padding-top: 15px; padding-right: 20px; padding-bottom: 12px; padding-left: 20px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font: normal normal normal 13px/1.6em Helvetica, Arial, sans-serif !important; background-position: initial initial; background-repeat: initial initial; "><div style="word-wrap: break-word; line-height: normal; ">一般使用者常用的是MRTG監控系統居多...不過現在有比MRTG 還優的工具...而且安裝很容易~~</div><div style="word-wrap: break-word; line-height: normal; "><br style="word-wrap: break-word; line-height: normal; "></div>Monitorix的安裝設定很簡單,支援的平台包含Red Hat、Fedora、CentOS、Arch Linux、FreeBSD、Debian、Ubuntu、Gentoo與SuSE,我示範的環境是CentOS v5.6。<div style="word-wrap: break-word; line-height: normal; "><br style="word-wrap: break-word; line-height: normal; "></div><div style="word-wrap: break-word; line-height: normal; ">[attach]4398[/attach]<br style="word-wrap: break-word; line-height: normal; "></div><div style="word-wrap: break-word; line-height: normal; "><br style="word-wrap: break-word; line-height: normal; "></div><div style="word-wrap: break-word; line-height: normal; "><span style="word-wrap: break-word; line-height: normal; font-weight: bold; color: rgb(0, 0, 255); ">Redhat、Fedora、CentOS安裝啟動:</span><br style="word-wrap: break-word; line-height: normal; ">[quote]</div><div style="word-wrap: break-word; line-height: normal; ">1.首先透過YUM安裝需要的軟體<br style="word-wrap: break-word; line-height: normal; "># yum install httpd rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI<br style="word-wrap: break-word; line-height: normal; "><br style="word-wrap: break-word; line-height: normal; "></div><div style="word-wrap: break-word; line-height: normal; ">2.下載最新的noarch.rpm<br style="word-wrap: break-word; line-height: normal; "># wget http://www.monitorix.org/monitorix-2.4.0-1.noarch.rpm<br style="word-wrap: break-word; line-height: normal; "><br style="word-wrap: break-word; line-height: normal; "></div><div style="word-wrap: break-word; line-height: normal; ">3.安裝<br style="word-wrap: break-word; line-height: normal; "># rpm -Uvh monitorix-2.4.0-1.noarch.rpm<br style="word-wrap: break-word; line-height: normal; "><br style="word-wrap: break-word; line-height: normal; "></div><div style="word-wrap: break-word; line-height: normal; ">4.啟動<br style="word-wrap: break-word; line-height: normal; "># service monitorix start</div><div style="word-wrap: break-word; line-height: normal; ">[/quote]</div><div style="word-wrap: break-word; line-height: normal; "><br style="word-wrap: break-word; line-height: normal; "></div><div style="word-wrap: break-word; line-height: normal; ">使用yum安裝套件的過程中...沒有&nbsp;<span class="Apple-style-span" style="word-wrap: break-word; line-height: 20px; ">rrdtool rrdtool-perl&nbsp;</span><span class="Apple-style-span" style="word-wrap: break-word; line-height: 20px; ">perl-MIME-Lite 這3個套件...這時後你可以到</span></div><div style="word-wrap: break-word; line-height: normal; ">http://download.fedora.redhat.com/pub/epel/5/i386/</div><div style="word-wrap: break-word; line-height: normal; ">這邊下載回來...裝完之後重新跑第3個步驟就沒問題了...</div><div style="word-wrap: break-word; line-height: normal; "><span style="word-wrap: break-word; line-height: normal; font-weight: bold; color: rgb(0, 0, 255); "><br style="word-wrap: break-word; line-height: normal; "></span></div><div style="word-wrap: break-word; line-height: normal; ">相關設定:<br style="word-wrap: break-word; line-height: normal; ">1.Monitorix依附apache執行,因此需要一個有一個設定檔,預設的位置在/etc/httpd/conf.d/monitorix.conf,這部分可以設定瀏覽權限與Alias,首次安裝Monitorix之後必須重新讀取Apache設定檔</div><div style="word-wrap: break-word; line-height: normal; "><br style="word-wrap: break-word; line-height: normal; ">2.Monitorix的設定檔為/etc/monitorix.conf,為監控項目的主要設定,細節項目非常的多,監控前可以仔細的調整一次。<br style="word-wrap: break-word; line-height: normal; "></div><div style="word-wrap: break-word; line-height: normal; "><br><font style="color: Blue;" size="4">Screen Shot:<br><img src="http://www.monitorix.org/imgs/system.png" border="0"><br><br style="word-wrap: break-word; line-height: normal; "></font></div><div style="word-wrap: break-word; line-height: normal; "><img src="http://www.monitorix.org/imgs/eth.png" border="0"><br><br><img src="http://www.monitorix.org/imgs/apache.png" border="0"><br><br><img src="http://www.monitorix.org/imgs/mysql.png" border="0"><br><br style="word-wrap: break-word; line-height: normal; "></div><div style="word-wrap: break-word; line-height: normal; ">再來會遇到怎樣用web方式來觀看...本機觀看方式:</div><div style="word-wrap: break-word; line-height: normal; "><a href="http://localhost/monitorix/" style="word-wrap: break-word; color: rgb(0, 62, 165) !important; text-decoration: underline; line-height: normal; ">http://localhost/monitorix/</a></div><div style="word-wrap: break-word; line-height: normal; "><br style="word-wrap: break-word; line-height: normal; "></div><div style="word-wrap: break-word; line-height: normal; ">如果你要遠端觀看...那你要在<span class="Apple-style-span" style="word-wrap: break-word; line-height: 20px; ">/etc/httpd/conf.d/monitorix.conf 這個檔內</span></div><div style="word-wrap: break-word; line-height: normal; ">allow from 127.0.0.1</div><div style="word-wrap: break-word; line-height: normal; ">加上你遠端的IP... 好了之後 restart apache</div><div style="word-wrap: break-word; line-height: normal; ">這樣就可以囉!!</div></div>
頁: [1]
查看完整版本: CentOS 下效能監控工具 - Monitorix v2.4.0 比MRTG好用