[rrd-users] MIN AVG MAX LAST Values

Petteri Matilainen pmatil at gmail.com
Tue Dec 30 20:32:16 CET 2014


On 30.12.2014 21:22, Simon Pickard wrote:
> Hello,
>
> I am using rrdtool to graph reading from various temp sensors.
>
> If a value goes between 0.00 & -0.99 the MIN AVG MAX or LAST values
> shown on the graph read as 876m for example rather than the degree reading.
>
> Here is the code to create the graph...
>
> rrdtool graph $DIR/flue_temp_hourly_60.png \
> --start -4h \
> --end=now \
> --title="$TITLE" \
> --imgformat=PNG \
> --width=800 \
> --base=1000 \
> --height=240 \
> --rigid \
> --interlaced \
> --slope-mode \
> --vertical-label "Temperature (C)" \
> --right-axis-label "Temperature (C)" \
> --right-axis 1:0 \
> "DEF:flueTemp=$DIR/28.18667B050000.rrd:t:AVERAGE" \
> "DEF:outsideTemp=$DIR/28.73367C050000.rrd:t:AVERAGE" \
> "DEF:temp=$DIR/28.18667B050000.rrd:t:AVERAGE" \
> LINE2:flueTemp$TEMP1_COLOR:"Flue Temp    [deg $TEMP_SCALE]" \
> VDEF:Flue_Temp_MIN=flueTemp,MINIMUM \
> GPRINT:Flue_Temp_MIN:"Min\:%8.2lf%s" \
> VDEF:Flue_Temp_AVERAGE=flueTemp,AVERAGE \
> GPRINT:Flue_Temp_AVERAGE:"Avg\:%8.2lf%s" \
> VDEF:Flue_Temp_MAX=flueTemp,MAXIMUM \
> GPRINT:Flue_Temp_MAX:"Max\:%8.2lf%s" \
> VDEF:Flue_Temp_LAST=flueTemp,LAST \
> GPRINT:Flue_Temp_LAST:"LAST\:%8.2lf%s\n" \
> \
> LINE2:outsideTemp$OUTTEMP_COLOR:"Outside Temp [deg $TEMP_SCALE]" \
> VDEF:Return_Temp_MIN=outsideTemp,MINIMUM \
> GPRINT:Return_Temp_MIN:"Min\:%8.2lf%s" \
> VDEF:Return_Temp_AVERAGE=outsideTemp,AVERAGE \
> GPRINT:Return_Temp_AVERAGE:"Avg\:%8.2lf%s" \
> VDEF:Return_Temp_MAX=outsideTemp,MAXIMUM \
> GPRINT:Return_Temp_MAX:"Max\:%8.2lf%s" \
> VDEF:Return_Temp_LAST=outsideTemp,LAST \
> GPRINT:Return_Temp_LAST:"LAST\:%8.2lf%s\n"
>
>
> Can anyone offer any suggestions as to why?
>
>
>
>
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>

Hi Simon,

Try -X 0 which disables the use of units (m=milli etc.) for y-grid. See 
http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html

regards,

Pete



More information about the rrd-users mailing list