Hi,

In perl:

use Time::localtime;

my $TIME = ctime();

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

hth
regards
paul
*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
   ...
    COMMENT:"`/bin/date`"
   ...
will work

HTH
--


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to