Upgrade/Migrate to new Server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
krw
Posts: 71
Joined: Tue May 29, 2012 2:01 pm

Upgrade/Migrate to new Server

Post by krw »

Old NagiosXI server, 5.7.5. It was installed long time ago from the prebuilt image from Nagios.com and was like 5.6 or 5.5
at the time. It has undergone a few upgrades since being installed.

Base OS on the old server is CentOS release 6.8 (Final) with XI being 5.7.5.

I cannot upgrade this any longer. Both CLI and GUI upgrades fail.

So grabbed latest VM image, spin up new instance running 5.8.7 on Centos 7.9.

The migration instructions I have read is to spin up a new NagiosXI instance of the same
version (5.7.5 in this case) and import the config from the old server, then upgrade the new
server to the latest.

With the base OS of the old server being Centos 6.8 how is this possible? If a new VM is spun
up with 5.7.5, wont the base OS of the VM be 6.8 which makes being able to upgrade to 5.8.7
not possible?

Or can an XI 5.7.5 running on CentOS 6.8 be upgraded to 5.8.7?

Is there another method?

There are a lot of hosts and checks in the old version that would take a while to recreate
in the new server so being able to import the config is kinda the thing to do.

Thanks.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Upgrade/Migrate to new Server

Post by ssax »

Because EL6 is end of life by the vendor you will need to migrate to a later distribution in order to upgrade further.

Is your current system running 32-bit or 64-bit?

Code: Select all

uname -a
The XI backup/restore process makes this pretty easy:

The process is this:
- Spin up new server running EL7/EL8 latest

- Install the exact same version of XI that the old server has on the new server, no need to configure it, just install it and go through the initial setup (do not try to restore over different versions of XI you will cause issues)

https://assets.nagios.com/downloads/nag ... -Linux.pdf

- If you have a RAMDisk installed, are using RRDCacheD, or are running Mod_Gearman on the old system, set them up before restoring:

https://assets.nagios.com/downloads/nag ... giosXI.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... ios_XI.pdf

If you are monitoring vmware/oracle you'll need to reinstall the proper supporting packages on the new server again following these guides:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

- Backup the old/transfer to new/restore to the new

- Follow the After The Restore section from the backup/restore guide completely

- Since you're changing OS versions, run the restore_repair script from the backup/restore guide

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

- Shutdown (or re-IP) the old, set the old IP on the new system so you don't have to update agent configs/FW rules

https://support.nagios.com/kb/article/c ... s-549.html

That's pretty much it. Please be aware of what a single XI license entitles you to:

https://support.nagios.com/kb/article.php?id=145

Then apply configuration and upgrade the new server to the latest XI version.

If your current system is 32-bit you need to follow this as well to migrate the performances, if it's 64-bit already, no need to follow this:

https://support.nagios.com/kb/article.php?id=166
krw
Posts: 71
Joined: Tue May 29, 2012 2:01 pm

Re: Upgrade/Migrate to new Server

Post by krw »

Its a 64-bit system.

So I'll get the VM guys to spin up a new RHEL 7.9 system and install the older
XI onto that, import the config file as per docs and then upgrade XI from that.

I was trying to avoid having to spin up a bare RHEL system and then Nagios on
top of that and thought I'd could just do an install of the VMWare image and
go with it.

I have never installed XI onto a bare OS. Always been done from a
pre-built VM that you folks have for download.

Thanks.
krw
Posts: 71
Joined: Tue May 29, 2012 2:01 pm

Re: Upgrade/Migrate to new Server

Post by krw »

have spun up a new RHEL 7.9 VM, should it be fully updated before installing XI?

Or can the base OS from this install be used? The ISO is from about Aug/2020. 3.10.0-1160.el7.x86_64

Thanks.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Upgrade/Migrate to new Server

Post by ssax »

I just install on a fresh minimal install of the OS but you should be fine yum updating first with the base/updates repos. I wouldn't start installing custom packages/making security changes/customizing the system though as that's generally what causes issues with the installation.

Currently, our pre-built VMs just use a fresh Minimal Install of CentOS 7 with a source install of XI installed on it. The only other things that they adjust that I'm aware of is the /etc/issue so it tells you some info on startup (IP/showing Nagios XI/etc) but those changes are really for convenience.

You can follow this guide here:

https://assets.nagios.com/downloads/nag ... -Linux.pdf
krw
Posts: 71
Joined: Tue May 29, 2012 2:01 pm

Re: Upgrade/Migrate to new Server

Post by krw »

I followed the guides and was able to update and migrate to the new server.

had to shutdown the server for the last few weeks and just revisited it today.

VM was powered on and it came up, within a few mins got inundated with a hundred
alerts as the new server is still on a new IP and have not migrated it to the old one.

But even though I just turned on that VM, got a ton of alerts, NONE of the devices
are in nagios.

There are 262 hosts, 1000+ services being monitored on the old server and while the new
Nagios will send off hundreds of alerts for those servers/hosts being down, there is one host, localhost and
the 12 services on it being monitored that I can see.

Yet Nagios thinks that over 100 of the hosts are offline even though it does not show any of them
being monitored.

So to recap, migrate from old to new server, installed same nagios version on new one as old one, imported the
config, it was successful, can see hosts/services etc. Upgraded Nagios to latest version, works ok.

Have to turn off new server for a bit, so do a shutdown -h now to shutdown new nagios server.

Power up the new nagios server today and while I get a 100+ alerts from the new server saying a bunch of
stuff is down, I can't see any of those hosts/services at all in the core config manager.

How can I get those back?

Thanks.
User avatar
kfanselow
Posts: 254
Joined: Tue Aug 31, 2021 3:25 pm

Re: Upgrade/Migrate to new Server

Post by kfanselow »

Hi KRW,

Unfortunately it looks like we are going to have to get into the specifics of your systems and environment. I would recommend you open a ticket so we can discuss the specifics in confidence while we help you troubleshoot. We have a new support environment and in case you haven't received our official messaging I will include the details below along with instructions for generating a system profile; please attach a profile for both systems when you submit the ticket as it helps us get a better understanding of your configuration and environment.

Our new support system "The Nagios Answer Hub" can be accessed via the following URL:

https://answerhub.nagios.com/support

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards. If you did not receive a welcome email or your username has been lost, please contact our contact sales department at [email protected] or request Nagios Answer Hub via the following URL:

https://info.nagios.com/answer-hub-access-new-users

To generate a system profile:

Login to the Nagios XI GUI using a web browser.
Click the "Admin" (Top) -> "System Profile" Menu (Left)
Click the "Download Profile" button


Thanks and Best Regards,
Keith
Locked