[rrd-users] Blocky graphs
Stefan Coetzee
coetzes at staff.intekom.com
Thu Sep 9 11:27:16 MEST 2004
Hi people...
First time I've mailed, so please excuse dumb questions..
I've searched the archives and google, but can't find any useful info.
The graphs that I generate after 4 days come out blocky, but before 4 days
are fine.
my database was created like this:
rrdtool create /etc/mrtg/mem.extrelay.rrd --start 1093444300 --step 300 \
DS:total:GAUGE:600:U:U RRA:AVERAGE:0.5:1:1200 RRA:AVERAGE:0.5:12:24
RRA:AVERAGE:0.5:288:31 RRA:AVERAGE:0.5:8928:12 \
DS:used:GAUGE:600:U:U RRA:AVERAGE:0.5:1:1200 RRA:AVERAGE:0.5:12:24
RRA:AVERAGE:0.5:288:31 RRA:AVERAGE:0.5:8928:12 \
DS:free:GAUGE:600:U:U RRA:AVERAGE:0.5:1:1200 RRA:AVERAGE:0.5:12:24
RRA:AVERAGE:0.5:288:31 RRA:AVERAGE:0.5:8928:12 \
DS:buffers:GAUGE:600:U:U RRA:AVERAGE:0.5:1:1200 RRA:AVERAGE:0.5:12:24
RRA:AVERAGE:0.5:288:31 RRA:AVERAGE:0.5:8928:12 \
DS:cached:GAUGE:600:U:U RRA:AVERAGE:0.5:1:1200 RRA:AVERAGE:0.5:12:24
RRA:AVERAGE:0.5:288:31 RRA:AVERAGE:0.5:8928:12 \
DS:active:GAUGE:600:U:U RRA:AVERAGE:0.5:1:1200 RRA:AVERAGE:0.5:12:24
RRA:AVERAGE:0.5:288:31 RRA:AVERAGE:0.5:8928:12
now when I graph using the script that I've included in the end of the
email,
and $1 after --start is -5day or greater, I get this:
http://www.thechamber.co.za/test1.gif
-4day:
http://www.thechamber.co.za/test2.gif
-2day
http://www.thechamber.co.za/test3.gif
I'm wanting to graph averages for hourly, daily, weekly, monthly and yearly,
like MRTG used to do.
What am I doing wrong?
Thanks in advance,
Stefan
/usr/local/bin/rrdtool graph /var/www/html/mrtg/test1.gif --start
$1 -R -A -M -L 9 -w 600 -h 300 --title "Krypton memory usage in pages (1
page = 8192 bytes)" -v "Memory usage" \
DEF:manfreepages=/etc/mrtg/mem.krypton.rrd:manfreepages:AVERAGE \
DEF:manactivepages=/etc/mrtg/mem.krypton.rrd:manactivepages:AVERAGE
\
DEF:maninactivepages=/etc/mrtg/mem.krypton.rrd:maninactivepages:AVERAGE \
DEF:manwiredpages=/etc/mrtg/mem.krypton.rrd:manwiredpages:AVERAGE \
DEF:manubcpages=/etc/mrtg/mem.krypton.rrd:manubcpages:AVERAGE \
DEF:wirvmwiredpages=/etc/mrtg/mem.krypton.rrd:wirvmwiredpages:AVERAGE \
DEF:wirubcwiredpages=/etc/mrtg/mem.krypton.rrd:wirubcwiredpages:AVERAGE \
DEF:wirmetadatapages=/etc/mrtg/mem.krypton.rrd:wirmetadatapages:AVERAGE \
DEF:wirmallocpages=/etc/mrtg/mem.krypton.rrd:wirmallocpages:AVERAGE
\
DEF:wircontigpages=/etc/mrtg/mem.krypton.rrd:wircontigpages:AVERAGE
\
DEF:wiruserptepages=/etc/mrtg/mem.krypton.rrd:wiruserptepages:AVERAGE \
DEF:wirkernelptepages=/etc/mrtg/mem.krypton.rrd:wirkernelptepages:AVERAGE \
DEF:wirfreeptepages=/etc/mrtg/mem.krypton.rrd:wirfreeptepages:AVERAGE \
COMMENT:"Graph updated on `date` \\n" \
COMMENT:\\n \
HRULE:262144#FF0000:"Total Memory" \
COMMENT:\\n \
COMMENT:\\n \
COMMENT:"BLUE&GREEN = Sum of Managed: Wired Pages"\\n \
COMMENT:\\n \
AREA:manwiredpages#CC33CC:"Managed\: Wired Pages\:...." \
GPRINT:manwiredpages:MAX:Max="%.0lf"
GPRINT:manwiredpages:MIN:Min="%.0lf" GPRINT:manwiredpages:LAST:Last="%.0lf"
COMMENT:\\n \
STACK:manactivepages#FF6600:"Managed\: Active Pages\:..." \
GPRINT:manactivepages:MAX:Max="%.0lf"
GPRINT:manactivepages:MIN:Min="%.0lf"
GPRINT:manactivepages:LAST:Last="%.0lf" COMMENT:\\n \
STACK:maninactivepages#FF0000:"Managed\: Inactive Pages\:." \
GPRINT:maninactivepages:MAX:Max="%.0lf"
GPRINT:maninactivepages:MIN:Min="%.0lf"
GPRINT:maninactivepages:LAST:Last="%.0lf" COMMENT:\\n \
STACK:manubcpages#FFCC33:"Managed\: UBC Pages\:......" \
GPRINT:manubcpages:MAX:Max="%.0lf" GPRINT:manubcpages:MIN:Min="%.0lf"
GPRINT:manubcpages:LAST:Last="%.0lf" COMMENT:\\n \
STACK:manfreepages#000000:"Managed\: Free Pages\:....." \
GPRINT:manfreepages:MAX:Max="%.0lf"
GPRINT:manfreepages:MIN:Min="%.0lf" GPRINT:manfreepages:LAST:Last="%.0lf"
COMMENT:\\n \
AREA:wirvmwiredpages#99FF99:"Wired\: VM Wired Pages\:..." \
GPRINT:wirvmwiredpages:MAX:Max="%.0lf"
GPRINT:wirvmwiredpages:MIN:Min="%.0lf"
GPRINT:wirvmwiredpages:LAST:Last="%.0lf" COMMENT:\\n \
STACK:wiruserptepages#99FFFF:"Wired\: User PTEPages\:...." \
GPRINT:wiruserptepages:MAX:Max="%.0lf"
GPRINT:wiruserptepages:MIN:Min="%.0lf"
GPRINT:wiruserptepages:LAST:Last="%.0lf" COMMENT:\\n \
STACK:wirubcwiredpages#33FF33:"Wired\: UBC Wired Pages\:.." \
GPRINT:wirubcwiredpages:MAX:Max="%.0lf"
GPRINT:wirubcwiredpages:MIN:Min="%.0lf"
GPRINT:wirubcwiredpages:LAST:Last="%.0lf" COMMENT:\\n \
STACK:wirmetadatapages#009900:"Wired\: Meta Data Pages\:.." \
GPRINT:wirmetadatapages:MAX:Max="%.0lf"
GPRINT:wirmetadatapages:MIN:Min="%.0lf"
GPRINT:wirmetadatapages:LAST:Last="%.0lf" COMMENT:\\n \
STACK:wirmallocpages#0033CC:"Wired\: Malloc Pages\:....." \
GPRINT:wirmallocpages:MAX:Max="%.0lf"
GPRINT:wirmallocpages:MIN:Min="%.0lf"
GPRINT:wirmallocpages:LAST:Last="%.0lf" COMMENT:\\n \
STACK:wircontigpages#0066CC:"Wired\: Contig Pages\:....." \
GPRINT:wircontigpages:MAX:Max="%.0lf"
GPRINT:wircontigpages:MIN:Min="%.0lf"
GPRINT:wircontigpages:LAST:Last="%.0lf" COMMENT:\\n \
STACK:wirkernelptepages#33CCCC:"Wired\: Kernel PTEPages\:.." \
GPRINT:wirkernelptepages:MAX:Max="%.0lf"
GPRINT:wirkernelptepages:MIN:Min="%.0lf"
GPRINT:wirkernelptepages:LAST:Last="%.0lf" COMMENT:\\n \
STACK:wirfreeptepages#3399FF:"Wired\: Free PTEPages\:...." \
GPRINT:wirfreeptepages:MAX:Max="%.0lf"
GPRINT:wirfreeptepages:MIN:Min="%.0lf"
GPRINT:wirfreeptepages:LAST:Last="%.0lf" COMMENT:\\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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list