Page 1 of 1

How to migrate nagios to another server?

Posted: Thu Jan 14, 2021 7:48 am
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?

Re: How to migrate nagios to another server?

Posted: Thu Jan 14, 2021 12:18 pm
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.

Re: How to migrate nagios to another server?

Posted: Thu Jan 14, 2021 12:24 pm
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

Re: How to migrate nagios to another server?

Posted: Thu Jan 14, 2021 6:30 pm
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.

Re: How to migrate nagios to another server?

Posted: Fri Jan 15, 2021 7:13 am
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

Re: How to migrate nagios to another server?

Posted: Fri Jan 15, 2021 8:42 am
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