Skip to main content
Version: 22.10

Upgrade from Centreon-Failover to Centreon-HA

Prerequisites

Understanding

This procedure is reserved to advanced-users. Read it completely before starting any operation. Make sure to understand the whole thing as it helps to minimize service disruption when the time to do it on production servers will come.

Scope of application

This procedure aims to provide a detailed guide on how to upgrade a Centreon version installed in version < 20.04 with the centreon-failover solution deployed.

If you never worked with Centreon Professional Services Team or one of our Partner, you are probably not concerned by the content below.

Please always open a support ticket to ensure that your platform is compliant with the upgrade process described here.

Legacy Cluster destruction

To migrate from centreon-failover to centreon-ha, it's necessary to destroy the existing Cluster. Be aware that the Web UI will be unavaible during this process.

Connect by SSH to a node within the Cluster to run the following command:

Disable the resources:

pcs resource disable ms_mysql
pcs resource disable centreon
pcs resource unmanage centreon
pcs resource unmanage ms_mysql

Destroy the cluster:

pcs cluster destroy

At this step, none of the processes managed by the cluster should run on any node.

WARNING: Make sure to check on both Central and Database servers.

Upgrade MariaDB

Centreon >= 22.04 comes with a compatibility with MariaDB 10.5.

Upgrade of both database nodes following official MariaDB upgrade procedure.

Once both nodes are running the 10.5 MariaDB version, stop mysql/mariadb processes.

Upgrade Centreon Packages

Follow these steps on each Central Web nodes.

If you upgrade from the 19.10:

If you upgrade from the 19.04:

Stop the apache process after these operations and check again that none of the processes managed by the cluster are running.

Create the new cluster

Depending on your Cluster architecture, the procedure to create the cluster is different.

Before taking the next steps, make sure that all resources are running smoothly without any failed actions.

If any problem shows up at this step, make sure that the following prerequisites are met:

Once the centreon and mysql SSH keys have been exchanged, you might want to remove the root SSH public keys from /root/.ssh/authorized_keys.

Finalizing the upgrade

First, complete Web wizard steps to finish the Central upgrade process:

  • If you upgrade from the 19.10, follow this chapter.
  • If you upgrade from the 19.04, follow this chapter.

Then, modify the Centreon-Broker reload command of your Central Server in 'Configuration > Pollers' as described here.

Finally, upgrade your Poller(s) as described here