[rrd-users] Re: Newbie question on graph alignment

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Fri Feb 8 18:22:18 MET 2002


ed.rolison at itc.alstom.com wrote:

> I'm currently plotting a 'per month' graph, of maximum values (over a
> year).
> Whenever I do though the 'transition point' appears to be in the middle of
> the month.
> What I'd like is so the maximum each month, appears as a block from the
> start, to the end of the month.
> At a guess there's a pretty simple way of doing this, but I can't seem to
> figure out what it is.

This is not easy.  RRDtool works with intervals of equal size.  As you
know a month does not have a fixed number of seconds.

Even when you'd decide to show statistics per week you still have a
problem as RRDtool works internally with UTC time.  An interval of
exactly one week will start at fixed intervals.  For the current interval
this is the seventh of February, 00:00 UTC.

1013188654 - (1013188654 mod 604800) = 1013040000 == February 7th 00:00 UTC

I'm not entirely sure but I think you're trying to use the wrong tool
to do your job.

cheers,
-- 
   __________________________________________________________________
 / 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