Page 1 of 1

Nagios XI Upgrade to 5.6 Issues

Posted: Thu May 30, 2019 2:10 pm
by hul1
I'm trying to upgrade to Nagios 5.6 from 5.5.11 but I'm having issues with both the web interface upgrade tool and the manual upgrades.
I don't see any errors and it says it completed but nothing happens.
I tried following some guides from running a mysqlcheck and database repair

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
to running a yum install manually

Code: Select all

yum install `yum list installed php*common* | grep php | awk -F "-" {'print $1'} | tail -1`-imap -y
but it still seems my version is running 5511.

The output from the web interface when I try doing the upgrade just shows
The update did not complete successfully. Please try updating manually.

Code: Select all

---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/share/perfdata/..: file changed as we read it
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up the SNMP trap interface configuration files...
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up cronjobs for Apache...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
 
===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/autoupgrade_backup.1559241764.tar.gz

---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
No entry for terminal type "unknown";
using dumb terminal settings.
Nagios XI Upgrade Log
==========================
DATE: Thu May 30 14:47:13 EDT 2019

DISTRO INFO:
RedHatEnterpriseServer
7.6
x86_64


No entry for terminal type "unknown";
using dumb terminal settings.
Archive:  sourceguardian/ixed4.lin.x86-64.zip
  inflating: /usr/lib64/php/modules/ixed.5.4.lin  
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
No entry for terminal type "unknown";
using dumb terminal settings.
Checking required prereqs... 
Please wait... 

OLD VERSION: 5511
Loaded plugins: enabled_repos_upload, package_upload, product-id, protectbase,
              : search-disabled-repos, subscription-manager
147 packages excluded due to repository protections
No packages marked for update
Uploading Enabled Repositories Report
Loaded plugins: product-id, protectbase, subscription-manager
Loaded plugins: enabled_repos_upload, package_upload, product-id, protectbase,
              : search-disabled-repos, subscription-manager
147 packages excluded due to repository protections
No package Loaded available.
No package plugins: available.
No package product-imap available.
Error: Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: product-id, protectbase, subscription-manager
Do you guys have any idea what the issue is and how I can get nagios XI upgraded?

Re: Nagios XI Upgrade to 5.6 Issues

Posted: Thu May 30, 2019 2:19 pm
by tgriep
Even though you ran the yum command by itself, you still need to change the upgrade script.

Follow the manual XI upgrade procedure and before running the upgrade script, edit the upgrade script and change this line from

Code: Select all

yum install `yum list installed php*common* | awk -F "-" {'print $1'} | tail -1`-imap -y
to

Code: Select all

yum install `yum list installed php*common* | grep php | awk -F "-" {'print $1'} | tail -1`-imap -y
Then see if the upgrade works.

Re: Nagios XI Upgrade to 5.6 Issues

Posted: Thu May 30, 2019 2:54 pm
by hul1
Is it the upgrade.sh file I downloaded?
I also looked within nagiosxi, upgrade, and I don't see a line referencing
yum install `yum list installed php*common*

Re: Nagios XI Upgrade to 5.6 Issues

Posted: Thu May 30, 2019 2:59 pm
by tgriep
Here are the instructions for doing a manual upgrade.

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.6.2.tar.gz
tar xzf xi-5.6.2.tar.gz
cd /tmp/nagiosxi
Right here is where you would edit the upgrade script and do the change.

Then run the script like so.

Code: Select all

./upgrade
Or, you can wait for XI 5.6.3 which fixes this issue.

Re: Nagios XI Upgrade to 5.6 Issues

Posted: Fri May 31, 2019 11:58 am
by hul1
Thanks that worked! It seems the download I followed from the PDF guide had the wrong URL posted for the upgrade link. It downloaded an older version and not the latest version of 5.6. I was able to upgrade successfully after updating with the correct yum command.

Re: Nagios XI Upgrade to 5.6 Issues

Posted: Fri May 31, 2019 1:00 pm
by scottwilkerson
hul1 wrote:Thanks that worked! It seems the download I followed from the PDF guide had the wrong URL posted for the upgrade link. It downloaded an older version and not the latest version of 5.6. I was able to upgrade successfully after updating with the correct yum command.
Great!

Locking thread