[mrtg] Re: Moving & Renaming MRTG Data Files

Alex van den Bogaerdt alex at ergens.op.HET.NET
Sat Jun 29 04:04:32 MEST 2002

"Randy Reigel (MSLI)" wrote:

> I have finally configured MRTG to collect on everything I set out to
> monitor.  In the process of learning, I started with a single
> configuration file, and a single directory.  I have broken out the
> various elements by category, creating separate configuration files and
> directories for each category.  In the process of rewriting my separate
> configuration files, I have (intentionally) renamed the files by
> changing the names within the [brackets] in the configuration file.  I

Note: usual stuff about not being responsible for errors applies.

If every name inbetween brackets is unique, there's no chance of messing
up.  You make a backup anyway, just to be sure.  Backing up all log files
should be enough.

When you're sure you won't overwrite current data, just run MRTG with
the new config.  This will create all files related to those new targets.

>From then on it is very easy to see what file you need to overwrite with
current data.  When you're satisfied you can eventually clean up and
remove your original files.


Original targets:
   Directory: test
   Target[x]: ...
   Target[y]: ....

This generated
et cetera.

New targets:
   Directory: routers
   Target[router1]: ...

   Directory: switches
   Target[switch1]: ...

After running MRTG on the new config files, you should have:


If so, copy x.log over router1.log and y.log over switch1.log
Do not destroy x.log and y.log (yet).

Wait a while and then check the images from router1 and switch1.
They should match x-day.png et al.

 / 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