hi,

yesterday i updated to 1.2.16 (last version was 1.2.15) - 
following script doesn't work with the new version:

--------------------------------
#!/bin/sh

. /data/rrd/etc/graph.conf

#FILE="$RRDDIR/temp.rrd"


echo "Content-Type: image/png";
echo "";

# time
starttime $1

# graph
$RRDTOOL graph - \
-t "Temp" -v "°C" \
--start="$TIME" \
--end="now" \
--height="$HEIGHT" \
--width="$WIDTH" \
-c "$BACK" \
-c "$SHADEA" \
-c "$SHADEB" \
-c "$FONT" \
-c "$CANVAS" \
-c "$GRID" \
-c "$MGRID" \
-c "$FRAME" \
-c "$ARROW" \
"DEF:sda=$RRDDIR/hddtemp-8-0.rrd:value:AVERAGE" \
"DEF:sdb=$RRDDIR/hddtemp-8-16.rrd:value:AVERAGE" \
"LINE1:sda#800000:sda" \
"GPRINT:sda:LAST:Last\: %2.0lf °C" \
"GPRINT:sda:MAX:  Max\: %2.0lf °C" \
"GPRINT:sda:MIN:  Min\: %2.0lf °C" \
"GPRINT:sda:AVERAGE: Avg\: %2.0lf °C\n" \
"LINE1:sdb#00FF00:sdb" \
"GPRINT:sdb:LAST:Last\: %2.0lf °C" \
"GPRINT:sdb:MAX:  Max\: %2.0lf °C" \
"GPRINT:sdb:MIN:  Min\: %2.0lf °C" \
"GPRINT:sdb:AVERAGE: Avg\: %2.0lf °C"
---------------------------------------

the error is:

---------------------------------------
Content-Type: image/png

ERROR: Unknown control code at the end of '     Avg: 24 °C\n'
--------------------------------------

any ideas why my script doesn't work with 1.2.16 - it worked with 1.2.15
i have a couple of scripts that doesn't work with the new version

thanks for any suggestions

greets
--aleex

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x Alexander Krogloth / [EMAIL PROTECTED] / http://www.krogloth.de  x
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

-- Attached file removed by Ecartis and put at URL below --
-- Type: application/pgp-signature
-- Desc: Digital signature
-- Size: 190 bytes
-- URL : http://lists.ee.ethz.ch/p/18-signature.asc


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to