[mrtg] Re: Merging Log Files

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sat Jan 5 01:22:00 MET 2002

EDK wrote:
> Is there an "Easy" way to merge log data?  I originally had used the "sub-dirs" option but somehow it dropped out on me and I ran MRTG for a few weeks without it.  Now I have 2 sets of data and would like to "fill-in" the missing data.  Has anyone done this before?  Any tips, tricks, hints before I dig into it? Which files need to be merged?  Will it "back" generate the history graphs with the combined data or am I wasting my time here?

It is not too hard to do.

1) For everything mentioned below:  MAKE BACKUPS IN CASE YOU SCREW UP.
2) Find out when the problem occured. You need to know the time
   in unix-since-epoch format.  
3) Get the two files in sync.  Do this by running the old log file as
   a separate target, thereby updating it too, simultaniously to the
   current log file.
4) Split both log files at the time found in (2).  Concatenate the
   first part of the "good" logfile to the second part of the "old"
   log file.

This should result in a log file that has correct information, the missing
part in the current log file is replaced by the known part of the old file.

 / 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