[rrd-users] Re: HRULEs at every midnight
Alex van den Bogaerdt
alex at ergens.op.het.net
Thu Jan 16 15:26:35 MET 2003
On Thu, Jan 16, 2003 at 01:23:16PM +0100, Daniel VASARHELYI wrote:
>
> Hi!
>
> Is there a way to draw a HRULE at every midnight?
You mean VRULE. Assuming you wrote VRULE:
Yes, there is.
You are programming a front-end. It is your job to
let RRDtool know what to do.
RRDtool can draw a VRULE at any time you like. The
approach to your goal is:
1: know what the start and end of your graph will be
2: know what the offset between local time and UTC is
3: compute the time for midnight on or before the start
of your graph
4: compute the time for midnight on or after the end
of your graph
5: create a VRULE statement for each of the times where
time is between start and end *and* where time is
first_midnight + n*86400
(this is done inside a for-next loop, for instance)
HTH
Alex
--
Much of what looks like rudeness in hacker circles is not intended to give
offence. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.
http://www.tuxedo.org/~esr/faqs/smart-questions.html
--
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