[rrd-users] Re: blocy graph with description

Sebastian Pachuta seba123 at seba123.webd.pl
Tue Oct 17 15:02:08 MEST 2006


On Tue, Oct 17, 2006 at 12:07:43 +0200, Alex van den Bogaerdt wrote:

> Please create a small script that:
> 
> 1) creates a database

rrdtool create cpu.rrd --step 300 \
        DS:user:GAUGE:1800:0:100 \
        DS:nice:GAUGE:1800:0:100 \
        DS:system:GAUGE:1800:0:100 \
        DS:iowait:GAUGE:1800:0:100 \
        DS:idle:GAUGE:1800:0:100 \
        RRA:AVERAGE:0.5:1:1400 \
        RRA:AVERAGE:0.5:3:1400 \
        RRA:AVERAGE:0.5:13:1400 \
        RRA:AVERAGE:0.5:151:1400

> 2) fills the database with known data, for instance {1,2,3, ... n}

http://www.seba123.webd.pl/rrd-453/cpu.rrd.gz

> 3) creates an image, showing the blocky output
> 4) creates an image, not showing the blocky output


#! /bin/sh

good=1161088200
bad=1161088500
rrdtool graph good.png \
  --end $good --start $good-630000 -w 700 -h 250 \
  --lower-limit 0 --upper-limit 100 -r \
  DEF:user=cpu.rrd:user:AVERAGE \
  AREA:user#00f000:user

rrdtool graph bad.png \
  --end $bad --start $bad-630000 -w 700 -h 250 \
  --lower-limit 0 --upper-limit 100 -r \
  DEF:user=cpu.rrd:user:AVERAGE \
  AREA:user#00f000:user

http://www.seba123.webd.pl/rrd-453/good.png
http://www.seba123.webd.pl/rrd-453/bad.png

> When you're done, post the script here.  When you do, explain why you
> think the "wrong" RRA is chosen, and why.

Should I copy first message from thread?

Regards

-- 
Sebastian Pachuta
seba123 at seba123.webd.pl

--
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