Hello, I want to plot total memory and used memory. I put 4 values in the rrd
memtot memfree swaptot swapfree I want to plot an area memtot and stack swaptot on it Over that i draw a line2 of (swaptot-swapfree)+(memtot-memfree) As a test I used CDEF:memuse=memtot,memfree,- on the stacked areas, that worked fine. But when I change the statement to: CDEF:memuse=memfree,swapfree,memtot,swaptot,+,-,- The surface of the area is still the same, but the color becomes the same, it seems that swaptot (the STACK on the AREA)is taking the whole size? The GPRINTs show that the numbers are correct. What is going wrong, below the full command: /usr/local/rrdtool-1.0.40/bin/rrdtool graph /home/bas/htdocs/server/mem_604800.png --start 1049831395 --end 1050436195 -t "Memory usage" DEF:memtot=/home/bas/Programmeren/perl/servwatch/mem.rrd:memtot:AVERAGE DEF:memfree=/home/bas/Programmeren/perl/servwatch/mem.rrd:memfree:AVERAG E DEF:swaptot=/home/bas/Programmeren/perl/servwatch/mem.rrd:swaptot:AVERAG E DEF:swapfree=/home/bas/Programmeren/perl/servwatch/mem.rrd:swapfree:AVER AGE AREA:memtot#B8B8B8:RAM GPRINT:memtot:AVERAGE:"%.0lf%s\n" STACK:swaptot#E2E2E2:Swap GPRINT:swaptot:AVERAGE:"%.0lf%s\n" CDEF:memuse=memfree,swapfree,memtot,swaptot,+,-,- LINE2:memuse#FF0000:UsedMemory GPRINT:memuse:AVERAGE:"Average %.0lf%s" Bas -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi