./upgrade
IMPORTANT: Before upgrading, verify you have both a valid system backup as well as a configuration backup of Nagios XI before continuing! More information about backing up
and restoring Nagios XI can be found here: https://assets.nagios.com/downloads/nag ... ios-XI.pdf
NOTICE: Your Nagios XI license includes a test environment instance that allows you to verify successful upgrade and configuration changes before applying them to your
production environment. As a best practice for ensuring the reliability of your monitoring systems, we advise you to upgrade your test environment before upgrading any
production instances. More information on licensing can be found here: https://assets.nagios.com/handouts/nagi ... Policy.pdf
Are you sure you want to continue? [y/N] y
Proceeding with upgrade...
Nagios XI Upgrade Log
==========================
DATE: Wed Jan 6 13:00:22 PST 2021
DISTRO INFO:
CentOS
6.8
x86_64
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Checking required prereqs...
Please wait...
OLD VERSION: 5703
Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
Error: Cannot find a valid baseurl for repo: base
YumRepo Error: All mirror URLs are not using ftp, http or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
========================
This XI was installed from the OVA into ESXi a few years ago and has been running fine. This instance
has been updated a number of times and is currently on 5.7.3.
Am I going to have to update the CentOS base install via yum update/upgrade?
Has CentOS 6.8 been deprecated and is no longer a valid platform with NagiosXI?
Thanks.
Upgrade from 5.7.3 to latest
Re: Upgrade from 5.7.3 to latest
Since your server is running Centos 6 and it is EOL, you will have to change the repositories to the Vault and the following link are instructions for doing that.
https://www.getpagespeed.com/server-set ... 6-went-eol
After doing the changes in the link, run this as root to clear out the yum cache.
After this, you should be able to upgrade XI to 5.7.5.
You can try and do an in place upgrade to a newer OS and is you do, make a full backup in case there are issues.
A safer way to migrate to a newer OS, what you would do is to install a clean OS image and then install XI on the new OS using the source install instructions.
After the new OS is setup, here are instructions to install XI on the new server.
Run the following as root.
After the new server is installed with a fresh copy of XI, do the Backup and Restore procedure in this document.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Pay special intention to page 13 as there are additional steps needed to be done when migrating to different Operating System.
https://www.getpagespeed.com/server-set ... 6-went-eol
After doing the changes in the link, run this as root to clear out the yum cache.
Code: Select all
yum clean allYou can try and do an in place upgrade to a newer OS and is you do, make a full backup in case there are issues.
A safer way to migrate to a newer OS, what you would do is to install a clean OS image and then install XI on the new OS using the source install instructions.
After the new OS is setup, here are instructions to install XI on the new server.
Run the following as root.
Code: Select all
cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.7.5.tar.gz
tar xzf xi-5.7.5.tar.gz
cd /tmp/nagiosxi
./fullinstallhttps://assets.nagios.com/downloads/nag ... ios-XI.pdf
Pay special intention to page 13 as there are additional steps needed to be done when migrating to different Operating System.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Upgrade from 5.7.3 to latest
So after some digging around I solved this upgrade issue.
First as the problem seemed to be with the baseurl in the CentOS-Base.repo looking it over:
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
The line BASEURL was commented out.
So uncommenting baseurl on Base/Updates/Extras/Plus/Crontrib led to upgrade working. But I did
get some 404 errors and the upgrade script spit out a RH KB link:
http://mirror.centos.org/centos/6/os/x8 ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
But even though the upgrade spit out errors it did complete:
Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------
Stopping nagios: .done.
Starting nagios: done.
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Nagios XI Upgrade Complete!
---------------------------
and the web interface shows 5.7.5.
After investigating the RedHat KB article I did what it suggested and commented out
the baseurl lines in the repo config file as that was what was there before.
Hope this might help someone, but this is what worked for this particular install.
Will get the VM cloned so I have a proper test environment to apply these updates first.
Thanks.
First as the problem seemed to be with the baseurl in the CentOS-Base.repo looking it over:
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
The line BASEURL was commented out.
So uncommenting baseurl on Base/Updates/Extras/Plus/Crontrib led to upgrade working. But I did
get some 404 errors and the upgrade script spit out a RH KB link:
http://mirror.centos.org/centos/6/os/x8 ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
But even though the upgrade spit out errors it did complete:
Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------
Stopping nagios: .done.
Starting nagios: done.
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Nagios XI Upgrade Complete!
---------------------------
and the web interface shows 5.7.5.
After investigating the RedHat KB article I did what it suggested and commented out
the baseurl lines in the repo config file as that was what was there before.
Hope this might help someone, but this is what worked for this particular install.
Will get the VM cloned so I have a proper test environment to apply these updates first.
Thanks.
Re: Upgrade from 5.7.3 to latest
What about just downloading and spinning up a new OVA from Nagios? What is the base OS for the OVA file today?tgriep wrote:
<Cut top>
After the new OS is setup, here are instructions to install XI on the new server.
Run the following as root.After the new server is installed with a fresh copy of XI, do the Backup and Restore procedure in this document.Code: Select all
cd /tmp rm -rf nagiosxi xi*.tar.gz wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.7.5.tar.gz tar xzf xi-5.7.5.tar.gz cd /tmp/nagiosxi ./fullinstall
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Pay special intention to page 13 as there are additional steps needed to be done when migrating to different Operating System.
Thanks.
Re: Upgrade from 5.7.3 to latest
The base OS for the XI OVA files is Centos 7 so you can use that if you want.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Upgrade from 5.7.3 to latest
Where I can find the last OVA with 5.7.5 version on CentOS 7?
I am on CentOS 6 and I cannot move from 5.7.5...
With this OVA I could migrate with less pain otherwise I'd have to downgrade the 5.8.0 to 5.7.5 and restore the backup.
Regards,
Graziano.
I am on CentOS 6 and I cannot move from 5.7.5...
With this OVA I could migrate with less pain otherwise I'd have to downgrade the 5.8.0 to 5.7.5 and restore the backup.
Regards,
Graziano.
Re: Upgrade from 5.7.3 to latest
The XI 5.7.5 ova file can be downloaded at the following URL.
https://assets.nagios.com/downloads/nag ... 7.5-64.ova
https://assets.nagios.com/downloads/nag ... 7.5-64.ova
Be sure to check out our Knowledgebase for helpful articles and solutions!