Centreon is a free Open Source auditing software that allows administrators to freely configure notifications depending on thresholds, create email alerts as well as add systems that should be monitored. Centreon also provides adjustable arrangement via the architects which are not similar. In this article, we’ll show you how to install Centreon on CentOS 7.
How to install Centreon on CentOS 7
To begin with the procedure on how to install, one should set up the necessary minor packages like the HTTPD and MariaDB. Hold y to proceed with the setup procedure.
yum install httpd mariadb-server –y
create a directory called mariadb.service.d/ in the path
mkdir -p /etc/systemd/system/mariadb.service.d/
Access the recently made directory by running the following command.
Create a conf file called limits.conf
Add the following lines
Save and exit.
Refresh the system with the following command
You can now start the httpd web server and mariadb database service
systemctl start mariadb httpd
Configure both httpd and mariadb services to start on boot
systemctl enable mariadb httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service. Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
Using wget command download download the centreon packages
--2018-04-18 14:41:26-- http://yum.centreon.com/standard/3.4/el7/stable/noarch/RPMS/centreon-release-3.4-4.el7.centos.noarch.rpm Resolving yum.centreon.com (yum.centreon.com)... 18.104.22.168, 22.214.171.124, 126.96.36.199, ... Connecting to yum.centreon.com (yum.centreon.com)|188.8.131.52|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4308 (4.2K) [application/x-redhat-package-manager] Saving to: ‘centreon-release-3.4-4.el7.centos.noarch.rpm’ 100%[==============================================================================================================================>] 4,308 --.-K/s in 0s 2018-04-18 14:41:26 (365 MB/s) - ‘centreon-release-3.4-4.el7.centos.noarch.rpm’ saved [4308/4308]
Install the dependent package of centreon using the command below
yum install --nogpgcheck centreon-release-3.4-4.el7.centos.noarch.rpm
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos, versionlock Examining centreon-release-3.4-4.el7.centos.noarch.rpm: centreon-release-3.4-4.el7.centos.noarch Marking centreon-release-3.4-4.el7.centos.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package centreon-release.noarch 0:3.4-4.el7.centos will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================== Installing: centreon-release noarch 3.4-4.el7.centos /centreon-release-3.4-4.el7.centos.noarch 3.1 k Transaction Summary ======================================================================================================================================================================== Install 1 Package Total size: 3.1 k Installed size: 3.1 k Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : centreon-release-3.4-4.el7.centos.noarch 1/1 Verifying : centreon-release-3.4-4.el7.centos.noarch 1/1 Installed: centreon-release.noarch 0:3.4-4.el7.centos
Install the centreon package by executing the install command as shown below
yum install centreon-base-config-centreon-engine centreon
Make the listed changes in the php-timezone.ini file and arrange the time zone of the application.
Afterward s Enable the snmpd and snmptrapd services by running the command below
systemctl enable snmpd snmptrapd
Created symlink from /etc/systemd/system/multi-user.target.wants/snmpd.service to /usr/lib/systemd/system/snmpd.service. Created symlink from /etc/systemd/system/multi-user.target.wants/snmptrapd.service to /usr/lib/systemd/system/snmptrapd.service.
Restart the HTTPD and MariaDB services.
systemctl restart httpd mariadb
Next, open your browser and go to your server’s IP address. Click on the centreon link. Press next to get to the installation wizard.
The page below comprises of dependent software with the centreon and click next.
This page demonstrates the monitoring engine information. Look at the requirements and move to the next.
Immediately it displays the Broker module information and press next option.
This page has the admin information. Complete the page with the necessary admin information and move to next.
Afterward, key in the database details and click next.
Have a look at the database information that is found in the wizard and click next.
The process of installing is complete. Promptly the centreon welcome page is displayed in the browser and click next.
The screen displays the login page is shown on the. Access the login credentials and click login.
The home page of centreon is as illustrated below.
Finally, the installation procedure of Centreon is complete.
Thank you for your time. In this article, we have demonstrated how you can install Centreon monitoring tool. Feel free to try out the commands as outlined.