Page 1 of 1

About to upgrade need some advice.

Posted: Mon Dec 09, 2019 3:33 pm
by benhank
Hey guys, we are planning to upgrade Nagios from version Nagios XI 5.4.12 to the latest version. I am wondering if there a recommended way to upgrade from that version to the current one.

Re: About to upgrade need some advice.

Posted: Mon Dec 09, 2019 6:01 pm
by benjaminsmith
Hey Ben,

Thanks for asking. You can send over a fresh copy of your system profile and we can review the logs and verify that you do not have any database corruption before proceeding.

To upgrade, you'll want to stop the main Nagios services:

Code: Select all

systemctl stop crond
systemctl stop npcd
systemctl stop nagios
systemctl stop ndo2db
....and then run the manual upgrade from the command line.

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
To send us your system profile.
Login to the Nagios XI GUI using a web browser
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.

Re: About to upgrade need some advice.

Posted: Tue Dec 10, 2019 11:55 am
by benhank
profile sent =D

Re: About to upgrade need some advice.

Posted: Tue Dec 10, 2019 4:02 pm
by benjaminsmith
Hi Ben,

Thanks for sending over the profile. The database is offloaded, so it did not include the log. Can you retrieve the MySQL log from the offloaded server?

Code: Select all

/var/log/mysqld.log
A couple more items...

1. There is not much free memory showing in the output for the top command. Make sure you have sufficient memory on the new server as you are running a larger deployment.

2. You have multiple Nagios processes running on the server. Run through the following commands to kill everything and restart.

Code: Select all

service nagios stop
service ndo2db stop
pkill -9 nagios
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
service ndo2db start
service nagios start
3. Are you running a test server that will be upgraded first?

Re: About to upgrade need some advice.

Posted: Wed Dec 11, 2019 12:05 pm
by benhank
yes we have a "test" server. It is actually the secondary in our prod environment.
We are also running pnp4nagios version 0.6.24 and interface table version 3T-0.05. as for the memory do you thinkl that we need to pop a few more sticks in ?
as for the mysqld.log file I checked it on the offloaded server it is empty

Re: About to upgrade need some advice.

Posted: Wed Dec 11, 2019 1:01 pm
by benjaminsmith
Hi Ben,

If the database log is empty, then I would recommend proceeding with the upgrade on the test server and then the production system. As mentioned, take a backup and run the manual upgrade instead of using the GUI.

The top command output was showing low memory, but run the following to check again. You may want to add more memory.

Code: Select all

free -h

Re: About to upgrade need some advice.

Posted: Wed Dec 11, 2019 2:18 pm
by benhank
ok thanks! you can lock it

Re: About to upgrade need some advice.

Posted: Wed Dec 11, 2019 2:26 pm
by benjaminsmith
Hi Ben,
ok thanks! you can lock it
Sounds good. Just open a ticket or another post if you need anything.