Skip to main content
Version: 23.10

Using packages

This is an older version of Centreon. We recommend you install the latest version.

Centreon provides RPM and DEB packages for its products through the Centreon Open Source version available free of charge in our repository.

These packages can be installed on Alma/RHEL/Oracle Linux 8 and 9 and on Debian 11.

You must run the installation procedure as a privileged user.

When you run a command, check its output. If you get an error message, stop the procedure and fix the issue.

Prerequisites

After installing your server, update your operating system using the following command:

dnf update

Additional configuration

If you intend to use Centreon in French, Spanish, Portuguese or German, install the corresponding packages:

dnf install glibc-langpack-fr
dnf install glibc-langpack-es
dnf install glibc-langpack-pt
dnf install glibc-langpack-de

Use the following command to check which languages are installed on your system:

locale -a

Accept all GPG keys and reboot your server if a kernel update is proposed.

Step 1: Pre-installation

Disable SELinux

During installation, SELinux should be disabled. To do this, edit the file /etc/selinux/config and replace enforcing with disabled. You can also run the following command:

sed -i s/^SELINUX=.*$/SELINUX=disabled/ /etc/selinux/config

Reboot your operating system to apply the change.

reboot

After system startup, perform a quick check of the SELinux status:

getenforce

You should have this result:

Disabled

Note that this deactivation should be temporary. SELinux should be reenabled after installation for security reasons.

Configure or disable the firewall

If your firewall is active, add firewall rules. You can also disable the firewall during installation by running the following commands:

systemctl stop firewalld
systemctl disable firewalld

Install the repositories

Remi repository

To install Centreon you will need to install the remi repository.

Run the following commands:

dnf install -y dnf-plugins-core
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf config-manager --set-enabled 'powertools'

Enable PHP 8.1 using the following commands:

dnf module reset php
dnf module install php:remi-8.1

MariaDB repository

curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=8 --mariadb-server-version="mariadb-10.5"

Centreon repository

To install Centreon software, you should first install the Centreon repository.

Install the Centreon repository using this command:

dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/23.10/el8/centreon-23.10.repo
dnf clean all --enablerepo=*
dnf update

Step 2: Installation

This section describes how to install a Centreon central server.

You can install this server with a local database on the server or a remote database on a dedicated server.

dnf install -y centreon-database centreon-central
systemctl daemon-reload
systemctl restart mariadb

Step 3: Configuration

Server name

If you want to change the server's hostname, use the following command:

hostnamectl set-hostname new-server-name

Replace new-server-name with the name of your choice. Example:

hostnamectl set-hostname central

Set the PHP time zone

You are required to set the PHP time zone.

Replace Europe/Paris with your time zone. You can find the list of supported time zones here.

Run the following command as root:

echo "date.timezone = Europe/Paris" >> /etc/php.d/50-centreon.ini

After saving the file, restart the PHP-FPM service:

systemctl restart php-fpm

Service startup during system bootup

To make services start automatically during system bootup, run these commands on the central server:

systemctl enable php-fpm httpd centreon cbd centengine gorgoned snmptrapd centreontrapd snmpd
systemctl enable crond
systemctl start crond

Then execute the following command (on the central server if you are using a local database, or on your remote database server):

systemctl enable mariadb
systemctl restart mariadb

Secure the database

Since MariaDB 10.5, it is mandatory to secure the database's root access before installing Centreon. If you are using a local database, run the following command on the central server:

mysql_secure_installation
  • Answer yes to all the questions except "Disallow root login remotely?".
  • It is mandatory to set a password for the root user of the database. You will need this password during the web installation.

For more information, please see the official MariaDB documentation.

Step 4: Web installation

  1. Start the Apache server with the following command:
systemctl start httpd
  1. To complete the installation, follow the web installation procedure.