<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. </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. 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… </div><div><br></div><div><div> RRDs::graph "$img/combined-$interval->{label}.png",</div><div> "$interval->{period}", "$interval->{end}",</div><div> "-t DSL Aggerate - $interval->{label}", </div><div> "-h", "$interval->{rezH}", "-w", "$interval->{rezW}",</div><div> "-l 0",</div><div> "-a", "PNG",</div><div> "-v bits/sec",</div><div> "-b", "1000", </div><div> "DEF:er01agas1in=$rrd_dir/er01.yul01.30004.rrd:in:MAX",</div><div> "DEF:er01agas1out=$rrd_dir/er01.yul01.30004.rrd:out:MAX",</div><div> "DEF:er01agas2in=$rrd_dir/er01.yul01.1418299.rrd:in:MAX",</div><div> "DEF:er01agas2out=$rrd_dir/er01.yul01.1418299.rrd:out:MAX",</div><div> "DEF:er01agas3in=$rrd_dir/er01.yul01.1385232.rrd:in:MAX",</div><div> "DEF:er01agas3out=$rrd_dir/er01.yul01.1385232.rrd:out:MAX",</div><div> "DEF:er01agas4in=$rrd_dir/er01.yul01.1819030.rrd:in:MAX", </div><div> "DEF:er01agas4out=$rrd_dir/er01.yul01.1819030.rrd:out:MAX",</div><div> "DEF:er02agas1in=$rrd_dir/er02.yul01.6.rrd:in:MAX",</div><div> "DEF:er02agas1out=$rrd_dir/er02.yul01.6.rrd:out:MAX",</div><div><br></div><div> "CDEF:totalin=er01agas1in,er01agas2in,er01agas3in,er01agas4in,er02agas1in,+,+,+,+",</div><div><br></div><div> "CDEF:totalout=er01agas1out,er01agas2out,er01agas3out,er01agas4out,er02agas1out,+,+,+,+",</div><div><br></div></div><div><div> "LINE1:totalout#000000:Total Out ",</div><div> "GPRINT:totalout:MAX: Max\\: %5.2lf %S",</div><div> "GPRINT:totalout:AVERAGE: Avg\\: %5.2lf %S",</div><div> "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. I can't find any reason these shouldn't be adding up.. and I'm at a loss as to how to fix it. </div><div><br></div><div>Thanks,</div><div>Jared</div><div><br></div></body></html>