[rrd-users] Re: Problem with comment in RRDtool 1.2

Serge Maandag serge.maandag at staff.zeelandnet.nl
Sat Dec 31 16:21:13 MET 2005


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

You have to use "COMMENT:Generated on\: $time\\r" in your
graph statement. Putting it on a single line like this does
not mean anything in perl.

And the \\r probably has to be a \\n

I would expect you to something like:

@args = (...your stuff..);
push @args, ("COMMENT:Generated on\: $time\\n");
RRDs::graph(@args);

Serge.

-------------
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php

-------------
For the content of this e-mail message and its attachment(s) the following disclaimer applies: http://www.zeelandnet.nl/disclaimer.php

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