Upgrade system

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
licence
Posts: 12
Joined: Tue Jan 26, 2016 2:26 am

Upgrade system

Post by licence »

Hello,

I have problem with updating Nagios XI version 5.4.3 to current version.


Instalation was from yours .ova (runs on VMWare host) on CentOS release 6.8 (Final) x86_64

We have this system offline, in network is repository server (everythink works without problem), but when it updates nagios ti stops while yum is updating: nagiosxi-5.5.11-1.el6.x86_64. It writes no error only stops forever.

Could you help me please?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade system

Post by lmiltchev »

What are the exact steps that you took in order to upgrade this system? Can you show us the entire /usr/local/nagiosxi/var/upgrade.log?

As your old system was an ova, and now you are trying to upgrade in an offline environment, most probably you need to take the following steps.

1. Backup your old system by following the document below:

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

2. Make a new offline install of the same version of Nagios XI that you were using (5.4.3).

https://assets.nagios.com/downloads/nag ... onment.pdf

https://repo.nagios.com/?repo=offline

3. Restore (migrate) your old XI on the new server by following the document listed in step 1.

4. Upgrade your Nagios XI instance by following the document listed in step 2.
Be sure to check out our Knowledgebase for helpful articles and solutions!
licence
Posts: 12
Joined: Tue Jan 26, 2016 2:26 am

Re: Upgrade system

Post by licence »

I made new offline server on 5.4.3, restore backup, everything ok.

Then I try to upgrade system, I downladed 5.5.11, and:
tar xzf nagiosxi*
cd nagiosxi*
./upgrade

End is the same that I posted to you before... Stops on Updating: nagiosxi-5.5.11

In /usr/local/nagiosxi/var/ is no file upgrade.log
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade system

Post by lmiltchev »

OK, we need a few clarifications.
I made new offline server on 5.4.3, restore backup, everything ok.
Did you use a "RPM install" when you spun up your "new" server?

Example:

Code: Select all

mkdir -p /tmp/rpms
cd /tmp/rpms
Download the nagiosxi-5-4.3.el6.x86_64.tar.gz from a machine that has Internet access:

Code: Select all

wget  https://repo.nagios.com/nagiosxi-offline/nagiosxi-5-4.3.el6.x86_64.tar.gz
and move the file to the "/tmp/rpms" directory on the "offline box".

Code: Select all

tar xvf nagiosxi-5-4.3.el6.x86_64.tar.gz
cd nagiosxi
./fullinstall
Then I try to upgrade system, I downladed 5.5.11, and:
tar xzf nagiosxi*
cd nagiosxi*
./upgrade
Did you download the tarball with RPMs (for RPM upgrade)?
https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz

Do you have access to ALL required repos in your environment as described here - https://repo.nagios.com/?repo=offline?
Be sure to check out our Knowledgebase for helpful articles and solutions!
licence
Posts: 12
Joined: Tue Jan 26, 2016 2:26 am

Re: Upgrade system

Post by licence »

I installed it on centos 7, is it problem? Prevouse system from ova was on 6.7.

I used rpm install 5.4.3
mkdir -p /tmp/rpms
cd /tmp/rpms
- download... nagiosxi-5-4.3.el7.x86_64.tar.gz
tar xvf nagiosxi-5-4.3.el7.x86_64.tar.gz
cd nagiosxi
./fullinstall

Configure server and restore backup from old server.

than
rm -rf /tmp/rpms/nagiosxi*
download nagiosxi-5-5.11.el7.x86_64.tar.gz
tar xvf nagiosxi-5-5.11.el7.x86_64.tar.gz
cd nagiosxi
./upgrade

System is connected to local repository server with actual repositories base.

During installing was no error from yum, it only stotps on updating nagiosxi...
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade system

Post by lmiltchev »

During installing was no error from yum, it only stotps on updating nagiosxi...
We will need some more info about this. If yum is not failing (exiting with an error), that usually means that it is still working in the background. How long did you wait? Also, I know that you didn't find the upgrade.log in the "/usr/local/nagiosxi/var/" directory, but what about /tmp, /tmp/rpms, and /tmp/rpms/nagiosxi? Did you check these directories as well? See if you can find install.log and/or upgrade.log. If you do, post them both on the forum.
Be sure to check out our Knowledgebase for helpful articles and solutions!
licence
Posts: 12
Joined: Tue Jan 26, 2016 2:26 am

Re: Upgrade system

Post by licence »

Yum is not failing it only stops on line:

