[rrd-users] Preventing "0.100" from displaying as "100.000 m"?

Morgan Wesström mrtg at pp.dyndns.biz
Sat Aug 23 22:31:35 CEST 2008


Hi.

I'm monitoring my load averages here: 
http://pp.dyndns.biz/cgi-bin/14all.cgi?log=loadavg

The values are usually below 1.0 and rrdtool shows them as "100.000 m" 
instead of "0.100". Is there any way to prevent this from happening? 
I've tried to use the kMG option but I'm not sure how to use it or if it 
even can be used to do what I want.

This is the relevant section of the cfg:

Target[loadavg]: `/usr/local/etc/mrtg/load-avg.sh`
Title[loadavg]: Load averages
Options[loadavg]: growright, gauge, nopercent
MaxBytes[loadavg]: 10
XSize[loadavg]: 600
YSize[loadavg]: 200
YLegend[loadavg]: Load
LegendI[loadavg]: 5 min load avg
LegendO[loadavg]: 15 min load avg
Legend1[loadavg]:  5 minutes load averages
Legend2[loadavg]: 15 minutes load averages
Colours[loadavg]: ORANGE#FF8C00,BLUE#00008B,BLACK#000000,BLACK#000000
kMG[loadavg]: ,,

Sample output from the load-avg.sh script:

0.039000
0.027000
UNUSED
UNUSED


Regards
Morgan



More information about the rrd-users mailing list