Xymon Mailing List Archive search

upgrade to new server

13 messages in this thread

list Ben Poppy · Tue, 26 Jun 2012 02:03:31 +0000 ·
I see that upgrade steps are pretty well documented for moving from BB to xymon, and even upgrading from hobbit 4.2 to 4.3x on the same server. I am looking at upgrading both my server and my install of xymon to a new server (this is for my remaining monitoring server in another network location). So I wanted to be sure I am reading this correctly.

I am moving from Centos 5 to Centos 6. Moving from Hobbit 4.2 to Xymon 4.3.7 (plus dnstimeout.patch). I will copy manually the bb-hosts contents to hosts.cfg. The rest of the configs are pretty standard default installation stuff, and I will modify as needed those config files. What I'm most concerned with is the historical data.

I see that the build/upgrade430.sh script basically renames files, but nothing to do with stuff in data/hist, data/histlogs, and rrd files. Am I going to be ok with simply rsyncing those files over to the new server?

Is there anything else I should be thinking about before making this move?

Thanks,
-Ben

The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.
list Ryan Novosielski · Tue, 26 Jun 2012 00:55:36 -0400 ·
I've tried this. I found that having the old server's name in the /etc/hosts file of the new server made the scripts run where they didn't work without it. The good part about this is that you can try it first if you're not using the same server.

-- Sent from my Palm Pre
quoted from Ben Poppy
On Jun 25, 2012 22:32, Poppy, Ben <user-1ce99a2a9ef8@xymon.invalid> wrote: 


I see that upgrade steps are pretty well documented for moving from BB to xymon, and even upgrading from hobbit 4.2 to 4.3x on the same server. I am looking at upgrading both my server and my install of xymon to a new server (this is for
 my remaining monitoring server in another network location). So I wanted to be sure I am reading this correctly.

 
quoted from Ben Poppy
I am moving from Centos 5 to Centos 6. Moving from Hobbit 4.2 to Xymon 4.3.7 (plus dnstimeout.patch). I will copy manually the bb-hosts contents to hosts.cfg. The rest of the configs are pretty standard default installation stuff, and I
 will modify as needed those config files. What I’m most concerned with is the historical data.

 
I see that the build/upgrade430.sh script basically renames files, but nothing to do with stuff in data/hist, data/histlogs, and rrd files. Am I going to be ok with simply rsyncing those files over to the new server?
 
Is there anything else I should be thinking about before making this move?
 
quoted from Ben Poppy
Thanks,
-Ben


The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.
list Henrik Størner · Tue, 26 Jun 2012 07:51:21 +0200 ·
quoted from Ryan Novosielski
On 26-06-2012 04:03, Poppy, Ben wrote:
I am moving from Centos 5 to Centos 6. Moving from Hobbit 4.2 to Xymon
4.3.7 (plus dnstimeout.patch). I will copy manually the bb-hosts
contents to hosts.cfg. The rest of the configs are pretty standard
default installation stuff, and I will modify as needed those config
files. What I’m most concerned with is the historical data.

I see that the build/upgrade430.sh script basically renames files, but
nothing to do with stuff in data/hist, data/histlogs, and rrd files. Am
I going to be ok with simply rsyncing those files over to the new server?
The data files haven't changed, so yes - rsync'ing those to the new 
server should keep all of your history.


Regards,
Henrik
list Ben Poppy · Tue, 26 Jun 2012 14:52:04 +0000 ·
I did a test run on this, and everything worked as far as history, but the RRD files did not work. When you would click on the magnifying glass, it would just go to a blank screen. Is there anything special we have to do to carry over the RRD?
quoted from Henrik Størner

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] on behalf of Henrik Størner [user-ce4a2c883f75@xymon.invalid]
Sent: Tuesday, June 26, 2012 12:51 AM
To: xymon at xymon.com
Subject: Re: [Xymon] upgrade to new server

On 26-06-2012 04:03, Poppy, Ben wrote:
I am moving from Centos 5 to Centos 6. Moving from Hobbit 4.2 to Xymon
4.3.7 (plus dnstimeout.patch). I will copy manually the bb-hosts
contents to hosts.cfg. The rest of the configs are pretty standard
default installation stuff, and I will modify as needed those config
files. What I’m most concerned with is the historical data.

