Upgrade from Centreon 24.10
This chapter describes how to upgrade your Centreon platform from version 24.10 to version 25.10.
When you upgrade your central server, make sure you also upgrade all your remote servers and your pollers.
All servers in your architecture must have the same version of Centreon.
In addition, all servers must use the same version of the BBDO protocol.
If you want to migrate your Centreon platform to another server/OS, follow the migration procedure.
If you were using MySQL 8.0, you may want to upgrade to MySQL 8.4 before the end of support for version 8.0. at the end of April 2026.
Prerequisites
Perform a backup
Be sure that you have fully backed up your environment for the following servers:
- Central server
 - Database server
 
Upgrade the Centreon Central server
When you run a command, check its output. If you get an error message, stop the procedure and fix the issue.
Install the new repositories
- Alma / RHEL / Oracle Linux 8
 - Alma / RHEL / Oracle Linux 9
 - Debian 12
 
- 
Update your Centreon 24.10 to the latest minor version.
 - 
Remove the repository files:
cd /etc/yum.repos.d/
rm -rf centreon* - 
Install the new repository:
dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/25.10/el8/centreon-25.10.repo
systemctl stop cbd
dnf clean all --enablerepo=* 
- 
Update your Centreon 24.10 to the latest minor version.
 - 
Remove the repository files:
rm /etc/yum.repos.d/centreon-24.10.repo
rm /etc/yum.repos.d/centreon.repo - 
Install the new repository:
 
dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/25.10/el9/centreon-25.10.repo
- 
Update your Centreon 24.10 to the latest minor version.
 - 
Run the following commands:
 
echo "deb https://packages.centreon.com/apt-standard/ $(lsb_release -sc)-25.10-stable main" | tee -a /etc/apt/sources.list.d/centreon-25.10-stable.list
echo "deb https://packages.centreon.com/apt-plugins-stable/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/centreon-plugins.list
- Then import the repository key:
 
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
apt update
If you have an offline license, also remove the old Monitoring Connectors repository, then install the new one.
You can find the address of these repositories on the support portal.
Upgrade the Centreon solution
- 
Make sure all users are logged out from the Centreon web interface before starting the upgrade procedure.
 - 
If you have installed Business extensions, delete the configuration of the 24.10 repository:
 
- Alma / RHEL / Oracle Linux 8
 - Alma / RHEL / Oracle Linux 9
 - Debian
 
rm /etc/yum.repos.d/centreon-business-24.10.repo
rm /etc/yum.repos.d/centreon-business-24.10.repo
rm /etc/apt/sources.list.d/centreon-business.list
- 
Install the 25.10 Business repository: visit the support portal to get its address.
 - 
If your OS is Debian and you have a customized Apache configuration, perform a backup of your configuration file (/etc/apache2/sites-available/centreon.conf).
 - 
Stop the Centreon Broker process:
 
systemctl stop cbd
- Delete existing retention files:
 
