[rrd-users] Re: Fetch resolution question

Serge Maandag serge.maandag at staff.zeelandnet.nl
Wed Jan 28 13:55:41 MET 2004

> I'm using:
> rrdtool  fetch  Noise.rrd MIN -r 1d  -s now -7d -e now
> but I get hourly averages and not daily averages.

The rrdtool manual mentions this:

Consider now that you want too fetch the 15 minute average 
data for last hour. So you might try
rrdtool fetch subdata.rrd AVERAGE -r 900 -s -1h

However, this will almost always result in a time series that 
is NOT in the 15 minute RRA. Therefore the highest resolution RRA, 
i.e. 5 minute averages, will be chosen which, in this case, is not what
you want.

Hence, make sure that
	both start and end time are a multiple of 900 
	both start and end time are within the wanted RRA 

As Alex mentioned, -s end -7d may be a better option,
but you say that doesn't work.

If you are calling your fetch command from a script, you may also
try something like -s int(`date+%s` / 86400) to make sure the first
requirement is met.


Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php

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