[rrd-users] rrdtool aligns day intervals by UTC time

Frank Signorelli telfsig2 at yahoo.com
Thu Jan 22 15:12:50 MET 2004


rrdtool aligns day intervals by UTC time
It appears that rrtdool aligns day intervals by midnight UTC time
instead of midnight in my timezone.
I create an rrd with the following command:
rrdtool create reccnt.rrd              \
         --start 1074574800             \
         --step 86400                   \
         DS:reccnt:GAUGE:186400:U:U     \
         RRA:AVERAGE:0.5:1:8
Where 1074574800 is 0:0:0 on Jan 20, 2004 in my timezone (Eastern USA).
I update the rrd with the following commands:
# date2time 2004 1 21 0 0 0
rrdtool update reccnt.rrd 1074661200:100
# date2time 2004 1 22 0 0 0
rrdtool update reccnt.rrd 1074747600:100
# date2time 2004 1 23 0 0 0
rrdtool update reccnt.rrd 1074834000:300
# date2time 2004 1 24 0 0 0
rrdtool update reccnt.rrd 1074920400:100
# date2time 2004 1 25 0 0 0
rrdtool update reccnt.rrd 1075006800:100

I dump the rrd with the following command:
rrdtool dump reccnt.rrd

Here is an excerpt of what gets dumped:
    <database>
           <!-- 2004-01-17 19:00:00 EST / 1074384000 --> <row><v> NaN </v></row>
           <!-- 2004-01-18 19:00:00 EST / 1074470400 --> <row><v> NaN </v></row>
           <!-- 2004-01-19 19:00:00 EST / 1074556800 --> <row><v> NaN </v></row>
           <!-- 2004-01-20 19:00:00 EST / 1074643200 --> <row><v> 1.0000000000e+02 </v></row>
           <!-- 2004-01-21 19:00:00 EST / 1074729600 --> <row><v> 1.0000000000e+02 </v></row>
           <!-- 2004-01-22 19:00:00 EST / 1074816000 --> <row><v> 2.5833333333e+02 </v></row>
           <!-- 2004-01-23 19:00:00 EST / 1074902400 --> <row><v> 1.4166666667e+02 </v></row>
           <!-- 2004-01-24 19:00:00 EST / 1074988800 --> <row><v> 1.0000000000e+02 </v></row>
    </database>
As you can see, the day intervals start and end at 19:00:00 instead
of at midnight.
In my application, each 24 hour interval represents total of
items counted for a day. So I have two problems.
1. The 24 hour interval does not start and end at midnight.
2. The 24 hour total for the 3rd interval updated, for example, is
   2.5833333333e+02 instead of 3.000000000e+02.
I guess the rrdtool dump is "adjusting" the data for 24 hour intervals
that start and stop at 19:00:00 instead of midnight.
Is there any way I can change the behavior of rrdtool so that it aligns
the day intervals at midnight in my timezone?

Thanks,
Frank


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

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