How to migrate nagios to another server?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

How to migrate nagios to another server?

Post by supportcl »

Hello, I want to update to the latest version of nagios XI and it tells me that my rhel 6.10 server is no longer supported and that I should install it on a more modern rhel. Is there a manual or step-by-step help on how to "move" my nagios to another server? without losing all the information?
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

Re: How to migrate nagios to another server?

Post by supportcl »

Reading a little the backup & restore manual https://assets.nagios.com/downloads/nag ... ios-XI.pdf
I have followed the steps, worrying that my original version (5.7.5) is the same as the new version installed, but when trying to restore the tar.gz it tells me the following:

This script restores your XI system using a previously made Nagios XI backup file.
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

Re: How to migrate nagios to another server?

Post by supportcl »

To complete the information, I have RHEL 6.10 with nagios 5.7.5 and to update it to 5.8 I need rhel 7 onwards.
I have created a new server with RHEL 8.3 and installed the version 5.7.5 of nagios xi without problems, it is working ok. But when restoring the backup I have the problem indicated above
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to migrate nagios to another server?

Post by ssax »

The process is this:

Spin up new EL7/EL8 system (I would choose EL7 for 3rd party plugin/utility compatibility at this point in time)

Install the exact version of XI on the new one that the old one has:

https://assets.nagios.com/downloads/nag ... -Linux.pdf

Backup the old, transfer to the new one, restore to it:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Follow the After the Restore section of the backup/restore guide completely

Run the restore_repair script from the backup/restore guide on the new one because you are changing OS versions

Shutdown or re-IP the old:

https://support.nagios.com/kb/article/c ... s-549.html

Re-IP the new one with the old (this prevents you from having to touch firewall rules/agent allowed from directives on the devices you're monitoring:

https://support.nagios.com/kb/article/c ... s-549.html


Additionally, please see here:

https://support.nagios.com/kb/article.php?id=145

Then you can upgrade your new server to XI 5.8.

If you have any issues, send us the entire install.log or upgrade.log or any errors you are seeing.
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

Re: How to migrate nagios to another server?

Post by supportcl »

Thanks, with what you indicated .. I have reviewed well what I was doing and I was making a very silly mistake

/usr/local/nagiosxi/scripts/restore_xi.sh </full/path/to/backupfile.tar.gz

I have deleted the < character and everything works
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to migrate nagios to another server?

Post by scottwilkerson »

supportcl wrote:Thanks, with what you indicated .. I have reviewed well what I was doing and I was making a very silly mistake

/usr/local/nagiosxi/scripts/restore_xi.sh </full/path/to/backupfile.tar.gz

I have deleted the < character and everything works
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked