How to: Write latest set of values with GPRINT

View: New views
1 Messages — Rating Filter:   Alert me  

How to: Write latest set of values with GPRINT

by peter juuls :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Beginners question, I guess....

I've created a rrd database with this command

   rrdtool create %rrdfile% --start n
       DS:femtendata:GAUGE:600:U:U   (...)
       RRA:AVERAGE:0.5:2:1008

Every 5 minutes I insert the latest set of values into the rrd database, and running this
command correctly returns timestamp and the latest set of values

   rrdtool lastupdate  %rrdfile%

This command line generates a png-file with maximum-value printed in  the bottom line
Question: How do I expand the command line to make rrdtool write the latest set of absolute
values?

    rrdtool graph  (...)
       DEF:femten=%rrdfile%:femtendata:AVERAGE  (.....)
       VDEF:femax=femten,MAXIMUM  (...)
       GPRINT:femax:"%%10.0lf"    (what to insert here?)


Thanks
Best regards
Peter



     

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users