rm /var/lib/centreon-broker/* -f
- Clean the cache:
 
- Alma / RHEL / Oracle Linux 8
 - Alma / RHEL / Oracle Linux 9
 - Debian
 
dnf clean all --enablerepo=*
dnf clean all --enablerepo=*
apt clean all
apt update
- Then upgrade all the components with the following command:
 
- Alma / RHEL / Oracle Linux 8
 - Alma / RHEL / Oracle Linux 9
 - Debian 12
 
dnf update centreon\* php-pecl-gnupg
dnf update centreon\* php-pecl-gnupg
apt install --only-upgrade centreon
Accept new GPG keys from the repositories as needed.
Update your customized Apache configuration
This section only applies if you customized your Apache configuration.
- Alma / RHEL / Oracle Linux 8
 - Alma / RHEL / Oracle Linux 9
 - Debian 12
 
When you upgrade your platform, the Apache configuration file is not upgraded automatically. The new configuration file brought by the rpm does not replace the old file. You must copy the changes manually to your customized configuration file.
Run a diff between the old and the new Apache configuration files:
diff -u /etc/httpd/conf.d/10-centreon.conf /etc/httpd/conf.d/10-centreon.conf.rpmnew
- 10-centreon.conf (post upgrade): this file contains the custom configuration. It does not contain anything new brought by the upgrade.
 - 10-centreon.conf.rpmnew (post upgrade): this file is provided by the rpm; it does not contain any custom configuration.
 
For each difference between the files, assess whether you should copy it from 10-centreon.conf.rpmnew to 10-centreon.conf.
Check that Apache is configured properly by running the following command:
apachectl configtest
The expected result is the following:
Syntax OK
Restart the Apache and PHP processes to take the new configuration into account:
systemctl restart php-fpm httpd
Then check its status:
systemctl status httpd
If everything is ok, you should have:
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─php-fpm.conf
   Active: active (running) since Tue 2024-10-27 12:49:42 GMT; 2h 35min ago
     Docs: man:httpd.service(8)
 Main PID: 1483 (httpd)
   Status: "Total requests: 446; Idle/Busy workers 100/0;Requests/sec: 0.0479; Bytes served/sec: 443 B/sec"
    Tasks: 278 (limit: 5032)
   Memory: 39.6M
   CGroup: /system.slice/httpd.service
           ├─1483 /usr/sbin/httpd -DFOREGROUND
           ├─1484 /usr/sbin/httpd -DFOREGROUND
           ├─1485 /usr/sbin/httpd -DFOREGROUND
           ├─1486 /usr/sbin/httpd -DFOREGROUND
           ├─1487 /usr/sbin/httpd -DFOREGROUND
           └─1887 /usr/sbin/httpd -DFOREGROUND
When you upgrade your platform, the Apache configuration file is not upgraded automatically. The new configuration file brought by the rpm does not replace the old file. You must copy the changes manually to your customized configuration file.
Run a diff between the old and the new Apache configuration files:
diff -u /etc/httpd/conf.d/10-centreon.conf /etc/httpd/conf.d/10-centreon.conf.rpmnew
- 10-centreon.conf (post upgrade): this file contains the custom configuration. It does not contain anything new brought by the upgrade.
 - 10-centreon.conf.rpmnew (post upgrade): this file is provided by the rpm; it does not contain any custom configuration.
 
For each difference between the files, assess whether you should copy it from 10-centreon.conf.rpmnew to 10-centreon.conf.
Check that Apache is configured properly by running the following command:
apachectl configtest
The expected result is the following:
Syntax OK
Restart the Apache and PHP processes to take the new configuration into account:
systemctl restart php-fpm httpd
Then check its status:
systemctl status httpd
If everything is ok, you should have:
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─php-fpm.conf
   Active: active (running) since Tue 2024-10-27 12:49:42 GMT; 2h 35min ago
     Docs: man:httpd.service(8)
 Main PID: 1483 (httpd)
   Status: "Total requests: 446; Idle/Busy workers 100/0;Requests/sec: 0.0479; Bytes served/sec: 443 B/sec"
    Tasks: 278 (limit: 5032)
   Memory: 39.6M
   CGroup: /system.slice/httpd.service
           ├─1483 /usr/sbin/httpd -DFOREGROUND
           ├─1484 /usr/sbin/httpd -DFOREGROUND
           ├─1485 /usr/sbin/httpd -DFOREGROUND
           ├─1486 /usr/sbin/httpd -DFOREGROUND
           ├─1487 /usr/sbin/httpd -DFOREGROUND
           └─1887 /usr/sbin/httpd -DFOREGROUND
Use the backup file you created in the previous step to copy your customizations to the file /etc/apache2/sites-available/centreon.conf.
Check that Apache is configured properly by running the following command:
apache2ctl configtest
The expected result is the following:
Syntax OK
Check the status of Apache:
systemctl status apache2
If everything is ok, you should have:
● apache2.service - The Apache HTTP Server
    Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor pres>
     Active: active (running) since Tue 2024-08-09 05:01:36 UTC; 3h 56min ago
       Docs: https://httpd.apache.org/docs/2.4/
   Main PID: 518 (apache2)
      Tasks: 11 (limit: 2356)
     Memory: 18.1M
        CPU: 1.491s
     CGroup: /system.slice/apache2.service
             ├─ 518 /usr/sbin/apache2 -k start
             ├─1252 /usr/sbin/apache2 -k start
             ├─1254 /usr/sbin/apache2 -k start
             ├─1472 /usr/sbin/apache2 -k start
             ├─3857 /usr/sbin/apache2 -k start
             ├─3858 /usr/sbin/apache2 -k start
             ├─3859 /usr/sbin/apache2 -k start
             ├─3860 /usr/sbin/apache2 -k start
             ├─3876 /usr/sbin/apache2 -k start
             ├─6261 /usr/sbin/apache2 -k start
             └─6509 /usr/sbin/apache2 -k start
Customized Apache configuration: enable text compression
In order to improve page loading speed, you can activate text compression on the Apache server. It requires the brotli package to work. This is optional, but it provides a better user experience.
Add the following code to your Apache configuration file, in both the <VirtualHost *:80> and <VirtualHost *:443> elements:
<IfModule mod_brotli.c>
    AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/javascript application/json
</IfModule>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json
Finalizing the upgrade
Before starting the web upgrade process, upgrade the Centreon BAM module and reload the Apache server with the following command:
- Alma / RHEL / Oracle Linux 8
 - Alma / RHEL / Oracle Linux 9
 - Debian 12
 
systemctl reload php-fpm httpd
systemctl reload php-fpm httpd
apt autoremove
systemctl daemon-reload
systemctl enable php8.2-fpm
systemctl start php8.2-fpm
systemctl restart apache2
Then you need to finalize the upgrade process:
- Using the wizard
 - Using a dedicated API endpoint
 
- Log on to the Centreon web interface to continue the update process. Click Next:
 

- Click Next:
 

- The release notes describe the main changes. Click Next:
 

- This process performs the various upgrades. Click Next:
 

- Your Centreon server is now up to date. Click Finish to access the login page:
 

- Deploy the central's configuration from the Centreon web UI by following this procedure.
 
- Log on to the central server through your terminal to continue the update process.
 
You need an authentication token to reach the API endpoint. Perform the following procedure to get a token.
In our case, we have the configuration described below (you need to adapt the procedure to your configuration).
- address: 10.25.XX.XX
 - port: 80
 - version: 25.10
 - login: Admin
 - password: xxxxx
 
- Enter the following request:
 
curl --location --request POST '10.25.XX.XX:80/centreon/api/v25.10/login' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
  "security": {
    "credentials": {
      "login": "Admin",
      "password": "xxxxx"
    }
  }
}'
This is how the result should look:
{"contact":{"id":1,"name":"Admin Centreon","alias":"admin","email":"admin@localhost","is_admin":true},"security":{"token":"hwwE7w/ukiiMce2lwhNi2mcFxLNYPhB9bYSKVP3xeTRUeN8FuGQms3RhpLreDX/S"}}
- 
Retrieve the token number to use it in the next request.
 - 
Then enter this request:
 
curl --location --request PATCH 'http://10.25.XX.XX:80/centreon/api/latest/platform/updates' \
--header 'X-AUTH-TOKEN: hwwE7w/ukiiMce2lwhNi2mcFxLNYPhB9bYSKVP3xeTRUeN8FuGQms3RhpLreDX/S' \
--header 'Content-Type: application/json' \
--data '{
    "components": [
        {
            "name": "centreon-web"
        }
    ]
}'
- This request does not return any result. To check if the update has been successfully applied, read the version number displayed on the Centreon web interface login page.
 
Finally, restart Broker, Engine and Gorgone on the central server by running this command:
systemctl restart cbd centengine gorgoned
Update the permissions on the centreon-broker configuration files.
- Alma / RHEL / Oracle Linux 8
 - Alma / RHEL / Oracle Linux 9
 - Debian 12
 
usermod -a -G centreon-broker apache
usermod -a -G apache centreon-broker
usermod -a -G centreon-broker apache
usermod -a -G apache centreon-broker
usermod -a -G centreon-broker www-data
usermod -a -G www-data centreon-broker
Refer to the Centreon MBI and Centreon MAP dedicated procedures to update these modules.
Post-upgrade actions
- 
Upgrade extensions. From Administration > Extensions > Manager, upgrade all extensions, starting with the following:
- License Manager,
 - Monitoring Connector Manager,
 - Auto Discovery.
 
Then you can upgrade all other commercial extensions.
 - 
If you were using custom commands for a poller (on the Configuration > Pollers > Pollers page, in the Monitoring Engine Information section), be aware that a new validation regex is now applied (
[a-zA-Z0-9\-\_]+): your custom commands may need to be adapted. On the central server:- To identify commands that must be adapted, run:
sudo -u apache php /usr/share/centreon/bin/console w:m:c --dry-run
``` - To adapt the commands automatically, run:
(You can also adapt them manually.)
sudo -u apache php /usr/share/centreon/bin/console w:m:c 
 - To identify commands that must be adapted, run:
 - 
Restart the processes:
systemctl restart cbd centengine centreontrapd gorgoned 
Upgrade the Remote Servers
This procedure is the same as for upgrading a Centreon Central server.
At the end of the update, the configuration should be deployed from the Central server.
Upgrade the Pollers
Update the Centreon repository
Run the following command:
- Alma / RHEL / Oracle Linux 8
 - Alma / RHEL / Oracle Linux 9
 - Debian 12
 
dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/24.10/el8/centreon-24.10.repo
dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/24.10/el9/centreon-24.10.repo
echo "deb https://packages.centreon.com/apt-standard-24.10-stable/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/centreon.list
apt update
Upgrade the Centreon solution
Clean the cache:
- Alma / RHEL / Oracle Linux 8
 - Alma / RHEL / Oracle Linux 9
 - Debian 12
 
dnf clean all --enablerepo=*
dnf clean all --enablerepo=*
apt clean all
apt update
Then upgrade all the components with the following command:
- Alma / RHEL / Oracle Linux 8
 - Alma / RHEL / Oracle Linux 9
 - Debian 12
 
dnf update centreon\*
dnf update centreon\*
apt install --only-upgrade centreon-poller
Accept new GPG keys from the repositories as needed.
Restart centreon:
systemctl restart centreon
Retrieving the decryption key
Run the following script to enable the poller to receive and process encrypted data:
/usr/share/centreon/bin/writeEngineSecrets.sh <BASE_URL> <API_ACCOUNT> <PASSWORD>
Example:
/usr/share/centreon/bin/writeEngineSecrets.sh https://10.10.10.10/centreon admin password
You must use the default admin account as the <API_ACCOUNT>.
Restart centengine:
systemctl restart centengine