Upgrading MAP
If you're updating to a new major version (i.e: A.B.x with A or B that changes) you need to install the new Business repository. You can find its address on the support portal.
Prerequisites
Update the RPM signing key
For security reasons, the keys used to sign Centreon RPMs are rotated regularly. The last change occurred on October 14, 2021. When upgrading from an older version, you need to go through the key rotation procedure, to remove the old key and install the new one.
Update the package
Stop the centreon-map-engine service by running this command on the machine hosting the Centreon MAP service:
sudo systemctl stop centreon-map-engine
In order to update the Centreon MAP module, execute the following commands:
- Alma / RHEL / Oracle Linux 8
- CentOS 7
- Debian 11
On the central server:
sudo dnf update centreon-map-web-client
On the MAP server:
sudo dnf update centreon-map-engine
On the central server:
sudo yum update centreon-map-web-client
On the MAP server:
sudo yum update centreon-map-engine
If MAP only is installed:
On the central server:
sudo apt install --only-upgrade centreon-map-web-client
On the MAP server:
sudo apt install --only-upgrade centreon-map-engine
If MAP and MAP Legacy are installed on the same server:
Make a backup of the map.cnf file:
cp /etc/my.cnf.d/map.cnf /etc/my.cnf.d/map.cnf.bk
Update the centreon-map-engine package
On the central server:
sudo apt install -o Dpkg::Options::="--force-overwrite" centreon-map-web-client
On the MAP server:
sudo apt install -o Dpkg::Options::="--force-overwrite" centreon-map-engine
Retrieve the configuration file backup:
cp /etc/my.cnf.d/map.cnf.bk /etc/my.cnf.d/map.cnf
Answer Y when prompted. Then restart MySQL:
systemctl restart mariadb
Clear your browser cache.
Finalize the update of the module and the widget in the Centreon interface Administration > Extensions > Manager.
An orange update button is visible, indicating that an update is available. Click on it to update the module, and do the same for the widget.
Restart the centreon-map-engine service using the following command:
sudo systemctl start centreon-map-engine
Make sure you are using the correct version of MariaDB and update it if needed. See Upgrading MariaDB.