[mrtg] migrating MRTG

Alex van den Bogaerdt alex at vandenbogaerdt.nl
Tue Jul 22 16:32:01 CEST 2014


Not a problem.
Create a duplicate of your current mrtg target.
Replace the .log file and the .old file with those from your backup.
Then proceed as I described below.

----- Original Message ----- 
From: "Ian Diddams" <ian.diddams at issolutions.co.uk>
To: "'Alex van den Bogaerdt'" <alex at vandenbogaerdt.nl>; 
<mrtg at lists.oetiker.ch>
Sent: Tuesday, July 22, 2014 4:16 PM
Subject: RE: [mrtg] migrating MRTG


Unfortunately the old server is very dead.

In a nutshell I've inherited a few mrtg servers, all set up by the same 
bloke quite some ago, with no documentation from him how he did it. This one 
has died a death so all I have is backups of the files from it etc

Cheers

ian



-----Original Message-----
From: mrtg-bounces+ian.diddams=issolutions.co.uk at lists.oetiker.ch 
[mailto:mrtg-bounces+ian.diddams=issolutions.co.uk at lists.oetiker.ch] On 
Behalf Of Alex van den Bogaerdt
Sent: 22 July 2014 15:12
To: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] migrating MRTG


----- Original Message -----
From: "Ian Diddams" <ian.diddams at issolutions.co.uk>
To: "'Jay Hennigan'" <jay at west.net>; <mrtg at lists.oetiker.ch>
Sent: Tuesday, July 22, 2014 11:07 AM
Subject: Re: [mrtg] migrating MRTG


> Thanks for that Jay.
>
>>Assuming classic MRTG, most likely just wait.
> Something is clearly not correct because this has been running for over a
> week now without any history showing n the graphs.

Is the old server still running?  If so, do the following.  Do a couple of
iterations and script it so that you can do this excercise fast, inbetween
two MRTG runs.

Wait some time for comments on this email, and test the procedure well, as
it has been years ago since I performed this action. Things may have
changed, including my memory.

1: run mrtg once on the old server, simultaneously with the new server.
This is important, doing this will sync the 2 files' timestamps.
The goal is to have lines 3 and beyond look the same, except for the actual
rates.

2: find the line where the old server still had data
3: generate a new file from two parts:
3a: the new file, upto but not including the line found in (1)
3b: the old file, from the line found in (1) and beyond (= older)

Once you are confident that you did steps 1..3 right and you end up with a
valid log file:
4: replace the log file on the new server with the one you just created
5: delete the graphs
6: wait until MRTG runs again, and look at the newly created images

It goes without saying that you should make copies of your files before
screwing up, so that you can revert this action and try again.

HTH
Alex

_______________________________________________
mrtg mailing list
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

Disclaimer:

This message is intended for the addressee only. It may contain information 
of a confidential or legally privileged nature. If you have received this 
message in error please notify the sender and destroy the message 
immediately. All attachments have been scanned for viruses. However IS 
Solutions plc cannot accept liability for any loss or damage you may incur 
as a result of virus infection.



More information about the mrtg mailing list