[mrtg] Re: problem's moving to another server

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sat Jul 7 00:36:04 MEST 2001


Steve Lee wrote:

> I have copied the directory that contains all the necessary
> file over.  Setup cron for mrtg to run every 5 minutes.

Right.  Should work but it doesn't so something went wrong.

> However, when the cron runs the first time in the
> new machine, the graphs all flatlines? ( i loose all the
> data from the last 2 years.  I have no idea how to do this to
> make the new machine append data to the old data.

It seems that you didn't copy the files to the location where
the new MRTG is looking for them.

On the old box:
1) Keep MRTG running for a while, until you're sure everything
   works as expected

On the new box:
1) clean up, remove the log files.
2) search for any unexpected log file and go to 1 while you find them.
3) setup the new box to monitor.
4) search for the log files, make sure you are finding the current
   log files and not any leftovers which should have been discovered
   at #2.  If my assumption is right they will be in a different place
   than you think they are.
5) copy the log files over from the old box to the new box, not to the
   location from #4.
6) wait until just after a run.  Do NOT wait a long time, just one run.
7) copy, or move, the files from #5 to the location from #4.

Steps 5..7 are to prevent log file corruption and/or overwriting
the history with empty log files.

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