[drraw-users] Displaying a LAST value in the legend, when no LAST RRA is present

Martin Schuster (IFKL IT OS DSM CD) Martin.Schuster1 at infineon.com
Tue Jun 9 03:57:36 MDT 2009


Thomas Lorenzen wrote:
> [...]
> Now, the rrd archives, which I have for drraw, also only have RRA archives of types AVERAGE AND MIN AND MAX. I am thus speculating, if drraw could be instructed to tell me in its legend about the latest value for each graphed dataseries. just like it is done in munin.
> 
According to the rrdgraph_rpn manpage, there is a variable called LAST.

So you'd do something like
VDEF:lastpoint=ping,LAST
and then use
GPRINT:lastpoint:%5.2f
to print the value in the graph legend.

hth,
-- 
Infineon Technologies IT-Services GmbH   Martin.Schuster1 at infineon.com
Lakeside B05, 9020 Klagenfurt, Austria   Martin Schuster
         FB: LG Klagenfurt, FN 246787y   +43 5 1777 3517



More information about the drraw-users mailing list