About to upgrade need some advice.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

About to upgrade need some advice.

Post 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.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: About to upgrade need some advice.

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: About to upgrade need some advice.

Post by benhank »

profile sent =D
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: About to upgrade need some advice.

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: About to upgrade need some advice.

Post 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
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: About to upgrade need some advice.

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: About to upgrade need some advice.

Post by benhank »

ok thanks! you can lock it
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: About to upgrade need some advice.

Post by benjaminsmith »

Hi Ben,
ok thanks! you can lock it
Sounds good. Just open a ticket or another post if you need anything.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked