[rrd-users] Problem with RRAs with steps > 1
Andreas Schildbach
andreas at schildbach.de
Sun Dec 7 14:23:32 MET 2003
Hello everyone,
Could you have a look at http://80.190.243.20:5081/, please?
My intention is to create 3 graphs:
1) 1 pixel is 2 minutes, graph spans 1 day
2) 1 pixel is 1 hour, graph spans 30 days
3) 1 pixel is 6 hours, graph spans 180 days
The problem is graphs 2 and 3 seem to be totally wrong.
I am using RRDtool 1.0.35.
I used the following command to create the RRD:
rrdtool create /var/rrd/memory.rrd --step 120 \
DS:free-physical:GAUGE:120:0:U \
DS:free-buffer:GAUGE:120:0:U \
DS:free-swap:GAUGE:120:0:U \
RRA:AVERAGE:0.5:1:720 \
RRA:AVERAGE:0.5:30:720 \
RRA:AVERAGE:0.5:180:720
This is how I insert values into the RRD every 2 minutes:
rrdtool update /var/rrd/memory.rrd \
N:<free-psysical>:<free-buffer>:<free-swap>
And here is how I create the 3 graphs:
rrdtool graph memory-120.png --step 120 --imgformat PNG \
--width 720 --height 150 --base 1024 \
DEF:swap=/var/rrd/memory.rrd:free-swap:AVERAGE \
DEF:physical=/var/rrd/memory.rrd:free-physical:AVERAGE \
DEF:buffer=/var/rrd/memory.rrd:free-buffer:AVERAGE \
CDEF:sum=swap,physical,+,buffer,+ \
AREA:sum#dddddd:"" \
LINE2:swap#00cc00:"free swap memory" \
LINE2:physical#cc0000:"free physical memory" \
LINE2:buffer#0000cc:"free kernel buffers" \
LINE1:sum#aaaaaa:"sum of free memory"
rrdtool graph memory-3600.png --step 3600 --imgformat PNG \
--width 720 --height 150 --base 1024 \
DEF:swap=/var/rrd/memory.rrd:free-swap:AVERAGE \
DEF:physical=/var/rrd/memory.rrd:free-physical:AVERAGE \
DEF:buffer=/var/rrd/memory.rrd:free-buffer:AVERAGE \
CDEF:sum=swap,physical,+,buffer,+ \
AREA:sum#dddddd:"" \
LINE2:swap#00cc00:"free swap memory" \
LINE2:physical#cc0000:"free physical memory" \
LINE2:buffer#0000cc:"free kernel buffers" \
LINE1:sum#aaaaaa:"sum of free memory"
rrdtool graph memory-21600.png --step 21600 --imgformat PNG \
--width 720 --height 150 --base 1024 \
DEF:swap=/var/rrd/memory.rrd:free-swap:AVERAGE \
DEF:physical=/var/rrd/memory.rrd:free-physical:AVERAGE \
DEF:buffer=/var/rrd/memory.rrd:free-buffer:AVERAGE \
CDEF:sum=swap,physical,+,buffer,+ \
AREA:sum#dddddd:"" \
LINE2:swap#00cc00:"free swap memory" \
LINE2:physical#cc0000:"free physical memory" \
LINE2:buffer#0000cc:"free kernel buffers" \
LINE1:sum#aaaaaa:"sum of free memory"
Can anyone tell me what I'm doing wrong, please?
Regards,
Andreas
--
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