Move Icinga to another server

we have our icinga core (master, director and DB) on one server with debian.
Now we want to install a new server with CentOS, but we have some questions:

  • Could we just transfer all the configs and the DB to the new server and everything works? (if IP and hostname are the same)
  • Would it be possible to change the hostname and the IP address? (do we have to edit every single client? or just all satelittes?)
  • Does it have some performace advantages if we have the DB on another server and not on the same?

Thank you!

This will be a monster project if you have a large infrastructure. Check this first to get an idea of the files you’ll need to migrate:

So a few things to know, Icinga installs on Debian under the user nagios and on centos as the user icinga, keep that in mind when fixing permissions. If you change the master’s hostname, you’re probably going to be in certificate hell, but someone else could correct me if I’m wrong. I suppose it might be possible to generate a new cert from the same ca before updating zones.conf on every node in the master zone. Definitely build a small distributed setup in a qa environment and run through all of this there first.

I run postgresql and influxdb on a pair dedicated servers with fast ssds, soft raid and replication. I’m not having performance problems personally. As long as they’re close together all should be fine.

This whole thing will possibly cause you over an hour of downtime on your monitoring depending on how fast your automation approach is. Make sure you have some help watching out for issues in your environment during it.

1 Like