Download PDF here.
Abstract
Version 2.3
January 9, 2018
This guide instructs on how to move the configuration and data from one Azure Icinga machine to another with the same hostname. The following is only supported for Icinga version 2.8.
Prerequisites
- Both machines need have the same MySQL version installed
/etc/icinga2/cloud/system_passwords
needs to reflect the correct passwords being used (Nothing to do if passwords weren’t altered)- Confirm that both machines have the same hostname
- Confirm the new machines hostname resolves to localhost before running migration-new. Utilize nslookup and ping to confirm the resolution. If there are issues add the host name to /etc/hosts
NOTE: Using scp is a quick and easy way to transfer files from one machine to another. For example:
scp /tmp/icinga.sql root@<migratingIP>:/tmp/
Migration Steps
- Run
/usr/lib/icinga2/migration-original
on the machine that is being migrated from - Send the following files over to the new master in the
/tmp
directory:- icingaconfig.tgz
- icinga.sql
-
Replace the
/etc/icingaweb2/resources.ini
file on the new machine with the originalscp /etc/icingaweb2/resources.ini root@<migratingIP>:/etc/icingaweb2/resources.ini
- Replace the
/etc/icingaweb2/modules/director/kickstart.ini
file on the new machine with the original - On the original machine, rename /etc/icinga2/cloud
/system_passwords
to /etc/icinga2/cloud/system_passwords.orig
and copy it over to the new machine’s/etc/icinga2/cloud
directory - Copy the
ca.crt
andca.key
from/var/lib/icinga2/ca
to the new machine in the same location - Copy
ca.crt
,<hostname>.crt
and<hostname>.key
found in/var/lib/icinga2/certs
to the same location - Run
/usr/lib/icinga2/migration-new
on the machine that is being migrated to - On all clients, edit
zones.conf
files to point to the new master and restart the Icinga process - In the new machine’s web portal, redeploy Director configuration if using director
- In the new machine’s web portal, navigate to the
Configuration
tab on the left side, thenApplication
,Resources
, and make sure all resources have the correct password