Hello
I believe you're are using a rrd file without RRA MINIMUM or MAXIMUM or
both.
Can you post the "rrdtool create" command you used to create WSM.rrd ?
To use :
_
DEF:kwhx=VSM.rrd:Watt_tot:MAX ^
DEF:kwhn=VSM.rrd:Watt_tot:MIN ^
_
you need a leat on RRA:MAX:/xff/*:*/steps/*:*/rows/ and one
/RRA:MIN:xff/*:*/steps/*:*/rows/
if you juste compute delta between MININUM and MAXIMUM of your average
RRA, this is the wrong way to process.
Yannick Marquet
Le 27/06/2013 09:50, Stefan Bruder a écrit :
_Hello list,
I have a problem calculating thte difference between a MAX and a MIN value
this is my GRAPH:_
_rrdtool graph VSM.png --start end-24h --end now ^
--title "Aktueller Stromverbrauch" --width 600 --height 330
--alt-y-grid --slope-mode ^
--upper-limit 5000 --lower-limit 0 --rigid ^
--color BACK#A9F5F288 --vertical-label "Verbauch in kW" ^
DEF:Watt=VSM.rrd:Watt_cur:MAX LINE1:Watt#FF0000:"Verbrauchskurve" ^
VDEF:Wavg=Watt,AVERAGE ^
VDEF:Wmin=Watt,MINIMUM ^
VDEF:Wmax=Watt,MAXIMUM ^
VDEF:Wact=Watt,LAST ^
DEF:kwhx=VSM.rrd:Watt_tot:MAX ^
DEF:kwhn=VSM.rrd:Watt_tot:MIN ^
VDEF:kwhmax=kwhx,MAXIMUM ^
VDEF:kwhmin=kwhn,MINIMUM ^
CDEF:delta=kwhx,kwhn,- ^
VDEF:dd=delta,MINIMUM ^
COMMENT:"\l" ^
COMMENT:"Verbrauch max " GPRINT:Wmax:"%%6.2lf [W]\l" ^
COMMENT:"Verbrauch min " GPRINT:Wmin:"%%6.2lf [W]\l" ^
COMMENT:"Verbrauch " GPRINT:Wavg:"%%6.2lf [W]\l" ^
COMMENT:"Zaehlerstand max " GPRINT:kwhmax:"%%6.2lf [kW]\l" ^
COMMENT:"Zaehlerstand min " GPRINT:kwhmin:"%%6.2lf [kW]\l" ^
COMMENT:" " GPRINT:dd:"%%6.2lf [kW]\l" ^
COMMENT:"Verbrauch aktuell " GPRINT:Wact:"%%6.2lf [W]\l"_
_I get this error:
ERROR: the RRD does not contain an RRA matching the chosen CF_
_I just want to display the diff from the MAX and MIN Value of
Watt_tot in VSM.rrd
_
_kind regards
Stefan _
_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users