<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>I'm working on my first custom rrd project and I'm having an issue with things not adding up correctly in a stacked graph.&nbsp;</div><div><br></div><div><a href="http://farm6.static.flickr.com/5105/5592424900_9a13016d57_b.jpg">http://farm6.static.flickr.com/5105/5592424900_9a13016d57_b.jpg</a></div><div><br></div><div>I'm most interested in the max values for this data and if you add up all the individual max values you get a value that's 120.15 greater than the total printed on the graph both visually and in the gprints. &nbsp; Here is another example using only 2 samples:</div><div><br></div><div><a href="http://farm6.static.flickr.com/5095/5591833819_9a5942d74a_b.jpg">http://farm6.static.flickr.com/5095/5591833819_9a5942d74a_b.jpg</a></div><div><br></div><div>And the relevant code&#8230;&nbsp;</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp;RRDs::graph "$img/combined-$interval-&gt;{label}.png",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"$interval-&gt;{period}", "$interval-&gt;{end}",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"-t DSL Aggerate - $interval-&gt;{label}", &nbsp;&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"-h", "$interval-&gt;{rezH}", "-w", "$interval-&gt;{rezW}",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"-l 0",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"-a", "PNG",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"-v bits/sec",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"-b", "1000",&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"DEF:er01agas1in=$rrd_dir/er01.yul01.30004.rrd:in:MAX",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"DEF:er01agas1out=$rrd_dir/er01.yul01.30004.rrd:out:MAX",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"DEF:er01agas2in=$rrd_dir/er01.yul01.1418299.rrd:in:MAX",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"DEF:er01agas2out=$rrd_dir/er01.yul01.1418299.rrd:out:MAX",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"DEF:er01agas3in=$rrd_dir/er01.yul01.1385232.rrd:in:MAX",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"DEF:er01agas3out=$rrd_dir/er01.yul01.1385232.rrd:out:MAX",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"DEF:er01agas4in=$rrd_dir/er01.yul01.1819030.rrd:in:MAX", &nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"DEF:er01agas4out=$rrd_dir/er01.yul01.1819030.rrd:out:MAX",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"DEF:er02agas1in=$rrd_dir/er02.yul01.6.rrd:in:MAX",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"DEF:er02agas1out=$rrd_dir/er02.yul01.6.rrd:out:MAX",</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"CDEF:totalin=er01agas1in,er01agas2in,er01agas3in,er01agas4in,er02agas1in,+,+,+,+",</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"CDEF:totalout=er01agas1out,er01agas2out,er01agas3out,er01agas4out,er02agas1out,+,+,+,+",</div><div><br></div></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"LINE1:totalout#000000:Total Out &nbsp; &nbsp; ",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"GPRINT:totalout:MAX: Max\\: %5.2lf %S",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"GPRINT:totalout:AVERAGE: Avg\\: %5.2lf %S",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"GPRINT:totalout:LAST: Current\\: %5.2lf %Sbits/sec\\n",</div></div><div><br></div><div>The data is being collected every 60 seconds and the rras are setup to keep 7 days worth of 1 minute samples and 3 years worth of daily max values for long term peak trending. &nbsp; I can't find any reason these shouldn't be adding up.. and I'm at a loss as to how to fix it.&nbsp;</div><div><br></div><div>Thanks,</div><div>Jared</div><div><br></div></body></html>