[rrd-users] how to only gprint the timestamp

Shaun Reitan mailinglists at unix-scripts.com
Tue Nov 9 00:46:05 CET 2010


On 11/8/2010 1:00 PM, A Darren Dunham wrote:
> 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)?
>

I'm not really sure what happened, i just tried again and it works 
perfectly.  Think i may have accidentally had a " in the wrong place.

--
Shaun R



More information about the rrd-users mailing list