[rrd-users] Daily statistics - midnight local vs UTC
Larkin Lowrey
llowrey at nuclearwinter.com
Sat Nov 11 16:28:45 MET 2006
Hello, I am trying to record daily averages and am running into a
problem where rrdtool thinks that the day begins at midnight UTC instead
of midnight localtime (CST). I remember encountering this problem
several years ago but can't remember the solution. I'm a bit surprised
this is still an open issue.
What is the magic trick?
Here's what I used to create the database.
rrdtool create mailstats.rrd \
--step 3600 \
DS:rejected:COUNTER:7200:U:U \
DS:spam:COUNTER:7200:U:U \
DS:passed:COUNTER:7200:U:U \
RRA:AVERAGE:0.5:1:744 \
RRA:AVERAGE:0.5:24:730 \
RRA:MIN:0.5:1:744 \
RRA:MIN:0.5:24:730 \
RRA:MAX:0.5:1:744 \
RRA:MAX:0.5:24:730
When I do a dump of the rrd I get entries like the following:
<!-- 2006-11-02 18:00:00 CST / 1162512000 --> <row><v> NaN </v><v> NaN
</v><v> NaN </v></row>
<!-- 2006-11-03 18:00:00 CST / 1162598400 --> <row><v> NaN </v><v> NaN
</v><v> NaN </v></row>
<!-- 2006-11-04 18:00:00 CST / 1162684800 --> <row><v> NaN </v><v> NaN
</v><v> NaN </v></row>
--Larkin
--
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