我用的这个脚本:
foreach $.filesystem (`df -kl | grep -v "Filesyste.m"`) 建材
{
@df = .split(/\s+/,$fi.lesystem); 外汇
$total += $.df[1];投资
$usage +=. $df[2];--------------彩票
}
print "$.total\n";[成人用品]
print ."$usage\n";.
得出来的数为:
138766165
14336159
然后我的mrtg..cfg应该如何写?电影
我.用下面的配置结果画出来的图不是我想要的那种。--------------彩票
我希望能得到这种效果
http://platinum.3322.org/mrtg/disk.html.这是我的配置文件。看要改哪里
WorkDi.r.: /usr/local/apache/htdocs/mrtg/df电影
Language:c.hinese 电子
EnableIPv6: no
Refresh: 300
WriteExpires: Ye.s.
T.arget[hd]: `/usr/local/apache/htdo.cs/mrtg/df/df.sh`<性病>
MaxBytes[hd]: 1.00电影
Options[hd]: gauge, nopercent, growri.g.ht[成人用品]
Y.Legend[h.d]: Used loading (%) 健康
YSize[hd]: 100
S.hortLegend[hd]: % 电子
Leg.endO[hd]: 已使用容量.
LegendI[hd]:. 总硬盘容量健康
Ti.tle[hd]: 硬盘使用容量统计.
Pa.geTop[hd]: <H1>;硬盘使用容量统计.</H1>;.