cfgstoragemaker

cfgstoragemaker

使いかたは mrtg についてる cfgmaker そっくり。ついてるディスク容量と、swap/real memory usage に関するmrtg 設定を調べて吐いてくれる。とりあえず楽ちん。

sid だと deb もある。でも中身は単なる perl script なので、この deb のまま potato や woody に突っこんでも問題なし。

生成結果、Directory 指定だけちょっと余計ぎみなので取ってつかっている。

community name「もげ」の「ふが」に対して以下ので cfg 生成しとけばとりあえず充分充分

cfgmaker もげ@ふが >> ふが.cfg
cfgstoragemaker もげ@ふが >> ふが.cfg
cat 以下のやつ >> ふが.cfg
vi ふが.cfg (Directory 指定とる、:%s/hostname/ふが/g、頭の WorkDir 修正)
mrtg ふが.cfg
mrtg ふが.cfg
mrtg ふが.cfg
Target[hostname-load]:  .1.3.6.1.4.1.2021.10.1.5.1&.1.3.6.1.4.1.2021.10.1.5.3:なんちゃら@hostname
Title[hostname-load]: hostname load average
PageTop[hostname-load]: <H1>hostname load average</H1>
Options[hostname-load]: gauge,integer,growright,nopercent
MaxBytes[hostname-load]: 10000
YLegend[hostname-load]: CPU Load Average (%)
YTicsFactor[hostname-load]: 0.01
Legend1[hostname-load]: 1 min CPU Load Avalage
Legend2[hostname-load]: 5 min CPU Load Avalage
LegendI[hostname-load]: 1min
LegendO[hostname-load]: 5min
ShortLegend[hostname-load]: percent (%)