[rrd-users] how to only gprint the timestamp

A Darren Dunham ddunham at taos.com
Mon Nov 8 22:00:57 CET 2010

On Mon, Nov 08, 2010 at 11:58:30AM -0800, Shaun Reitan wrote:
> I was attempting to use gprint with :strftime to print the date on my 
> graph.  The goal is to print the date/time of the last (current) record 
> so that the user saves the graph they know the date range it's for.  It 
> looks like gprint will throw an error if you try to only print the date 
> and not the data that was associated with the VDEF.

What error do you get?

>  I want a date/time 
> printed in the bottom right corner..
> VDEF:ds0last=ds0,LAST
> I tried...
> GPRINT:ds0last:strftime %y\r
> GPRINT:ds0last:%y\r:strftime

That last one appears to be the correct form.  Is a graph generated?  If
so, what is on it (in the area where your GPRINT output should be)?


More information about the rrd-users mailing list