[rrd-users] Fetch with --resolution parameter
Leon Stringer
leon.stringer at ntlworld.com
Thu May 22 10:39:26 CEST 2008
Hi,
I've created an RRD database to store a value (server clock offset in
ms). I've created a cron job to add the value every 6 hours.
I created the file with:
rrdtool create file.rrd -s 21600 DS:offset:GAUGE:21600:U:U
RRA:MAX:0:1:360
I add the data with:
rrdtool update file.rrd timestamp:<val>
And I query data with:
rrdtool fetch file.rrd MAX -r 86400 -s 1210766400 -e 1211371200
So I read a value four times a day (every 21600s) and my resolution
(-r) parameter is 4 * 21600 so I'm expecting one value for each day,
i.e. seven values. The difference between start and end values is
also a multiple of 86400. However, I get 29 values.
Can anyone tell me what I'm doing wrong?
Thanks in advance,
Leon
-----------------------------------------
Email sent from www.virginmedia.com/email
Virus-checked using McAfee(R) Software and scanned for spam
More information about the rrd-users
mailing list