Page 1 of 1
Migrate to new server OS
Posted: Wed Feb 09, 2022 8:23 am
by tworan2la
Hi folks, new to the forums and NagiosXI here...hello!
We are currently running Nagios 5.6.2 on CentOS 6.2 (originally provisioned via prebuilt VMWare OVF from Nagios).
Considering CentOS deprecation, I am looking in to building a fresh Ubuntu server, installing Nagios, and then migrating all data from the old server to the new server.
Can anyone out here point me in the right direction for gathering info on a procedure that will work for this project? Any advise or documentation you have is most appreciated.
Cheers!
Dave
Re: Migrate to new server OS
Posted: Wed Feb 09, 2022 5:58 pm
by pbroste
Hello
@tworan2Ia
The XI backup/restore process makes migration pretty easy:
The process is this:
- Spin up new server running the latest supported distro of your choosing
- Install the exact same version of XI that the old server has on the new server, no need to configure it, just install it and go through the initial setup (do not try to restore over different versions of XI you will cause issues)
https://assets.nagios.com/downloads/nag ... rsions.php
https://assets.nagios.com/downloads/nag ... -Linux.pdf
- If you have a RAMDisk installed, are using RRDCacheD, or are running Mod_Gearman 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
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
If you are monitoring vmware/oracle you'll need to reinstall the proper supporting packages on the new server again following these guides:
https://assets.nagios.com/downloads/nag ... ios-XI.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
- 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
Then apply configuration and upgrade the new server to the latest XI version.
If your current system is 32-bit you need to follow this as well to migrate the performance data, if it's 64-bit already, no need to follow this:
https://support.nagios.com/kb/article.php?id=166
Regards,
Perry
Re: Migrate to new server OS
Posted: Thu Feb 10, 2022 8:44 am
by tworan2la
Thanks for this info Perry, much appreciated! Would you recommend installing the VMWare monitoring package prior to running a restore on the new server, or should that wait?
Dave
Re: Migrate to new server OS
Posted: Thu Feb 10, 2022 3:30 pm
by pbroste
Hello
@tworan2la
Recommend with the restore and then spin up the VMWare Monitoring.
Thanks,
Perry