Xymon Mailing List Archive search

how to migrate historical data

5 messages in this thread

list Kris Springer · Tue, 26 Aug 2014 09:33:18 -0700 ·
I've built a second Xymon server that I plan to use as my primary, but I need to pull all the historical data from the old one.  What's a quick way to do that?  Can I just add the new server's IP into a config file and have the old one just pump all the data over?
Signature - Kris

Thank you.


Kris Springer
list Stef Coene · Tue, 26 Aug 2014 21:12:27 +0200 ·
quoted from Kris Springer
On Tuesday 26 August 2014 09:33:18 Kris Springer wrote:
I've built a second Xymon server that I plan to use as my primary, but I
need to pull all the historical data from the old one.  What's a quick
way to do that?  Can I just add the new server's IP into a config file
and have the old one just pump all the data over?
Just copy the data directory.
If the rrd's are not compatibel (32 bit -> 64 bit) you can export the rrd to 
xml on the old server, transfer the xml file and import the xml to an rrd.  I 
juist did that for one of our customers :)


Stef
list Kris Springer · Tue, 26 Aug 2014 21:11:32 -0700 ·
I tried using scp to copy the following directories over to the new server.
/var/lib/xymon/hist/
/var/lib/xymon/histlogs/
/var/lib/xymon/rrd/

But I keep getting 'not a regular file' errors on the rrd and histlogs 
files.  I need the rrd data.  The graphs are really all I care about.
quoted from Stef Coene
Signature - Kris

Thank you.


Kris Springer


On 8/26/2014 12:12 PM, Stef Coene wrote:
On Tuesday 26 August 2014 09:33:18 Kris Springer wrote:
I've built a second Xymon server that I plan to use as my primary, but I
need to pull all the historical data from the old one.  What's a quick
way to do that?  Can I just add the new server's IP into a config file
and have the old one just pump all the data over?
Just copy the data directory.
If the rrd's are not compatibel (32 bit -> 64 bit) you can export the rrd to
xml on the old server, transfer the xml file and import the xml to an rrd.  I
juist did that for one of our customers :)


Stef
list Phil Crooker · Wed, 27 Aug 2014 04:23:32 +0000 ·
You need to use -r to recursively copy.

cheers, P
quoted from Kris Springer
From: Xymon on behalf of Kris Springer
Sent: Wednesday, 27 August 2014 1:41 PM
To: Stef Coene; xymon at xymon.com
Subject: Re: [Xymon] how to migrate historical data

I tried using scp to copy the following directories over to the new server.
/var/lib/xymon/hist/
/var/lib/xymon/histlogs/
/var/lib/xymon/rrd/

But I keep getting 'not a regular file' errors on the rrd and histlogs files.  I need the rrd data.  The graphs are really all I care about.


Thank you.


Kris Springer


On 8/26/2014 12:12 PM, Stef Coene wrote:

On Tuesday 26 August 2014 09:33:18 Kris Springer wrote:


I've built a second Xymon server that I plan to use as my primary, but I
need to pull all the historical data from the old one.  What's a quick
way to do that?  Can I just add the new server's IP into a config file
and have the old one just pump all the data over?


Just copy the data directory.
If the rrd's are not compatibel (32 bit -> 64 bit) you can export the rrd to
xml on the old server, transfer the xml file and import the xml to an rrd.  I
juist did that for one of our customers :)


Stef
list Kris Springer · Tue, 26 Aug 2014 21:31:15 -0700 ·
That worked.  I completely forgot about the folders needing that.
quoted from Phil Crooker
Signature - Kris

Thank you.


Kris Springer


On 8/26/2014 9:23 PM, Phil Crooker wrote:
You need to use -r to recursively copy.

• cheers, P
• ------------------------------------------------------------------------
*From:* Xymon on behalf of Kris Springer
*Sent:* Wednesday, 27 August 2014 1:41 PM
*To:* Stef Coene; xymon at xymon.com
*Subject:* Re: [Xymon] how to migrate historical data
I tried using scp to copy the following directories over to the new 
server.
/var/lib/xymon/hist/
/var/lib/xymon/histlogs/
/var/lib/xymon/rrd/

But I keep getting 'not a regular file' errors on the rrd and histlogs 
files.  I need the rrd data. The graphs are really all I care about.

Thank you.


Kris Springer


On 8/26/2014 12:12 PM, Stef Coene wrote:
On Tuesday 26 August 2014 09:33:18 Kris Springer wrote:
I've built a second Xymon server that I plan to use as my primary, but I
need to pull all the historical data from the old one.  What's a quick
way to do that?  Can I just add the new server's IP into a config file
and have the old one just pump all the data over?
Just copy the data directory.
If the rrd's are not compatibel (32 bit -> 64 bit) you can export the rrd to
xml on the old server, transfer the xml file and import the xml to an rrd.  I
juist did that for one of our customers :)


Stef