[rrd-users] STACK confusion

Rick Dicaire kritek at gmail.com
Sat Jul 9 07:35:59 CEST 2011


Hi folks, is '0' considered unknown when stacking?

I have 5 DS's, and I'm trying to stack them, most of the time each DS
value is 0.00:

rrdtool lastupdate /var/db/rrd/hdd_tput.rrd
 ada0 ada1 ada2 ada3 ad4

1310189105: 0.00 0.00 0.00 0.00 0.00

When graphing, I use this order: ad4 ada0 ada1 ada2 ada3

I STACK ada0 ada1 ada2 ada3.
If ad4 has a non-zero value, its correct value is graphed, using the
color configured for ada3.
Here are the definitions:

                "DEF:pre_ad4=$rrd:ad4:AVERAGE:step=300",
                "CDEF:ad4=pre_ad4,1000000,*",
                "LINE2:ad4#FF00FF:ad4",
                "GPRINT:ad4:LAST:%4.0lf %s\\t",

                "DEF:pre_ada0=$rrd:ada0:AVERAGE:step=300",
                "CDEF:ada0=pre_ada0,1000000,*",
                "LINE2:ada0#e10000:ada0:STACK",
                "GPRINT:ada0:LAST:%4.0lf %s\\t",

                "DEF:pre_ada1=$rrd:ada1:AVERAGE:step=300",
                "CDEF:ada1=pre_ada1,1000000,*",
                "LINE2:ada1#e1e100:ada1:STACK",
                "GPRINT:ada1:LAST:%4.0lf %s\\t",

                "DEF:pre_ada2=$rrd:ada2:AVERAGE:step=300",
                "CDEF:ada2=pre_ada2,1000000,*",
                "LINE2:ada2#00e100:ada2:STACK",
                "GPRINT:ada2:LAST:%4.0lf %s\\t",

                "DEF:pre_ada3=$rrd:ada3:AVERAGE:step=300",
                "CDEF:ada3=pre_ada3,1000000,*",
                "LINE2:ada3#0000e1:ada3:STACK",
                "GPRINT:ada3:LAST:%4.0lf %s\\l"

Example can be seen here http://www.ardynet.com/~ardy/ad4.png

How can I stack each DS?

Thanks

-- 
aRDy Music and Rick Dicaire present:
http://www.ardynet.com
http://www.ardynet.com:9000/ardymusic.ogg.m3u



More information about the rrd-users mailing list