[rrd-users] Re: probelms with timestamp

lists at ripper.informatik.uni-ulm.de lists at ripper.informatik.uni-ulm.de
Fri Apr 14 10:54:41 MEST 2000

In article < at mail.nextra.ch> you wrote:

> i just have a little probelm. I'm just generationg some graphs and all 
> works fine, except the time-value. I want to put a text like "last updated 
> on " in my png files. I managed to get used bandwith etc. values in the 
> graph but not the timestamp from the last entrie in the RRD file. I already 
> tried it on different ways but the result was always the same - it doesn't 
> work.
> could someone give me some help ?

A workaround:

$last = RRDs::last('rrdfile');
$lasttime =~ s/:/\\:/;
push (@aDEF, 'COMMENT:Current Timestamp\: '.$lasttime.'\\r');

BTW: Why is it necessary to excape : in the comment/legend strings? They are
the last fields in the arguments ...

Rainer.Bawidamann at informatik.uni-ulm.de

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

More information about the rrd-users mailing list