Consolidated document to xfer previous NagiosXI to new XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
luczynj
Posts: 88
Joined: Wed Dec 03, 2014 6:47 pm

Consolidated document to xfer previous NagiosXI to new XI

Post by luczynj »

Hello all,

I've built a fresh-from-scratch Nagios-XI 5.3.3 and would like to know if there is a consolidated document of all the steps necessary to transfer *EVERYTHING* needed from the live Nagios (version 2014r2.7 to the new Nagios. IE, /etc/hosts, snmptt.ini, snmptrapd.conf, then the list of the following:

In theory, I would think I’d like to :
1.) Save and remove custom views and pages
2.) Save and remove host and service performance data
3.) Save and wipe the current hosts, hostgroups,
4.) Save and wipe the services, service groups,
5.) Save and wipe the host and service performance data
6.) Save and remove users and contacts, contact groups

And then restore them back onto the newly built NagiosXI

Thanks for your help!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Consolidated document to xfer previous NagiosXI to new X

Post by rkennedy »

As you are converting from 2014r2.7, there is one architecture thing to consider. The nagiosxi database is running on Postgres. On newer versions, it will be running SQL across the board.

This leads you to two options:
1. On a 5.3.x system, convert the nagiosxi database using a guide we wrote - https://support.nagios.com/kb/article.php?id=560 - and then run through the backup and restore process - https://assets.nagios.com/downloads/nag ... ios-XI.pdf
2. Spinning up your new machine initially on 2014r2.7, and then upgrading to 5.3.x (thus preserving the nagiosxi db to run on postgres) - from there, you can then use the backup and restore procedure - https://assets.nagios.com/downloads/nag ... ios-XI.pdf

This will retain what is currently on your older machine, so depending on what you may / may not want to restore you'll to adjust accordingly.

Code: Select all

Backup Overview
The backup script will save a copy of the following components of Nagios XI:
●
Nagios Core files (
/usr/local/nagios/
)
●
Nagios XI files (
/usr/local/nagiosxi/
)
●
NagiosQL files (
/var/www/html/nagiosql/
 and 
/etc/nagiosql/
)
●
MRTG files (
/var/lib/mrtg/
 and 
/etc/mrtg/
)
●
NRDP files (
/usr/local/nrdp/
)
●
Nagvis files (
/usr/local/nagvis/
)
●
CRON files (in 
/var/spool/scron/apache
)
●
Select Apache config files (in 
/etc/httpd/conf.d/
)
●
Select logrotate config files (in 
/etc/logrotate.d/
)
●
Select MySQL databases (
nagios
 and 
nagiosql
)
●
Select PostgresQL databases (
nagiosxi
)
Former Nagios Employee
Locked