restoring nagios to another Linux distribution

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

restoring nagios to another Linux distribution

Post by nms »

Hi guys,

We have nagios version 5.7.3 on centos 6 and we would like to back up and restore it to another distribution which is Centos 7.
Is there a procedure to do such thing?
If we go through with this, will we have any issues since this is a different distribution?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: restoring nagios to another Linux distribution

Post by benjaminsmith »

Hi,

If you're not switching OS families, this is a simple procedure, you'll just need to run the backup and restore process. However, this needs to be done between the same versions of XI.

In this case, it's not possible to update Cent 6, so install 5.7.3 on the Cent 7 system and then run the restore script. Once you've restored, then upgrade to the latest version. This process is documented in detail on the following page:

Migrating Nagios XI to a different Server

Let us know if you need any assistance. If you encounter any errors, be sure to post them to the thread for us to review.

Regards,
Benjamin
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!
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: restoring nagios to another Linux distribution

Post by nms »

Hi Benjamin,

Thanks for the link, seems pretty useful for our case. So to summarize ideally we can follow these steps:

1/ Take the backup on the present NagiosXI (the one with Centos6)
2/ Install a fresh Nagios installationXI (same version) on the new server (the one with Centos7)
3/ Restore from backup to the new server (the one with Centos7)
4/ Run the script compilation for the Cent07 compiled binaries - "restore_repair.sh"

5/ (optional) we upgrade to the latest version)

As for prerequisites on the new server (Centos7), there is nothing since the Nagios user and MySQL(MariaDB) will be eventually created during the NagiosXI installation, correct?

Rgds,
Matthew
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: restoring nagios to another Linux distribution

Post by benjaminsmith »

Hi Mathew,
As for prerequisites on the new server (Centos7), there is nothing since the Nagios user and MySQL(MariaDB) will be eventually created during the NagiosXI installation, correct?
That's correct. Just bring up a clean (unmodified), minimal installation of Cent 7 and the install script will handle everything needed to run Nagios XI.

As for the restore_repair.sh script, this is only needed when changing OS families, for example, if you were moving from Cent 6 to Ubuntu 20.04. In your case, this step is not required.

Hope that helps answer your questions, and let me know if you need anything else.

Benjamin
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!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: restoring nagios to another Linux distribution

Post by benjaminsmith »

Hi Mathew,
As for prerequisites on the new server (Centos7), there is nothing since the Nagios user and MySQL(MariaDB) will be eventually created during the NagiosXI installation, correct?
That's correct. Just bring up a clean (unmodified), minimal installation of Cent 7 and the install script will handle everything needed to run Nagios XI.

As for the restore_repair.sh script, this is only needed when changing OS families. For example, if you were moving from Cent 6 to Ubuntu 20.04. In your case, this step is not required.

Hope that helps answer your questions, and let me know if you need anything else.

Benjamin
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