[rrd-users] Re: print timedate in the graph

paul_pot at nl.sonymusic.com paul_pot at nl.sonymusic.com
Fri May 10 15:30:39 MEST 2002


In perl:

use Time::localtime;

my $TIME = ctime();

 my ($graphret,$xs,$ys) = RRDs::graph $GIF,
        "--vertical-label", "(printed on $TIME)",

*speaking for himself

Thanks but I try to do it from a cgi file so I can't put `bin/date` in the
<RRD::GRAPH... section.
It didn't work. I just got of course "`/bin/date`"  in my graph.

Alex wrote:

> I would like to print the date and/or the time in a graph.
> How can I do that with a COMMENT or GPRINT command?

The same way you'd print any other text.  RRDtool doesn't generate
it so it should already be generated when you call the script.

Perhaps something like
will work


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