Nagios upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
exp-user1
Posts: 65
Joined: Mon Oct 21, 2019 1:56 pm

Nagios upgrade

Post by exp-user1 »

Hello team,

I want to upgrade NagiosXI 5.5.9 to latest version (5.6.10) offline.

I have downloaded "xi-latest.tar.gz" , and the server has the following yum repolist:

!rhel-7-server-extras-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extras (RPMs) 1,190
!rhel-7-server-optional-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Optional (RPMs) 17,914
!rhel-7-server-rpms/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 24,539
repolist: 43,643

Is it enough to complete the Upgrade without internet connection?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios upgrade

Post by Box293 »

Our documentation for doing this is located here:

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

You cannot convert a "normal install" to an "offline install". The only way to do this is via a backup and restore.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
exp-user1
Posts: 65
Joined: Mon Oct 21, 2019 1:56 pm

Re: Nagios upgrade

Post by exp-user1 »

Thank you,

I noticed that offline tarball nagiosxi-5.6.10-1.el7.x86_64.tar.gz is different than xi-latest.tar.gz.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios upgrade

Post by Box293 »

Correct, they are the same product but delivered and installed differently.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
exp-user1
Posts: 65
Joined: Mon Oct 21, 2019 1:56 pm

Re: Nagios upgrade

Post by exp-user1 »

Dears,

I did offline upgrade as per document, but after finishing the upgrade the version still the same on GUI "5.5.9"

could you please help?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios upgrade

Post by cdienger »

Double check the installed version with:

Code: Select all

cat /usr/local/nagiosxi/var/xiversion
And try restarting the Apache service if that shows up to date:

Code: Select all

systemctl restart httpd
Otherwise it sounds like it didn't complete the upgrade. Were there any errors when you went through the steps? Try running through them again and provide any errors that it may produce.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
exp-user1
Posts: 65
Joined: Mon Oct 21, 2019 1:56 pm

Re: Nagios upgrade

Post by exp-user1 »

Hi,

attached a file of upgrade output.
I did a reboot but still the same.

cat /usr/local/nagiosxi/var/xiversion
###################################
# DO NOT DELETE THIS FILE!
# Nagios XI version information
###################################
full=5.5.9
major=5
minor=5.9
releasedate=2019-01-17
release=5509


mariadb seams to be the issue
tailf /var/log/mariadb/mariadb.log
200124 16:17:12 InnoDB: Initializing buffer pool, size = 128.0M
200124 16:17:12 InnoDB: Completed initialization of buffer pool
200124 16:17:12 InnoDB: highest supported file format is Barracuda.
200124 16:17:12 InnoDB: Waiting for the background threads to start
200124 16:17:13 Percona XtraDB (http://www.percona.com) 5.5.59-MariaDB-38.11 started; log sequence number 56923707417
200124 16:17:13 [Note] Plugin 'FEEDBACK' is disabled.
200124 16:17:13 [Note] Server socket created on IP: '0.0.0.0'.
200124 16:17:13 [Note] Event Scheduler: Loaded 0 events
200124 16:17:13 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.60-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios upgrade

Post by cdienger »

/var/tmp/rpm-tmp.RyyAXA: line 19: ./rpminstall: Permission denied
Make sure you're running this as root and that you can write to /var/tmp/.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
exp-user1
Posts: 65
Joined: Mon Oct 21, 2019 1:56 pm

Re: Nagios upgrade

Post by exp-user1 »

Hi,

I am upgrading as root, but /var/tmp has noexec, I will set it to exec.

now how to redo the upgrade without losing database or cfg files.

these rpms have been installed after the upgrade , and doing upgrade again will do nothing (since they are latest)
rpm -aq|grep nagios
nagiosxi-mrtg-5.6.10-1.el7.x86_64
nagiosxi-nrds-5.6.10-1.el7.x86_64
nagiosxi-nagiosplugins-5.6.10-1.el7.x86_64
nagiosxi-pnp-5.6.10-1.el7.x86_64
nagiosxi-wmic-5.6.10-1.el7.x86_64
nagiosxi-shellinabox-5.6.10-1.el7.x86_64
nagiosxi-nsca-5.6.10-1.el7.x86_64
nagiosxi-wkhtmltox-5.6.10-1.el7.x86_64
nagiosxi-ndoutils-5.6.10-1.el7.x86_64
nagiosxi-nagiosmobile-5.6.10-1.el7.x86_64
nagiosxi-nagioscore-5.6.10-1.el7.x86_64
nagios-repo-7-3.el7.noarch
nagiosxi-nagvis-5.6.10-1.el7.x86_64
nagiosxi-nrpe-5.6.10-1.el7.x86_64
nagiosxi-nxti-5.6.10-1.el7.x86_64
nagiosxi-5.6.10-1.el7.x86_64
exp-user1
Posts: 65
Joined: Mon Oct 21, 2019 1:56 pm

Re: Nagios upgrade

Post by exp-user1 »

Box293 wrote:Our documentation for doing this is located here:

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

You cannot convert a "normal install" to an "offline install". The only way to do this is via a backup and restore.

backup/restore document says:
"The version of the fresh install of Nagios XI that you are restoring to needs to match the version of Nagios XI
that the backup was taken from. For example:
Backup was created on Nagios XI 5.2.2
The server you are restoring to must have Nagios XI 5.2.2 installed on it."

so how would I restore from backup taken from older version on new upgraded version?
Locked