Installing : ipa-pgothic-fonts-003.03-5.el7.noarch 29/51
Installing : 1:net-snmp-perl-5.7.2-37.el7.x86_64 30/51
Updating : nagiosxi-5.5.11-1.el7.x86_64 31/51

It stops forever, I let it a few days in one of test and it never ends.

I found yum log in /var/log/yum.log:

Mar 27 11:41:22 Updated: nagiosxi-wmic-5.5.11-1.el7.x86_64
Mar 27 11:41:22 Installed: pcre-devel-8.32-17.el7.x86_64
Mar 27 11:41:22 Updated: nagiosxi-nrpe-5.5.11-1.el7.x86_64
Mar 27 11:41:22 Installed: nagiosxi-shellinabox-5.5.11-1.el7.x86_64
Mar 27 11:41:22 Installed: perl-Config-Tiny-2.14-7.el7.noarch
Mar 27 11:41:22 Updated: nagiosxi-nagiosmobile-5.5.11-1.el7.x86_64
Mar 27 11:41:22 Updated: nagiosxi-nsca-5.5.11-1.el7.x86_64
Mar 27 11:41:22 Updated: nagiosxi-mrtg-5.5.11-1.el7.x86_64
Mar 27 11:41:23 Installed: ipa-pmincho-fonts-003.03-5.el7.noarch
Mar 27 11:41:23 Installed: ipa-mincho-fonts-003.03-5.el7.noarch
Mar 27 11:41:24 Installed: ipa-gothic-fonts-003.03-5.el7.noarch
Mar 27 11:41:24 Updated: perl-Mail-POP3Client-2.19-5.el7.noarch
Mar 27 11:41:24 Updated: php-mssql-5.4.16-7.el7.x86_64
Mar 27 11:41:24 Installed: perl-Thread-Queue-3.02-2.el7.noarch
Mar 27 11:41:24 Installed: perl-Math-Calc-Units-1.07-9.el7.noarch
Mar 27 11:41:24 Installed: perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch
Mar 27 11:41:26 Updated: nagiosxi-nrds-5.5.11-1.el7.x86_64
Mar 27 11:41:26 Updated: nagiosxi-nagvis-5.5.11-1.el7.x86_64
Mar 27 11:41:29 Updated: nagiosxi-wkhtmltox-5.5.11-1.el7.x86_64
Mar 27 11:41:29 Installed: nagiosxi-nxti-5.5.11-1.el7.x86_64
Mar 27 11:41:30 Updated: nagiosxi-nagiosplugins-5.5.11-1.el7.x86_64
Mar 27 11:41:30 Installed: m4-1.4.16-10.el7.x86_64
Mar 27 11:41:30 Installed: autoconf-2.69-11.el7.noarch
Mar 27 11:41:30 Installed: automake-1.13.4-3.el7.noarch
Mar 27 11:41:30 Installed: php-devel-5.4.16-46.el7.x86_64
Mar 27 11:41:30 Updated: nagiosxi-ndoutils-5.5.11-1.el7.x86_64
Mar 27 11:41:30 Updated: nagiosxi-pnp-5.5.11-1.el7.x86_64
Mar 27 11:41:32 Updated: nagiosxi-nagioscore-5.5.11-1.el7.x86_64
Mar 27 11:41:32 Installed: ipa-pgothic-fonts-003.03-5.el7.noarch
Mar 27 11:41:32 Installed: 1:net-snmp-perl-5.7.2-37.el7.x86_64


It seems to be updated, but after restart system is in gui still 5.4.3


I found xi-upgrade.log in attachment.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade system

Post by scottwilkerson »

Lets run the following

Code: Select all

rm -f /usr/local/nagiosxi/html/includes/components/nrdsconfigmanager/install.sh
rm -f /usr/local/nagiosxi/html/includes/components/nagvis/install.sh
rm -f /usr/local/nagiosxi/html/includes/components/snmptrapsender/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/windowswmi/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/domain_expiration/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/ftpserver/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/exchange/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/mailserver/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/mongodb_database/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/mongodb_server/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
Then, from your upgrade directory run

Code: Select all

yum localinstall nagiosxi-5.5.11-1.el7.x86_64.rpm
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
licence
Posts: 12
Joined: Tue Jan 26, 2016 2:26 am

Re: Upgrade system

Post by licence »

Hello,
thanks for help, it works.
System is updated in actual version.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade system

Post by scottwilkerson »

licence wrote:Hello,
thanks for help, it works.
System is updated in actual version.
Excellent!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked