[rrd-users] Re: extending RRAs... scripts? suggestions?

JTuite at PanAmSat.com JTuite at PanAmSat.com
Tue Mar 6 23:25:34 MET 2001


I had to do the same thing but to the first RRA, I have to do it one record
every five minutes to avoid creating gaps.
I have a script that you can pass a directory name to and it will resize all
the rrd files in that directory.

to grow RRA 0 in the routers dir by 1 record run this:
~/resize-rrd ~/cricket-data/routers 0 GROW 1

#resize-rrd
#!/bin/bash
	for rrdfile in $1/*.rrd ; do
		rrdtool resize $rrdfile $2 $3 $4
		mv resize.rrd $rrdfile
	done

-----Original Message-----
From: Dave Plonka [mailto:plonka at doit.wisc.edu]
Sent: Tuesday, March 06, 2001 22:00
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] extending RRAs... scripts? suggestions?




RRD users,

I'm interested in extending my RRAs.  Basically I've got lots of ".rrd"
files that were created nearly 2 years ago, e.g.:

   rrdtool create foo.rrd --step 300 \
   DS:bar:ABSOLUTE:400:U:U \
   RRA:AVERAGE:0:1:600 \
   RRA:AVERAGE:0:6:600 \
   RRA:AVERAGE:0:24:600 \
   RRA:AVERAGE:0:288:732 \
   RRA:MAX:0:24:600 \
   RRA:MAX:0:288:732

and real soon now they will begin to lose old daily AVERAGE and MAX
values.  I guess I just ned to be able to extend those daily RRAs to
perhaps 5 years so I get some breating room.

Anyone have a script around to do this?

If not, I'd like to write one which allows me to add more rows to the
end of the (last?) RRA by using "rrdtool dump" and "rrdtool restore",
somewhat similarly to the way "add_ds" works.  I'm considering using
the hacked XML::Simple that I used in the early "log2rrd"
("http://net.doit.wisc.edu/~plonka/log2rrd/") to grok the "rrdtool
dump" output.

Alternatives or caveats with this proposed method are welcome (please
Cc me personally), as I need to do this *soon*.

Thanks,
Dave

-- 
plonka at doit.wisc.edu  http://net.doit.wisc.edu/~plonka  ARS:N9HZF  Madison,
WI

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

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