[rrd-users] Incorrect data being displayed

mgiller at unitedcalbank.com mgiller at unitedcalbank.com
Tue Feb 26 03:40:02 MET 2002


Hi All.
I'm using mrtg to collect my server 1,5,15 min load averages. Mrtg stores
data in rrdtool log format.
Then I use the following to generate the graphs.

#################################
rrdtool graph --units-exponent 0 -h 200 -v "1,5,15 MIN LOAD" \
/opt/local/serverdocs/mrtg/12/day-all.gif \
DEF:var1=/opt/local/serverdocs/mrtg/12/ld1.rrd:ds0:MAX \
DEF:var2=/opt/local/serverdocs/mrtg/12/ld5.rrd:ds0:MAX \
DEF:var3=/opt/local/serverdocs/mrtg/12/ld15.rrd:ds0:MAX \
LINE1:var1#FF0000:" 1 MIN LOAD" \
GPRINT:var1:AVERAGE:AVG\\:%8.2lf GPRINT:var1:MIN:MIN\\:%8.2lf
GPRINT:var1:MAX:MA
X\\:%8.2lf GPRINT:var1:LAST:LAST\\:%8.2lf\\n \
LINE2:var2#00FF00:" 5 MIN LOAD" \
GPRINT:var2:AVERAGE:AVG\\:%8.2lf GPRINT:var2:MIN:MIN\\:%8.2lf
GPRINT:var2:MAX:MA
X\\:%8.2lf GPRINT:var2:LAST:LAST\\:%8.2lf\\n \
LINE3:var3#0000FF:"15 MIN LOAD" \
GPRINT:var3:AVERAGE:AVG\\:%8.2lf GPRINT:var3:MIN:MIN\\:%8.2lf
GPRINT:var3:MAX:MA
X\\:%8.2lf GPRINT:var3:LAST:LAST\\:%8.2lf\\n

##################################################

The problem is that information that is being displayed is not correct. For
example rrdtool will show LAST 5 min average at  2.60 when in reality its
2.55.
Can anyone please tell me know what I'm doing wrong here?

Thanks,

Mike
IMPORTANT NOTICE:  This message is intended only for the addressee and may
contain confidential, privileged information.  If you are not the intended
recipient, you may not use, copy or disclose any information contained in
the message.  If you have received this message in error, please notify the
sender by reply e-mail and delete the message


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list