*CPU利用率をMRTGで表示 その2 [#e2d0f551]
 CoolMaster:root {50} % cd /usr/local/etc/mrtg
 CoolMaster:root {52} % cp mrtg.cfg cpu.cfg
 CoolMaster:root {57} % vi cpu.cfg
>どうも上手くデータ取得出来ていなかったのは、Target の指定で、グローバル側を指定していたのが原因で、snmpd の読み出し権限が無かった模様。~
>なので、プライベート側に設定し直す。

 ### Interface >> Descr: 'cpu ###
 Target[cpu]: .1.3.6.1.4.1.2021.10.1.5.1&.1.3.6.1.4.1.2021.10.1.5.2:PRIVATE@127.0.0.1
 MaxBytes[cpu]: 100
 Unscaled[cpu]: dwmy
 ThreshMaxI[cpu]: 100
 #WithPeak[cpu]: mw
 #Options[cpu]: gauge, absolute, growright, noinfo, nopercent
 Options[cpu]: gauge, absolute, noinfo, nopercent
 YLegend[cpu]: Load Average (%)
 LegendI[cpu]: 1分間平均
 LegendO[cpu]: 5分間平均
 Legend1[cpu]: 1分間平均(%)
 Legend2[cpu]: 5分間平均(%)
 ShortLegend[cpu]: %
 Title[cpu]: CPU USAGE -- CoolMaster
 PageTop[cpu]: <h1>CPU USAGE -- CoolMaster</h1>

>http://piano.smb.net/MRTG/cpu.html


----
参考URL~

&edit;

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS