[rrd-users] create new rra (monthly 5 minutes average)

Andras Horvai andras.horvai at keystone.hu
Tue Dec 2 16:28:25 MET 2003


Hi,

I would like to create a new rra as I wrote in the e-mail subject, monthly 5 minutes average.
But I miss something. When I create the graph it exactly represents the same graph what the
monthly 2 hours average. What can be wrong?
I'm using cacti as rrd frontend. Is here somebody who created this type of rra?
(i'm using 2 separate rrd in one graph)



this is the source of the graph:

rrdtool graph - \
--imgformat=PNG \
--start=-2678400 \
--title="stat" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/cacti/traffic_198.rrd":traffic:AVERAGE \
DEF:b="/cacti/traffic_199.rrd":traffic:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefh=b,8,* \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"\n"  \
HRULE:0#FF0000:"95th Percentile"  \
COMMENT:"(0 kbit in)\n"  \
LINE1:cdefh#002A97:"Outbound"  \
GPRINT:cdefh:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"\n"  \
HRULE:0#000000:"95th Percentile"  \
COMMENT:"(0 kbit out)" 


here is the source of rrd:


rrdtool create \
/cacti/traffic_199.rrd \
--step 300  \
DS:traffic:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:1:17280 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:1:17280 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \


rrdtool create \
/cacti/traffic_198.rrd \
--step 300  \
DS:traffic:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:1:17280 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:1:17280 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \




Thanks for your hints,

Andras

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