Using packages

Centreon provides RPM packages for its products through the Centreon open source version available free of charge in our repository.

These packages have been successfully tested in version 7.x CentOS and Red Hat environments.

Pre-installation steps

SELinux should be disabled. To do this, you first have to edit the file /etc/selinux/config and replace “enforcing” by “disabled”:

SELINUX=disabled

Note

After saving the file, please reboot your operating system to apply the changes.

A quick check of SELinux status:

$ getenforce
Disabled

Installing the repository

Redhat Software collections repository

To install Centreon you will need to set up the official software collections repository supported by Redhat.

Note

Software collections are required in order to install PHP 7 and associated libs (Centreon requirement).

Software collections repository installation:

# yum install centos-release-scl

The repository is now installed.

Centreon repository

To install Centreon software from the repository, you should first install the centreon-release package which will provide the repository file.

Centreon repository installation:

# wget http://yum.centreon.com/standard/18.10/el7/stable/noarch/RPMS/centreon-release-18.10-2.el7.centos.noarch.rpm -O /tmp/centreon-release-18.10-2.el7.centos.noarch.rpm
# yum install --nogpgcheck /tmp/centreon-release-18.10-2.el7.centos.noarch.rpm

The repository is now installed.

Installing a Centreon central server

This chapter describes the installation of a Centreon central server.

Installing Centreon central server with database

Run the command:

# yum install centreon
# systemctl restart mysql

Installing Centreon central server without database

Run the command:

# yum install centreon-base-config-centreon-engine

Installing MySQL on the dedicated server

Run the commands:

# yum install centreon-database
# systemctl restart mysql

Note

centreon-database package installs a database server optimized for use with Centreon.

Database management system

The MySQL database server should be available to complete installation (locally or not). MariaDB is recommended.

It is necessary to modify LimitNOFILE limitation. Setting this option into /etc/my.cnf will NOT work.

Run the commands:

# mkdir -p  /etc/systemd/system/mariadb.service.d/
# echo -ne "[Service]\nLimitNOFILE=32000\n" | tee /etc/systemd/system/mariadb.service.d/limits.conf
# systemctl daemon-reload
# systemctl restart mysql

Setting the PHP timezone

You must set the PHP timezone. Perform the command:

# echo "date.timezone = Europe/Paris" > /etc/opt/rh/rh-php71/php.d/php-timezone.ini

Note

Change Europe/Paris to your timezone.

After saving the file, please do not forget to restart the apache server:

# systemctl restart httpd

Configuring/disabling the firewall

Add firewall rules or disable the firewall by running following commands:

# systemctl stop firewalld
# systemctl disable firewalld
# systemctl status firewalld

Launching services during system bootup

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

# systemctl enable httpd
# systemctl enable snmpd
# systemctl enable snmptrapd
# systemctl enable rh-php71-php-fpm
# systemctl enable centcore
# systemctl enable centreontrapd
# systemctl enable cbd
# systemctl enable centengine

Note

If MySQL database is on a dedicated server, execute the enable command of mysql on the database server.

Concluding the installation

Before starting the web installation process, you will need to execute:

# systemctl start rh-php71-php-fpm
# systemctl start httpd
# systemctl start mysqld
# systemctl start cbd
# systemctl start snmpd
# systemctl start snmptrapd

Configuration

Log in to Centreon web interface via the URL: http://[SERVER_IP]/centreon. The Centreon setup wizard is displayed. Click on Next.

../_images/acentreonwelcome.png

The Centreon setup wizard checks the availability of the modules. Click on Next.

../_images/acentreoncheckmodules.png

Click on Next.

../_images/amonitoringengine2.png

Click on Next.

../_images/abrokerinfo2.png

Provide the information on the admin user, then click on Next.

../_images/aadmininfo.png

By default, the ‘localhost’ server is defined and the root password is empty. If you use a remote database server, change these entries. In this case, you only need to define a password for the user accessing the Centreon databases, i.e., ‘Centreon’. Click on Next.

../_images/adbinfo.png

Note

If the Add innodb_file_per_table=1 in my.cnf file under the [mysqld] section and restart MySQL Server. error message appears, perform the following operations:

  1. Log in to the ‘root’ user on your server.

  2. Modify this file:

    /etc/my.cnf
  3. Add these lines to the file:

    [mysqld]
    innodb_file_per_table=1
    
  4. Restart mysql service:

    # systemctl restart mysql
    
  5. Click on Refresh.

The Centreon setup wizard configures the databases. Click on Next.

../_images/adbconf.png

At this point, you will be able to install the Centreon server modules.

Click on Install.

../_images/module_installationa.png

Once installation is complete, click on Next.

../_images/module_installationb.png

At this point, an advertisement informs you of the latest Centreon news and products. If your platform is connected to the internet, you will receive the up-to-date information. If you are not online, only information on the current version will be displayed.

../_images/aendinstall.png

The installation is complete. Click on Finish.

You can now log in.

../_images/aconnection.png

You can change the default language of the web interface:

  1. Click on your profile on the top right of the banner
  2. Click on Edit profile
  3. Select your language in the **Language* field
  4. Click on Save
../_images/alanguage.png

To start the monitoring engine :

  1. On your web interface, go to Configuration ==> Pollers.

  2. Keep the default options and click on Export configuration.

  3. Select Central poller from the box input Pollers.

  4. Uncheck Generate Configuration Files and Run monitoring engine debug (-v).

  5. Check Move Export Files and Restart Monitoring Engine with option Restart selected.

  6. Click on Export again.

  7. Log in to the ‘root’ user on your server.

  8. Start Centreon Broker

    # systemctl start cbd
    
  9. Start Centreon Engine

    # systemctl start centengine
    
  10. Start centcore

    # systemctl start centcore
    
  11. Start centreontrapd

    # systemctl start centreontrapd
    

Monitoring is now working. You can begin monitoring your IT system!

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

# systemctl enable centcore
# systemctl enable centreontrapd
# systemctl enable cbd
# systemctl enable centengine

The Centreon web interface contains several menus, each with a specific function:

../_images/amenu.png
  • Home lets you access the first home screen after logging in. It provides a summary of overall monitoring status.
  • Monitoring provides a combined view of the status of all monitored items in real and delayed time using logs and performance graphics.
  • Reporting provides an intuitive view (using diagrams) of the evolution of monitoring over a given period.
  • Configuration allows you to configure all monitored items and the monitoring infrastructure.
  • Administration allows you to configure the Centreon web interface and view the overall status of the servers.

Quick and easy monitoring configuration

Centreon is a highly versatile monitoring solution that can be configured to meet the specific needs of your IT infrastructure. To quickly configure Centreon and help you get started, you may want to use Centreon IMP. This tool provides you with Plugin Packs, which are bundled configuration templates that will dramatically reduce the time needed to implement the Centreon platform for monitoring the services in your network.

Centreon IMP requires the Centreon License Manager and Centreon Plugin Pack Manager in order to function.

If you haven’t installed any modules during the installation process, go to the Administration > Extensions > Modules menu.

Click on Install/Upgrade all and validate.

../_images/install_imp_1.png

Once the installation is complete, click on Back. The modules are now installed.

../_images/install_imp_2.png

Now proceed to Configuration -> Plugin packs -> Manager. 10 free Plugin Packs are provided to get you started. Five additional Packs are available once you register and over 150 more if you subscribe to the IMP offer (for more information: our website).

../_images/install_imp_3.png

You can continue to configure your monitoring system with Centreon IMP by following the instructions in this guide.