NagiosXI 5.5 Upgrade (Fresh install)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NagiosXI 5.5 Upgrade (Fresh install)

Post by cdienger »

You'll want to modify a few files in the backup to point back to the local database instance before importing it with the restore script. Open the backup and the nagiosxi and nagios archives in it and modify:

/usr/local/nagiosxi/var/xi-sys.cfg/xi-sys.cfg to use the default credentials I've mentioned earlier
/usr/local/nagios/etc/ndo2db.cfg and /usr/local/nagiosxi/html/config.inc.php to use the default settings. These can be found in https://assets.nagios.com/downloads/nag ... Server.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
russell.it
Posts: 23
Joined: Sun Oct 26, 2014 7:46 pm

Re: NagiosXI 5.5 Upgrade (Fresh install)

Post by russell.it »

Cheers.

I will give it ago
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI 5.5 Upgrade (Fresh install)

Post by scottwilkerson »

russell.it wrote:Cheers.

I will give it ago
Let us know if you need further assistance
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
russell.it
Posts: 23
Joined: Sun Oct 26, 2014 7:46 pm

Re: NagiosXI 5.5 Upgrade (Fresh install)

Post by russell.it »

Next issue :D

Restore scripts starts running through and I get the following error after "Restoring Nagios XI MySQL database..."
ERROR 1046 (3D000) at line 8: No database seletec
Error restoring MySQL database 'nagiosxi' !
So I have backed up my install from the old NagiosXI 5.4.13 instance.
Modified the three files to point to the new localhost databases.
Re-tared everything backup.

Done a fresh install of XI 5.4.13 on a new RHEL 7 vm. Run the restore script pointing to the backup tarball. Thats the error I get.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI 5.5 Upgrade (Fresh install)

Post by scottwilkerson »

Edit /usr/local/nagiosxi/html/config.inc.php

change this line

Code: Select all

"dbserver" => '',
to this

Code: Select all

"dbserver" => 'localhost',
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
russell.it
Posts: 23
Joined: Sun Oct 26, 2014 7:46 pm

Re: NagiosXI 5.5 Upgrade (Fresh install)

Post by russell.it »

I just checked all three dbserver lines are set to localhost
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NagiosXI 5.5 Upgrade (Fresh install)

Post by ssax »

Ok, I've updated the script to use a different IP address

First, make sure that the local database uses the same users/passwords as the old database.

Then transfer your backup file to the new server and replace this file with the one I've attached (unzip it first):

Code: Select all

/usr/local/nagiosxi/scripts/restore_xi.sh
Then run the restore script like this:

Code: Select all

cd /usr/local/nagiosxi/scripts
./restore_xi.sh /path/to/your/backupfile.tar.gz 127.0.0.1
Then when it's done, you will need to follow the section called Adjust Settings on Nagios XI Server from this guide to change the IP to your new DB:

Code: Select all

https://assets.nagios.com/downloads/nagiosxi/docs/Offloading_MySQL_to_Remote Server.pdf
Make sure to go to Admin > System Settings and update the Program URL and External URL as well.
You do not have the required permissions to view the files attached to this post.
Locked