I see that the build/upgrade430.sh script basically renames files, but
nothing to do with stuff in data/hist, data/histlogs, and rrd files. Am
I going to be ok with simply rsyncing those files over to the new server?
The data files haven't changed, so yes - rsync'ing those to the new
server should keep all of your history.


Regards,
Henrik


The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.
list Tom Kauffman · Tue, 26 Jun 2012 14:23:41 -0400 ·
quoted from Ben Poppy
On Tuesday, June 26, 2012 10:52:04 AM Poppy, Ben wrote:
I did a test run on this, and everything worked as far as history, but the
RRD files did not work. When you would click on the magnifying glass, it
would just go to a blank screen. Is there anything special we have to do
to carry over the RRD?
Did you go from 32 bit to 64 bit as part of the server upgrade? If so, you 
need to unload the RRD files on the 32-bit system and reload them on the 64-
bit system.
list Ben Poppy · Tue, 26 Jun 2012 19:08:04 +0000 ·
I did go to 64-bit. How do I go about unloading/reloading?
quoted from Tom Kauffman

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Tom Kauffman
Sent: Tuesday, June 26, 2012 1:24 PM
To: xymon at xymon.com
Subject: Re: [Xymon] upgrade to new server

On Tuesday, June 26, 2012 10:52:04 AM Poppy, Ben wrote:
I did a test run on this, and everything worked as far as history, but the RRD files did not work. When you would click on the magnifying glass, it would just go to a blank screen. Is there anything special we have to do to carry over the RRD?
Did you go from 32 bit to 64 bit as part of the server upgrade? If so, you need to unload the RRD files on the 32-bit system and reload them on the 64- bit system.


The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.
list Tom Kauffman · Tue, 26 Jun 2012 16:38:23 -0400 ·
On Tuesday, June 26, 2012 03:08:04 PM Poppy, Ben wrote:
I did go to 64-bit. How do I go about unloading/reloading?

Oh boy! It's been over six years since I did it, and I retired three years ago, so I'm going from a very rusty memory. (Anyone else want to step in here??)

As I remember it, I set up an ssh key on the new server for the xymon id on the old server and ran the process from the old server.

Essentially you run rrddump on each and every rrd and redirect the output to a file. Ship the file to the new server and run rrdrestore with the new file input from stdin. You will need to manually recreate the directory structure on the new server to match the old.

I did the entire process with a script run on the old server for each subdirectory under each host, IIRC - it's been  bit too long and the memory is fuzzy (I don't even have rrdtool installed on this system - I'm watching this list out of a sense of nostalgia :-) ).


Anyway - man rrddump, man rrdrestore, and man rrdtool should get you started, then it's just a bit of trial & error to build and test the scripts.

Tom
list Darin D [eit] Dugan · Tue, 26 Jun 2012 20:45:17 +0000 ·
I used the example in http://lists.xymon.com/archive/2011-September/032466.html when I did a similar migration several months ago.

Cheers.
quoted from Ben Poppy


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Poppy, Ben
Sent: Tuesday, June 26, 2012 2:08 PM
To: xymon at xymon.com
Subject: Re: [Xymon] upgrade to new server

I did go to 64-bit. How do I go about unloading/reloading?

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Tom Kauffman
Sent: Tuesday, June 26, 2012 1:24 PM
To: xymon at xymon.com
Subject: Re: [Xymon] upgrade to new server

On Tuesday, June 26, 2012 10:52:04 AM Poppy, Ben wrote:
I did a test run on this, and everything worked as far as history, but 
the RRD files did not work. When you would click on the magnifying 
glass, it would just go to a blank screen. Is there anything special 
we have to do to carry over the RRD?
Did you go from 32 bit to 64 bit as part of the server upgrade? If so, you need to unload the RRD files on the 32-bit system and reload them on the 64- bit system.


The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.
list Tom Kauffman · Tue, 26 Jun 2012 17:09:32 -0400 ·
quoted from Darin D [eit] Dugan
On Tuesday, June 26, 2012 04:45:17 PM Dugan, Darin D [EIT] wrote:
I used the example in
http://lists.xymon.com/archive/2011-September/032466.html when I did a
similar migration several months ago.

