[rrd-users] FW: Incorrect Last Summation Value For NaN Value
Ho Siew Fah
hoswfh at singtel.com
Mon Nov 6 01:49:22 MET 2006
Hi,
Previously, I had posted a question on no line graph. I have found a
solution to it by adding "TIME,1162709400,GT,a,a,UN,0,a,IF,IF,8,*" to
each CDEF function. I could see the line and area graph now. However, I
had another problem. The summation of the Total Incoming and Outgoing
traffic for LAST value is different from the summation of each item. It
is either a zero value or the value is just not the correct summation
value. This only happens to NaN value in the rrd file.
The following is my rrdtool graphing script. Can anybody help? Thank
you.
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=1162623754 \
--end=1162709400 \
--title="testing" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2006/11/04 15\:02\:\:34 To 2006/11/05 14\:50\:\:00\c" \
COMMENT:" \n" \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/usr/local/share/cacti/rra/us_la_core2_traffic_in_5775.rrd":traff
ic_in:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/us_ow_distribution2_traffic_in_6840.rr
d":traffic_in:AVERAGE \
DEF:c="/usr/local/share/cacti/rra/us_la_core2_traffic_in_5775.rrd":traff
ic_out:AVERAGE \
DEF:d="/usr/local/share/cacti/rra/us_ow_distribution2_traffic_in_6840.rr
d":traffic_out:AVERAGE \
DEF:xx="/usr/local/share/cacti/rra/us_ow_distribution2_traffic_in_6840.r
rd":traffic_in:MAX \
DEF:zz="/usr/local/share/cacti/rra/us_ow_distribution2_traffic_in_6840.r
rd":traffic_out:MAX \
CDEF:cdefa=TIME,1162709400,GT,a,a,UN,0,a,IF,IF,8,* \
CDEF:cdefb=TIME,1162709400,GT,b,b,UN,0,b,IF,IF,8,* \
CDEF:cdefc=TIME,1162709400,GT,c,c,UN,0,c,IF,IF,8,* \
CDEF:cdefd=TIME,1162709400,GT,d,d,UN,0,d,IF,IF,8,* \
CDEF:cdefxx=b,0,* \
CDEF:cdefiii=TIME,1162709400,GT,cdefa,cdefa,UN,0,cdefa,IF,IF,TIME,116270
9400,GT,cdefb,cdefb,UN,0,cdefb,IF,IF,+, \
CDEF:cdefzz=b,0,* \
CDEF:cdefbbb=TIME,1162709400,GT,cdefc,cdefc,UN,0,cdefc,IF,IF,TIME,116270
9400,GT,cdefd,cdefd,UN,0,cdefd,IF,IF,+, \
AREA:cdefa#00CF00:"" \
AREA:cdefb#00CF00:"":STACK \
LINE1:cdefc:"" \
LINE1:cdefd#0D006A:"":STACK \
COMMENT:" \n" COMMENT:"US LA Core2 \n" \
COMMENT:" Incoming\:" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:" Outgoing\:" \
GPRINT:cdefc:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefc:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:" \n" COMMENT:"US OW Distribution \n" \
COMMENT:" Incoming\:" \
GPRINT:cdefb:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefb:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:" Outgoing\:" \
GPRINT:cdefd:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:" \n" \
LINE1:cdefxx#00FF00:"Total Incoming\:":STACK \
GPRINT:cdefiii:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefiii:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefiii:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefzz#0D006A:"Total Outgoing\:":STACK \
GPRINT:cdefbbb:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefbbb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbbb:MAX:"Maximum\:%8.2lf %s\n"
--
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://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the rrd-users
mailing list