Greetings!
We have a very old and somewhat busted (upgrades fail) "traditionally installed" version of NagiosXI 5.3.4.
We would like to try to migrate our data off that old server to a new 5.8 appliance.
Going by the backup/restore documents, it seems the method I would have deploy would be to install 5.3.4 on a new server, restore the data from the old 5.3.4 server, then upgrade the new server to 5.8, then grab the appliance and then try the a web-based migration or backup/restore again.
This seems like quite a bit of work to me so I was wondering if I'm right in my assumptions above or is there an easier method (I did try the migration tool in 5.8 as well but ...it failed cause our old server is, as previously mentioned, sort of busted....).
I'm also not against the idea of just starting fresh with our a new install BUT I'm not sure there is an easy way to apply a custom template to a discovery scan?
SO yeah, all in all just trying to see what might be best option to right this ship and get to a more supported version.
Input on XI migration: Old server to New appliance
-
mgallowaycac
- Posts: 5
- Joined: Wed Jun 20, 2018 11:29 am
Re: Input on XI migration: Old server to New appliance
Hi,
Those steps you mentioned are the correct way to upgrade (move) Nagios onto new OS.
Here are the steps I am recommending, very similar to yours:
- Spin up new server
- Install the exact same version of XI that the old server has on the new server, no need to configure it, just install it (do not try to restore over different versions you will cause issues)
https://assets.nagios.com/downloads/nag ... -Linux.pdf
- If you have a RAMDisk installed or are using RRDCacheD on the old system, set them up before restoring:
https://assets.nagios.com/downloads/nag ... giosXI.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
- Backup the old/transfer to new/restore to the new
- Follow the After The Restore section from the backup/restore guide completely
- Since you're changing OS versions, run the restore_repair script from the backup/restore guide
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Example of restore command:
Also remember to do this on your NEW server (VM) since you has changed Operating System Version / Architecture:
- Upgrade to latest XI on new server
https://assets.nagios.com/downloads/nag ... ctions.pdf
- Shutdown (or re-IP) the old, set the old IP on the new system so you don't have to update agent configs/FW rules
https://support.nagios.com/kb/article/c ... s-549.html
That's pretty much it. Please be aware of what a single XI license entitles you to:
https://support.nagios.com/kb/article.php?id=145
Regards,
Vinh
Those steps you mentioned are the correct way to upgrade (move) Nagios onto new OS.
Here are the steps I am recommending, very similar to yours:
- Spin up new server
- Install the exact same version of XI that the old server has on the new server, no need to configure it, just install it (do not try to restore over different versions you will cause issues)
https://assets.nagios.com/downloads/nag ... -Linux.pdf
Code: Select all
Here's how to do manual install (please follow steps in URL above for more details):
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.3.4.tar.gz
tar zxf xi-5.3.4.tar.gz
cd /tmp/nagiosxi
cd nagiosxi
./fullinstall
- If you have a RAMDisk installed or are using RRDCacheD on the old system, set them up before restoring:
https://assets.nagios.com/downloads/nag ... giosXI.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
- Backup the old/transfer to new/restore to the new
- Follow the After The Restore section from the backup/restore guide completely
- Since you're changing OS versions, run the restore_repair script from the backup/restore guide
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Example of restore command:
Code: Select all
/usr/local/nagiosxi/scripts/restore_xi.sh </full/path/to/backupfile.tar.gz>
Code: Select all
cd /tmp/
wget https://assets.nagios.com/downloads/nagiosxi/scripts/restore_repair.sh
chmod +x restore_repair.sh
./restore_repair.sh
https://assets.nagios.com/downloads/nag ... ctions.pdf
- Shutdown (or re-IP) the old, set the old IP on the new system so you don't have to update agent configs/FW rules
https://support.nagios.com/kb/article/c ... s-549.html
That's pretty much it. Please be aware of what a single XI license entitles you to:
https://support.nagios.com/kb/article.php?id=145
Regards,
Vinh