[rrd-users] Question using VDEF

Peter Mueller peter.o.mueller at gmx.de
Fri Jul 20 23:29:44 CEST 2007


Hello RRD-Users,

I'm new to rrd and have the following question.

To show the last value of a rrd in  a meaningful unit I have to do  
some math in rrd-graph.
This works ok for CDEF and plots the right graph.

CDEF:realdist=221,mydist,-,100,*,121,/
LINE2:realdist#00c000:"%"

Now I want to show the last value via GPRINT and wanted to do the  
math with a VDEF.

This does not work:
VDEF:value=mydist,LAST
VDEF:distpercent=221,value,-,100,*,121,/
GPRINT:distpercent:"%2.2lf"

The problem is in the second line when I calculate distpercent.
How can I do this? Any other way?

Looking forward to receive some help.
With best regards,
Peter


--
Peter Mueller
peter.o.mueller at gmx.de


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20070720/919b4fac/attachment.html 


More information about the rrd-users mailing list