[rrd-users] Re: How do I get the current time in the graph

Watkins, K (Kobe) Kobe.Watkins at rabobank.com
Thu Aug 25 02:05:15 MEST 2005


Hi Rob,

I use this on the bottom of all my graphs when using rrdcgi:

COMMENT:"Data graphed from <RRD::TIME::STRFTIME START <RRD::CV LENGTH>
<RRD::CV END> '%H\:%M %e/%b/%Y'> to <RRD::TIME::STRFTIME END <RRD::CV
LENGTH> <RRD::CV END> '%H\:%M %e/%b/%Y'>"

Which produces:

Data graphed from 09:41 24/Aug/2005 to 09:41 25/Aug/2005

Where:

END = now
LENGTH = end-1d

I guess you could use the RRD::TIME::NOW function to get the current
time, but this would only work if you're using rrdcgi to generate the
graphs.

http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdcgi.en.html

Cheers,
Kobe


-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Rob Tanner
Sent: Thursday, 25 August 2005 4:15 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] How do I get the current time in the graph


Hi,

I would like to put a timestamp in the graph so we know at what time the

graph was created.  I have looked through the docs and tried to play 
with the TIME and LTIME rpn values, but have not been successful at 
setting a variable with the value of the current time.  Does anyone have

an example of of setting a variable with the time of day?

Thanks.

-- 
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR

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

_____________________________________________________________

This email, including any attachments, may be confidential or privileged, and is sent for the personal attention of the intended recipient.  If you have received this email in error, please delete it immediately .  The views expressed are not necessarily those of the Rabobank Group.  The Group is not liable for the effects of any virus which may be contained in this email.
_____________________________________________________________

If this e-Mail contains marketing material and you do not wish to receive such material by e-Mail in future, please reply to this e-Mail and place the words "Remove My Details - Electronic Messages" in the Subject Header.  

The Rabobank Group 
Australia: 1800 025 484
New Zealand: 0800 500 933

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