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:[EMAIL PROTECTED]
Sent: Tuesday, March 06, 2001 22:00
To: [email protected]
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
--
[EMAIL PROTECTED] http://net.doit.wisc.edu/~plonka ARS:N9HZF Madison,
WI
--
Unsubscribe mailto:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Unsubscribe mailto:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi