Hi,
It seems that there is some confusion about the problem.
To make sure we're talking about the same problem, I've
included a Makefile that should produce two graphs for
you to view. It creates example.rrd, example.html, ex1.png
and ex2.png so if you have one of those around, make sure
not to overwrite the real one.
The resulting graphs show that value3 (blue) is known but
is not graphed in the second png.
Please note that there is *NO* adding whatsoever so this is
not the (valid) behaviour of (#1+#2+#3 == unknown) when #2 is unknown.
Regards,
Alex
Makefile:
example: ex1.png ex2.png
echo '
' > example.html
clean:
-rm ex1.png ex2.png example.rrd example.html
ex1.png: example.rrd
rrdtool graph ex1.png \
--start 933631200 \
--end 933634800 \
--lower-limit 0 \
DEF:val1=example.rrd:val1:AVERAGE \
DEF:val2=example.rrd:val2:AVERAGE \
DEF:val3=example.rrd:val3:AVERAGE \
AREA:val1#FF0000:"Value 1" \
GPRINT:val1:AVERAGE:"Average %6.2lf\\n" \
AREA:val2#00C000:"Value 2" \
GPRINT:val2:AVERAGE:"Average %6.2lf\\n" \
AREA:val3#0000FF:"Value 3" \
GPRINT:val3:AVERAGE:"Average %6.2lf\\n"
ex2.png: example.rrd
rrdtool graph ex2.png \
--start 933631200 \
--end 933634800 \
--lower-limit 0 \
DEF:val1=example.rrd:val1:AVERAGE \
DEF:val2=example.rrd:val2:AVERAGE \
DEF:val3=example.rrd:val3:AVERAGE \
AREA:val1#FF0000:"Value 1" \
GPRINT:val1:AVERAGE:"Average %6.2lf\\n" \
STACK:val2#00C000:"Value 2" \
GPRINT:val2:AVERAGE:"Average %6.2lf\\n" \
STACK:val3#0000FF:"Value 3" \
GPRINT:val3:AVERAGE:"Average %6.2lf\\n"
example.rrd:
rrdtool create example.rrd \
--start 933631200 \
--step 10 \
DS:val1:GAUGE:7200:U:U \
DS:val2:GAUGE:7200:U:U \
DS:val3:GAUGE:7200:U:U \
RRA:AVERAGE:0:1:360
rrdtool update example.rrd \
933632400:100:50:25
rrdtool update example.rrd \
933633600:100:U:25
rrdtool update example.rrd \
933634800:100:50:25
--
* To unsubscribe from the rrd-developers mailing list, send a message with the
subject: unsubscribe to rrd-developers-request@list.ee.ethz.ch