MRTG 監控 Server CPU 溫度

2009-05-13 13:15:29来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

Description :

使用 MRTG 監控 CPU 溫度有個好處,除了可以確定 Server 上 CPU 的風扇有無掛點之外,我們也可以用於無人管理之機房,若機房內之冷氣出問題或不冷時我們亦可判斷,MRTG 真是網管人員的好幫手。Step 1.安裝監控系統之監控軟體,此軟體可查出 CPU 溫度,所以我們安裝它。#cd /usr/ports/sysutils/xmbmon#make install WITHOUT_X11="yes"Setp 2.寫個 shell script 方便我們 MRTG 抓系統溫度資料。#vi /xxx-path-xxx/tempmon.sh
#!/bin/sh/usr/local/bin/mbmon -c 1 -i -T 4 -u -nexit 0Setp 3.設定 MRTG 裡的 .cfg 設定檔,溫度資料輸出環境,這邊我們使用台灣慣用的攝氏 Centigrade 刻度。
#vi /xxx-path-xxx/ntut.cfg#  ----- temperature ----Target[temp]: `/xxx-path-xxx/tempmon.sh`MaxBytes[temp]: 100Title[temp]: FreeBSD System TemperaturePageTop[temp]: System TemperatureOptions[temp]: gauge,absolute,unknaszero,growrightYLegend[temp]: Temperature(C)ShortLegend[temp]: (C)Legend1[temp]: CPU TemperatureLegend2[temp]: M/B TemperatureLegendI[temp]: CPU Temp.LegendO[temp]: M/B Temp.
我的 MRTG 溫度表:
http://mrtg.ntut.idv.tw/ntut/temp.html


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4206/showart_523022.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:CACTI 流量監控工具

下一篇:Apache, PHP, and MySQL