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

Richard Burton richard at atomwide.com
Tue Feb 21 23:38:14 CET 2012


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





More information about the rrd-users mailing list