[rrd-users] Problem with max when summing two values
Erik A.Dahl
edahl at mindspring.com
Wed Jul 16 22:22:59 MEST 2003
I'm summing values from two different rrd files and am having an issue.
The PRINT statements for using average come out correctly but the max
statements are always low (by around 4-5%). Here is an example command
with the output:
rrdtool graph --end=1058300000 /dev/null
DEF:in0=rsm1/interfaces/gigabitethernet3_1.rrd:ds0:AVERAGE
DEF:in1=rsm2/interfaces/gigabitethernet3_1.rrd:ds0:AVERAGE
CDEF:insum=in0,in1,+ PRINT:insum:MAX:max\\:%.2lf%s
PRINT:in0:MAX:max\\:%.2lf%s PRINT:in1:MAX:max\\:%.2lf%s
0x0
max:41.44M
max:21.64M
max:21.97M
21.64 + 21.97 = 43.61 != 41.44
Any thoughts? I have moved the end time back before the last poll so
that my DEFs aren't getting the last unknown value.
I'm using 1.0.41 on Solaris 2.8
-EAD
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list