On Mon, Mar 17, 2003 at 09:47:32AM -0000, Buttery, Daniel wrote: > Hi! I've got a lovely database setup that contains our bandwidth utilisation > figures. I'm thick and can't remember the command I issued to create the > database, and we now want to monitor a different interface. is there a way I > can copy the rrd file I currently use and then empty the data from it so I > can use it with the new interface?
You can dump a database to .xml format, edit that file, then restore it using another name; no problem. However, it is better to use the "rrdtool info" command to find out what parameters you used. All information is there: step = 3600 this is the step size of the rrd ds[name].type = "GAUGE" name and type of the first DataSource ds[name].minimal_heartbeat = 7400 heartbeat setting ds[name].min = 0.0000000000e+00 minimum allowed rate ds[name].max = NaN maximum allowed rate (in this case: "U") ds[other].type = "GAUGE" name and type of next DataSource [...] etc. rra[0].cf = "AVERAGE" first RRA stores averages rra[0].rows = 1488 1488 of them rra[0].pdp_per_row = 1 each CDP is one PDP rra[0].xff = 0.0000000000e+00 xff = 0 rra[1].cf = "AVERAGE" 2nd RRA also stores averages rra[1].rows = 3660 3660 of them rra[1].pdp_per_row = 24 each CDP is 24 PDPs rra[1].xff = 0.0000000000e+00 xff = 0 [...] etc. This database must have been created using: rrdtool create some.rrd --step 3600 \ DS:name:GAUGE:7400:0:U \ DS:other:GAUGE:7400:0:U \ RRA:AVERAGE:0:1:1488 \ RRA:AVERAGE:0:24:3660 HTH Alex -- Much of what looks like rudeness in hacker circles is not intended to give offence. Rather, it's the product of the direct, cut-through-the-bullshit communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy. http://www.tuxedo.org/~esr/faqs/smart-questions.html -- 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
