[mrtg] Re: reloading data into an MRTG log

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sun Oct 22 13:31:46 MEST 2000


Steve Keever wrote:
> 
> Well, it happened.  I messed up the rights in my web directory and MRTG ran
> obliterating all the log files and creating a new, empty one.  Has anyone
> had to re-run about a years worth of data points back through MRTG???  I
> still have all the individual data files, but just need to fast forward it
> all back into the graphs.

If you end up with two log files, one containing historical data
(from a backup or so) and one containing recent data, you can merge
them into a new file by hand.

Go into the doc directory and read all about the log file format.
When you have done this, you understand which part of the log file
has the historical data you want and which part of the new log file
has the current data (for instance, the last day).

1st thing to do is to make both log files "current" by updating them.
To do this you need to run MRTG on both of them (use different names).
The time stamps on each line (lines 1 tru 5 may differ) should be
the same.  Now it is just a matter of copying lines 1 tru n from the
new file followed by lines n+1 tru last from the backup file.

The resulting file will contain correct information for the bigger
part, a few errors may remain.

HTH
-- 
   __________________________________________________________________
 / 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