[rrd-users] Re: Problem with comment in RRDtool 1.2
Michiel Timmers
michiel.timmers at gmx.net
Sat Dec 31 12:43:07 MET 2005
Thanks your all,
Yes it is a perl script.
I have now used the following:
$time = localtime(time);
$time =~ s/:/\\:/;
"COMMENT:Generated on\: $time\\r";
But that give me the following error:
unable to generate load graph: Garbage ': Sat Dec 31 12\:32:10 2005\r' after
command:
COMMENT:Generated on: Sat Dec 31 12\:32:10 2005\r
I have looked at the search again but i can't find a solution.
Michiel
----- Original Message -----
From: "William Owen" <William.Owen at profilesmail.com>
To: "'Michiel Timmers'" <michiel.timmers at gmx.net>
Sent: Friday, December 30, 2005 3:04 PM
Subject: RE: [rrd-users] Problem with comment in RRDtool 1.2
> This looks like Perl... if it is, you might consider doing a search and
> replace on the ':' with a '\:'. Also, don't forget to escape the ':' in
> the
> comment line itself.
>
>
> Untested:
>
> $time = localtime(time);
> $time =~ s/:/\\:/;
> "COMMENT:Generated on\: $time\\r";
>
> -----Original Message-----
> From: Michiel Timmers [mailto:michiel.timmers at gmx.net]
> Sent: Friday, December 30, 2005 7:41 AM
> To: rrd-users at list.ee.ethz.ch
> Subject: [rrd-users] Problem with comment in RRDtool 1.2
>
> Hello,
>
> I'm trying to get the time that the graph has created with "comment", I'm
> using:
>
> $time = localtime(time);
> "COMMENT:Generated on: $time\\r";
>
> it gives something like: "Generated on: Fri Dec 30 14:30:09"
>
> That works perfect on the old rrdtool but now I'm using rrdtool 1.2 and
> now
> it stops working.
> I have seen that in version 1.2 that you have to add a backslash to
> colons,
> so theres my problem.
>
> Is there a easy and good way the create the date and time as comment in
> 1.2?? I have used to search but did't find anything.
>
> Thanks
> Michiel
>
>
>
>
> --
> 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
>
--
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