[rrd-users] Re: my rrd can only be updated at/after 8:00 a.m.

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Tue Jun 26 13:06:38 MEST 2001

=?iso-8859-1?q?Michael=20Chan?= wrote:

> However, I found that I could only update the database
> at or after 8:00 a.m. everyday. Therefore, I extract
> the data from my database by "rrdtool fetch email.rrd
> AVERAGE" and I c the following:
>                in              out
> 993427200: 1.1333172454e+02 1.4733057870e+02
> 993513600: 2.0600000000e+02 3.0600000000e+02
> In fact, 993427200 refers to "Mon Jun 25 08:00:00
> 2001" and 993513600 refers to "Tue Jun 26 08:00:00
> 2001". 

In fact, this is not true.  
993427200 refers to Mon Jun 25 00:00:00 2001 UTC
993513600 refers to Tue Jun 26 00:00:00 2001 UTC

Emphasis on UTC.

> Any idea?

RRDtool works with time slots that are based on the unix epoch.  All
times are numbers of seconds since this epoch.

For an RRA with time slots of 86400 seconds, all times must, and will,
be an interger multiple of 86400.

If you want to update at midnight for your local time zone, you need
to have an interval that ends at every possible midnight in your time
zone.  Think about daylight saving, currently you are eight hours
behind but if daylight saving is not applied this will be seven hours.
You need to be able to update at midnight during both differences.

The largest possible interval for you is thus one hour.  You can still
update each 24 hours if you wish, no problem.  Just make sure heartbeat
is large enough.  If you update each 24 hours and you have 1-hour time
slots, 24 of them will be filled simultaniously.

 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
| Technical questions sent directly to me will be nuked. Use the list. | 
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |

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