[rrd-users] fetch and graph resolution

Natan nvivo at mandic.com.br
Wed Apr 27 20:07:25 MEST 2005


Hi.

I am new to rrdtool, and i'm trying to fetch some data from rrdtool, but 
i don't get what is wrong with this.

I created a database using this:

rrdtool create sample.rrd --start  <someDate> --step 300 
DS:inOctets:COUNTER:600:0:4294967295 DS:outOctets:COUNTER:600:0:4294967295

//day, 5 minutes each
RRA:AVERAGE:0:1:600
// week, half an hour each
RRA:AVERAGE:0.5:6:400 RRA:MIN:0.5:6:400 RRA:MAX:0.5:6:400
// month, 2 hours each
RRA:AVERAGE:0.5:24:400 RRA:MIN:0.5:24:400 RRA:MAX:0.5:24:400
// year, 1 day each
RRA:AVERAGE:0.5:288:400 RRA:MIN:0.5:288:400 RRA:MAX:0.5:288:400

then I created a script to fill the rrd with incremental data for every 
5 minutes in a year, simulating the router.

Now, I want to fetch data for 1 day, using 5 minute samples. My tries 
and the results:

rrdtool fetch sample.rrd AVERAGE  -s -1d
timestamp    inOctets          outOctets

1114473600:  1.7095057870e+001  1.6803368056e+001
1114560000:  1.5687291667e+001  1.6713090278e+001
1114646400:  1.5316898148e+001  1.5893935185e+001

rrdtool fetch sample.rrd AVERAGE  -s -1d -r 300
timestamp    inOctets          outOctets

1114473600:  1.7095057870e+001  1.6803368056e+001
1114560000:  1.5687291667e+001  1.6713090278e+001
1114646400:  1.5316898148e+001  1.5893935185e+001

What is wrong? shouldn't -r 300 get the first RRA that uses 1 step for 
each row?

--
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
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list