[mrtg] Re: Detail-level in RRD/MRTG-data files

Nicolai Strøm Gylling nsg at webpartner.dk
Thu Apr 18 15:04:35 MEST 2002


OK, then it should be possible to make a new RRD and import the data from the old one, and keep the records.

A feature where it's possible to dynamically change these settings, an extended "Resize" command, would be very nice though :)

-----Original Message-----
From: Graham King [mailto:gpking at kingston.ac.uk] 
Sent: Thursday, 18 April 2002 2:10 PM
To: Nicolai Strøm Gylling
Subject: RE: [mrtg] Detail-level in RRD/MRTG-data files


It's RRDTool that summarizes.

I don't think there's any way of changing an existing file to cover a longer period at a given resolution, but if you don't mind starting with new files it should be easy enough. Just find the "RRDTool Create" command in the MRTG Perl file, and change its parameters; it looks something like this:

            my @args = ($rrd, '-b', $time-10, '-s', int($interval * 60),
                         "DS:ds0:$up_abs:$minhb:0:$absi",
                         "DS:ds1:$up_abs:$minhb:0:$abso",
                         "RRA:AVERAGE:0.5:1:600",
                         "RRA:AVERAGE:0.5:6:700",
                         "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:24:775",
                         "RRA:MAX:0.5:288:797");
            RRDs::create(@args);

It's the last parameter of each RRA that specifies how many readings are kept at that resolution - see http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/manual/rrdcreate.html

Graham King
Kingston University
UK


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list