[rrd-users] RRA and graph question

Michael Smith msmith at staff.texas.net
Sat Aug 11 01:31:34 MEST 2001


I want to start collecting weather data, i.e. temperature and
had a question about creating my rrd file and graphing it.
I would like to store 5 minute samples of the temperature as well
as the daily temp min/avg/max.  Here is where the question comes in.
I would like to store them all in one logical rrd file using something
like...

rrdtool create temp.rrd -s300 DS:temperature:GAUGE:600:0:120
    RRA:AVERAGE:.5:1:210816 RRA:MIN:.5:288:731 RRA:MAX:.5:288:731
    RRA:AVERAGE:.5:288:731

Is this legal?  It seems to create just fine and rrdtool info
shows 4 RRAs.  If it is legal, how do you tell your graph
to use the daily average RRA instead of the 5min average?

rrdtool graph temperature.png -send-1week DEF:tmin=temp.rrd:temperature:MIN
    DEF:tavg=temp.rrd:temperature:AVERAGE
    DEF:tmax=temp.rrd:temperature:MAX
    LINE1:tmin#00ff00:Min
    LINE1:tavg#0000ff:Avg
    LINE1:tmax#ff0000:Max

This gives me my daily min and max temperature, but uses the 5 minute
averages for the average.  I would like to use the daily average
in this case and use the 5 minute average in another graph,
without having to create and maintain 2 different rrd files.
Is this possible?

--
Michael Smith

--
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