# [rrd-users] Draw 5 minute average

Damien 7 damien17 at gmail.com
Sat Jan 7 07:37:21 MET 2006

```Hello I have created this simple RRD to store two A and B values and it is
update every minute:
rrdtool create val_ab.rrd \
--step 60 \
DS:val_a:GAUGE:600:U:U \
DS:val_b:GAUGE:600:U:U \
RRA:AVERAGE:0.5:1:2880 \
RRA:AVERAGE:0.5:5:576 \
RRA:AVERAGE: 0.5:30:336 \
RRA:AVERAGE:0.5:60:1490 \
RRA:AVERAGE:0.5:120:1120 \
RRA:AVERAGE:0.5:1440:732

With the following graph I get what I expect, 1 minute averages over the
last hour:

rrdtool graph total.gif \
--step 60 \
--start -60minutes \
--title "val a and b" \
DEF:a=val_ab.rrd:val_a:AVERAGE \
DEF:b=val_ab.rrd:val_b:AVERAGE \
LINE1:a\#ff4400:"A " GPRINT:mo:MAX:"Max\: %3.0lf" GPRINT:a:AVERAGE:"Avg\:
%3.0lf" GPRINT:a:LAST:"Cur\: %3.0lf\n" \
LINE1:b\#0066ff:"B " GPRINT:b:MAX:"Max\: %3.0lf" GPRINT:b:AVERAGE:"Avg\:
%3.0lf" GPRINT:b:LAST:"Cur\: %3.0lf\n" \
-h 180 -w 800 -i \

What I what to do is to draw the 5 minute average from my existing RRD. I
have tried the --step 300 on the graph but then I get the 5 minute averages
of the 1 minutes. What I really want is to draw the sums of five 1 minute
averages (the equivalent of --step 300 in the rrdtool create).

I hope I was clear enough.

--
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://lists.ee.ethz.ch/rrd-users