Page 1 of 1

Upgrade Centos and NagiosXI

Posted: Fri Feb 05, 2021 5:26 pm
by Kujab
Hello,
I have got Nagios XI 5.7.5 on CentOS release 6.9 (Final). What's the easiest way to upgrade ? Should I download new VMware image and restore to this new installation backup from the old system ?
Or is there any other better procedure ?
I need to preserve all my settings, history, checks, etc.
Thank you for your help

Jakub Hauzner

Re: Upgrade Centos and NagiosXI

Posted: Mon Feb 08, 2021 5:50 am
by oliviergautreau
Hi there,
we have exactly the same question:
What would be the best way to upgrade ?
We are also using a Nagios VM.
Best regards, Olivier

A new Nagios XI update is available.
5.8.1 was released on January 15th, 2021.
Visit http://www.nagios.com to obtain the latest update.
Latest Available Version: 5.8.1
Installed Version: 5.7.3
Last Update Check: 2021-01-18 21:21:39

Code: Select all

[root@snag001 nagiosxi]# ./upgrade
------------------------------
 CentOS/RHEL 6 - End of Life
------------------------------

Nagios XI no longer supports CentOS/RHEL 6 due to it being EOL as of 11/30/2020.
If you'd like to upgrade your Nagios XI past 5.7.5, you will need to install it on
a supported distro such as CentOS/RHEL 7 or 8.

For more information on how to transition, please visit the support forum:
https://support.nagios.com/forum/

Code: Select all

   
^[[H^[[2J^[]P64d89f9^[]P7ffffff^[[30;47m                                                                             
 ▄▄▄   ▄▄                      ██                    (R)^[[36m  ▄▄▄  ▄▄▄   ▄▄▄▄▄▄  ^[[30mTM
 ███   ██                      ▀▀                       ^[[36m   ██▄▄██    ▀▀██▀▀  ^[[30m
 ██▀█  ██   ▄█████▄   ▄███▄██  ██   ▄████▄   ▄▄█████▄   ^[[36m    ████       ██    ^[[30m
 ██ ██ ██   ▀ ▄▄▄██  ██▀  ▀██  ██  ██▀  ▀██  ██▄▄▄▄ ▀   ^[[36m     ██        ██    ^[[30m
 ██  █▄██  ▄██▀▀▀██  ██    ██  ██  ██    ██   ▀▀▀▀██▄   ^[[36m    ████       ██    ^[[30m
 ██   ███  ██▄▄▄███  ▀██▄▄███  ██  ▀██▄▄██▀  █▄▄▄▄▄██   ^[[36m   ██  ██    ▄▄██▄▄  ^[[30m
 ▀▀   ▀▀▀   ▀▀▀▀ ▀▀   ▄▀▀▀ ██  ▀▀    ▀▀▀▀     ▀▀▀▀▀▀    ^[[36m  ▀▀▀  ▀▀▀   ▀▀▀▀▀▀  ^[[30m
 ▀▀▀▀▀▀▀▀             ▀████▀▀
~


Re: Upgrade Centos and NagiosXI

Posted: Mon Feb 08, 2021 11:44 am
by benjaminsmith
Hi @Jakub,

The restore script does all the work and will transfer everything over from the backup up the archive. Just remember to always restore between the same versions of Nagios XI. Also, if you are switching OS families, there's another script that is required, see page 10 of the guide below.

Backing Up And Restoring Your Nagios XI System

Since Cent 6 is EOL, I would recommend installing Cent 7 or 8 and Nagios XI 5.7.5 on the new server, then restore and upgrade to the lastest version of XI.

You can download previous versions of Nagios XI on the following page.

https://assets.nagios.com/downloads/nag ... rsions.php

Also, your Nagios XI license allows for 3 activations, production, backup and test, so you can setup another test instance for a smooth transition between upgrades.

Let us know if you have any questions or need assistance.

--Benjamin

Re: Upgrade Centos and NagiosXI

Posted: Mon Feb 08, 2021 11:58 am
by Kujab
Hello Benjamin,

could you send me a link for VMware image with Centos 7 (which has EOL 2023) with Nagios XI 5.7.5 ? Seems to be a fastest way to upgrade. Thank you.

Best regards

Jakub

benjaminsmith wrote:Hi @Jakub,

The restore script does all the work and will transfer everything over from the backup up the archive. Just remember to always restore between the same versions of Nagios XI. Also, if you are switching OS families, there's another script that is required, see page 10 of the guide below.

Backing Up And Restoring Your Nagios XI System

Since Cent 6 is EOL, I would recommend installing Cent 7 or 8 and Nagios XI 5.7.5 on the new server, then restore and upgrade to the lastest version of XI.

You can download previous versions of Nagios XI on the following page.

https://assets.nagios.com/downloads/nag ... rsions.php

Also, your Nagios XI license allows for 3 activations, production, backup and test, so you can setup another test instance for a smooth transition between upgrades.

Let us know if you have any questions or need assistance.

--Benjamin

Re: Upgrade Centos and NagiosXI

Posted: Mon Feb 08, 2021 12:21 pm
by benjaminsmith
HI,

Sure can, here's the link:

Code: Select all

https://assets.nagios.com/downloads/nagiosxi/5/ovf/nagiosxi-5.7.5-64.ova
Let us know if you need anything else.

Benjamin

Re: Upgrade Centos and NagiosXI

Posted: Thu Feb 11, 2021 7:13 pm
by hillhealthcenter
Hello Nagios Support,

Is there a document with step-by-step instructions detailing the OS migration process?

I'd like to limit the number of times I bang my head on my desk during the process, as I tend to become unconcious somewhere between 5-10 reps. :)

Re: Upgrade Centos and NagiosXI

Posted: Fri Feb 12, 2021 1:49 pm
by benjaminsmith
Hi Tom,

Everything should be coverd in the following guide:

Backing Up And Restoring Your Nagios XI System

In your situation, I would do the following steps:

1. Install new VM with Nagios XI 5.7.5 using the OVA link below with CentOS 7.

Code: Select all

https://assets.nagios.com/downloads/nagiosxi/5/ovf/nagiosxi-5.7.5-64.ova
2. Run a backup on the current Cent 6 system.

Code: Select all

/usr/local/nagiosxi/scripts/backup_xi.sh
3. Transfer the backup archive from the Cent 6 server to Cent 7 system. The backups are in the following folder:

Code: Select all

/store/backups/nagiosxi/
4. Run the restore script to transfer your configuration files, user accounts, and historical data.

Code: Select all

/usr/local/nagiosxi/scripts/restore_xi.sh </full/path/to/backupfile.tar.gz>
5.Change the IP address on the Cent 7 system. See page 13 of the guide.

6. Upgrade to the latest version of Nagios XI

Code: Select all

wget -O upgrade.sh https://assets.nagios.com/downloads/nagiosxi/upgrade.sh
sh ./upgrade.sh
At this point, review the incoming check results for any errors. Some plugins will require extra packages that would not be installed on the OVA, so those made need updates in order to successfully run.

Hope that helps. Let me know if you need assistance with anything.

Benjamin