[rrd-users] Unable to print date to the graph

Sebastian John basti at fukz.de
Wed Feb 22 08:48:41 CET 2012


Hello,

thanks for the link. I found the solution. Is is not necessary to use
perl. But I have to write an other GPRINT link this:

GPRINT:tmax:"  max\: %10.2lf °C" 
GPRINT:tmax:"um %H\:%m Uhr\n":strftime

I have to add the ":strftime" on the GPRINT. 

Sebastian


On Tue, Feb 21, 2012 at 10:38:14PM +0000, Richard Burton wrote:
> Hi Sebastian
> 
> This page has some good examples
> 
> http://hints.jeb.be/category/rrdtool/
> 
> In short I don't think you can mix none strftime variables and strftime variables so in your example
> 
> GPRINT:tmax:"max %0.2lf":"%H"
> 
> would need to be (using Perl)
> 
> GPRINT:tmax:%H:strftime
> 
> Putting %0.2lf would result in "%0.2lf" being printed literally.
> 
> Thanks
> 
> Richard
> ________________________________________
> From: rrd-users-bounces+richard=atomwide.com at lists.oetiker.ch [rrd-users-bounces+richard=atomwide.com at lists.oetiker.ch] on behalf of Sebastian John [basti at fukz.de]
> Sent: 21 February 2012 15:35
> To: rrd-users at lists.oetiker.ch
> Subject: [rrd-users] Unable to print date to the graph
> 
> 
> 
> My graph definition (snipped)
> 
> ..
> VDEF:tmax=tmp,MAXIMUM
> ..
> GPRINT:tmax:"max %0.2lf":"%H"
> ..
> 
> I get: ERROR: I don't understand ':%H' in command: 'GPRINT:tmax:max
> %0.2lf:%H'.
> 
> 
> 
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> 

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20120222/fb8b8d02/attachment.pgp 


More information about the rrd-users mailing list