1. prereqs

source /etc/cid.conf
yum config-manager --set-enabled "powertools"
curl -ns http://${rdsserver}/sharel/bin/cid-upm | sh -s "nagios"
curl -ns http://${rdsserver}/sharel/bin/inst-httpd | sh
curl -ns http://${rdsserver}/sharel/bin/inst-mariadb-server | sh
yum -y install php-bcmath php-curl php-devel php-json php-mcrypt php-zip
sed -i s~"max_execution_time =.*"~"max_execution_time = 300"~ /etc/php.ini
sed -i s~"max_input_time =.*"~"max_input_time = 300"~ /etc/php.ini

2. installation

yum -y install https://yum.centreon.com/standard/21.10/el8/stable/noarch/RPMS/centreon-release-21.10-2.el8.noarch.rpm
yum -y install centreon centreon-database

3. services

systemctl daemon-reload
systemctl enable --now \
  cbd \
  centengine \
  centreon \
  centreontrapd \
  gorgoned \
  httpd \
  mariadb \
  php-fpm \
  snmpd \
  snmptrapd \
  mariadb

4. configuration

5. cli

5.1. add hostgroups

vi /tmp/hostgroups.conf
HG;ADD;cameras;cameras
HG;ADD;printers;printers
HG;ADD;servers;servers
HG;setparam;cameras;hg_activate;1
HG;setparam;printers;hg_activate;1
HG;setparam;servers;hg_activate;1
centreon -u admin -p Passw0rd -i /tmp/hostgroups.conf

6. fix license check

cube /etc/php.d/zendguard.ini "zend_loader.license_path" with "//zend_loader.license_path"

7. references