[rrd-users] incoherent fetch and graph on year scale

Sebastien MICHEL michoux+news at falguerolles.org
Tue Oct 13 15:03:45 CEST 2009


hey,

  I would like to know if my problem is an rrdtool bug or a
usage problem.

I am on unstable debian and use :
RRDtool 1.3.8  Copyright 1997-2009 by Tobias Oetiker <tobi at oetiker.ch>
               Compiled Jun  2 2009 18:23:37

works :
rrdtool fetch data/temp-LFBO.rrd --start "-31d" --end now AVERAGE

doesn't works:
rrdtool fetch data/temp-LFBO.rrd --start "-32d" --end now AVERAGE
rrdtool fetch data/temp-LFBO.rrd --start "-1y" --end now AVERAGE

the "rrdtool fetch data/temp-LFBO.rrd --start "-32d" --end now AVERAGE" result
is a part of the first sample of "rrdtool dump data/temp-LFBO.rrd"
strange isn't it ?

You can get the database here:
http://meteo.falguerolles.org/data/temp-LFBO.rrd

To create my db:
rrdtool create temp-LFBO.rrd --start $(date +"%s")   \
            --step $TEMPS                       \
            DS:temp:GAUGE:$((TEMPS * 2)):U:U    \
            RRA:AVERAGE:0.2:1:$TEMPS            \
            RRA:AVERAGE:0.2:6:168               \
            RRA:AVERAGE:0.5:12:372              \
            RRA:AVERAGE:0.8:144:36500
# "RRA:AVERAGE:0.2:6:168", # moy sur une heure pour tout une semaine => 6data * 10min = 1h : 24h * 7j = 168
# "RRA:AVERAGE:0.5:12:372", # moy sur 2heures pour tout un mois => 12data * 10min = 2h : 372 = 12 * 31 valeur = 12 valeurs par jour
# "RRA:AVERAGE:0.8:144:365" # moy sur un jour pour un ans => 24h * 6data =144data pour une journee : 365jours (valeurs) par ans * 100 years.

thanks, regards,
-- 
  Sébastien
 If you don't understand how to do this, then read the documentation.
 If you still don't understand this, then go fetch a guru to help.
 If the guru doesn't understand, get a new guru...



More information about the rrd-users mailing list