Page 1 of 2

Nagios upgrade

Posted: Tue Jan 21, 2020 11:17 am
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?

Re: Nagios upgrade

Posted: Tue Jan 21, 2020 4:33 pm
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.

Re: Nagios upgrade

Posted: Tue Jan 21, 2020 4:53 pm
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.

Re: Nagios upgrade

Posted: Tue Jan 21, 2020 5:02 pm
by Box293
Correct, they are the same product but delivered and installed differently.

Re: Nagios upgrade

Posted: Fri Jan 24, 2020 2:25 pm
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?

Re: Nagios upgrade

Posted: Fri Jan 24, 2020 4:10 pm
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.

Re: Nagios upgrade

Posted: Fri Jan 24, 2020 4:28 pm
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

Re: Nagios upgrade

Posted: Mon Jan 27, 2020 10:53 am
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/.

Re: Nagios upgrade

Posted: Mon Jan 27, 2020 11:08 am
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

Re: Nagios upgrade

Posted: Mon Jan 27, 2020 4:10 pm
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?