CPU利用率をMRTGで表示

CoolMaster:root {50} % cd /usr/local/etc/mrtg
CoolMaster:root {52} % cp mrtg.cfg cpu.cfg
CoolMaster:root {57} % vi cpu.cfg
### Interface >> Descr: 'CPU ###
Target[piano.smb.net_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[piano.smb.net_CPU]: 100
WithPeak[piano.smb.net_CPU]: mw
YLegend[piano.smb.net_CPU]: Load Average (%)
LegendI[piano.smb.net_CPU]:  
LegendO[piano.smb.net_CPU]:
ShortLegend[piano.smb.net_CPU]: %
Unscaled[piano.smb.net_CPU]: dwmy	
Title[piano.smb.net_CPU]: CPU USAGE -- CoolMaster.smb.net
PageTop[piano.smb.net_CPU]: <h1>CPU USAGE -- CoolMaster.smb.net</h1>
		<div id="sysdetails">
			<table>
				<tr>
					<td>System:</td>
					<td>CoolMaster.smb.net</td>
				</tr>
				<tr>
					<td>Maintainer:</td>
					<td>Root &lt;hostmaster@smb.net&gt;</td>
				</tr>
				<tr>
					<td>Description:</td>
					<td>CPU  </td>
				</tr>
				<tr>
					<td>ifType:</td>
					<td>CPU</td>
				</tr>
				<tr>
					<td>ifName:</td>
					<td></td>
				</tr>
				<tr>
					<td>Max Speed:</td>
					<td>100 %</td>
				</tr>
				<tr>
					<td>Ip:</td>
					<td>219.117.246.200 (CoolMaster.smb.net)</td>
				</tr>
			</table>
		</div>

問題が無いようなら、これを、/usr/local/etc/mrtg/mrtg.cfg に書き加える。
http://piano.smb.net/MRTG/piano.smb.net_cpu.html
http://mail.smb.net/mrtg/219.117.246.199_cpu.html

WithPeak[piano.smb.net_CPU]: mw
YLegend[piano.smb.net_CPU]: Load Average (%)
LegendI[piano.smb.net_CPU]:  
LegendO[piano.smb.net_CPU]:
ShortLegend[piano.smb.net_CPU]: %
Unscaled[piano.smb.net_CPU]: dwmy	

試しに、

CoolMaster:root {51} % chflags -R noschg /usr/obj/usr
CoolMaster:root {52} % rm -rf /usr/obj/usr
CoolMaster:root {53} % cd /usr/src
CoolMaster:root {54} % make -j4 buildworld

してみる

が、拾ってない模様・・・・う~ん


参考URL
http://www.mrtg.jp/doc/reference.html
http://www.crimson-snow.net/hmsvr/bsd/memo/mrtg.html


トップ   編集 凍結解除 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2007-08-25 (土) 08:42:21