[mrtg] Re: Greater granularity in past data

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Wed Sep 20 06:10:43 MEST 2000


Luke Dudney wrote:

[using rrdtool]
> What I would like is the ability to 'zoom in' on a particular week some time
> in the past,
> with the same precision no matter how far in the past the week is.
[...]
> Disk space and cpu time is not an issue.

I assume you've used mrtg to create the database.  I have no experience
with this myself but I don't *think* there's a problem with my suggestion:

YMMV

Try to expand the size of the "daily" part in the RRD.
(or, at your opinion, the "weekly" part)

For "your.rrd" you fill in path+name to your rrd file, for x and y you
need to specify a number.

- Run "rrdtool info your.rrd".  Most likely the RRA to alter will have
  number 0 but it doesn't hurt to check.
- Run "rrdtool resize your.rrd x GROW y" on your RRD.
- Check the resulting file and if it's okay, rename the old file to
  another name + rename the new file to "your.rrd".

Be aware that RRDtool will select the RRA with the best granularity
by default when doing its job, so this may break some things.

The number of rows will probably be 600.  This is 600 times 5 minutes
for a total of 2 days + 2 hours.  If you'd like to keep a year of the
data, just grow the RRA with the missing number of rows.

365 days * 24 hours * 60 minutes / 5 minutes_per_step = 105120 rows.
You'd need to grow with 105120-600 = 104520 rows for this.

regards,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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