Cheers.
That's the fundamentals. I automated the process to the point that I would invoke the script once for each major subdirectory under the host - and it did the dump, scp, and remote execution for each rrd. I had, IIRC, about 100 hosts at the time. I forget how long it took - relates to the size and number of rrd files anyway - but I had both servers running at the time and any given rrd file dropped at most one entry. in the dump/copy/reload.

Tom
list Ben Poppy · Wed, 27 Jun 2012 20:58:02 +0000 ·
Thanks for the help. I will be migrating tonight and will give this a try. I don't care as much about the graphs as the historical data itself, so if it doesn't work, not a huge deal.
quoted from Tom Kauffman


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Tom Kauffman
Sent: Tuesday, June 26, 2012 4:10 PM
To: xymon at xymon.com
Subject: Re: [Xymon] upgrade to new server

On Tuesday, June 26, 2012 04:45:17 PM Dugan, Darin D [EIT] wrote:
I used the example in
http://lists.xymon.com/archive/2011-September/032466.html when I did a 
similar migration several months ago.

Cheers.
That's the fundamentals. I automated the process to the point that I would invoke the script once for each major subdirectory under the host - and it did the dump, scp, and remote execution for each rrd. I had, IIRC, about 100 hosts at the time. I forget how long it took - relates to the size and number of rrd files anyway - but I had both servers running at the time and any given rrd file dropped at most one entry. in the dump/copy/reload.

Tom


The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.
list Ben Poppy · Thu, 28 Jun 2012 01:56:32 +0000 ·
Hmm, I ran that script and it gave me the same error that the RRD files were made with a different architecture. Not a big deal, I am not as concerned with the graph that we hardly look at, as the html page of history, which copied over perfectly..
quoted from Tom Kauffman

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Tom Kauffman
Sent: Tuesday, June 26, 2012 4:10 PM
To: xymon at xymon.com
Subject: Re: [Xymon] upgrade to new server

On Tuesday, June 26, 2012 04:45:17 PM Dugan, Darin D [EIT] wrote:
I used the example in
http://lists.xymon.com/archive/2011-September/032466.html when I did a 
similar migration several months ago.

Cheers.
That's the fundamentals. I automated the process to the point that I would invoke the script once for each major subdirectory under the host - and it did the dump, scp, and remote execution for each rrd. I had, IIRC, about 100 hosts at the time. I forget how long it took - relates to the size and number of rrd files anyway - but I had both servers running at the time and any given rrd file dropped at most one entry. in the dump/copy/reload.

Tom


The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.
list Henrik Størner · Sat, 14 Jul 2012 12:37:37 +0200 ·
quoted from Ben Poppy
On 28-06-2012 03:56, Poppy, Ben wrote:
Hmm, I ran that script and it gave me the same error that the RRD files were made with a different architecture. Not a big deal, I am not as concerned with the graph that we hardly look at, as the html page of history, which copied over perfectly..
You need to run "rrddump" on the old machine to export the RRD files to 
XML, then copy over the XML files and run "rrdrestore" on the new box.

Regards,
Henrik
list Ben Poppy · Sat, 14 Jul 2012 18:50:00 +0000 ·
Did that, no luck. No big deal though, just didn't get the graphs but have the html history..
quoted from Henrik Størner


----- Original Message -----
From: Henrik Størner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Saturday, July 14, 2012 05:37 AM
To: xymon at xymon.com <xymon at xymon.com>
Subject: Re: [Xymon] upgrade to new server

On 28-06-2012 03:56, Poppy, Ben wrote:
Hmm, I ran that script and it gave me the same error that the RRD files were made with a different architecture. Not a big deal, I am not as concerned with the graph that we hardly look at, as the html page of history, which copied over perfectly..
You need to run "rrddump" on the old machine to export the RRD files to 
XML, then copy over the XML files and run "rrdrestore" on the new box.

Regards,
Henrik


The contents of this message may contain private, protected and/or privileged information.  If you received this message in error, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained within.  Please contact the sender and advise of the erroneous delivery by return e-mail or telephone.  Thank you for your cooperation.