How To Setup Icinga Web 2 on CentOS 7 / RHEL 7

0

In the next screen, you can choose to enable the modules that were installed during the Icinga 2 installation. Click Next.

Setup Icinga Web 2 on CentOS 7 – Enable Icinga 2 Modules
Setup Icinga Web 2 on CentOS 7 – Enable Icinga 2 Modules

The following page shows the information about the system, time zone, and PHP extensions.

Setup Icinga Web 2 on CentOS 7 – PHP Extensions Status
Setup Icinga Web 2 on CentOS 7 – PHP Extensions Status
Setup Icinga Web 2 on CentOS 7 – PHP Extension Status
Setup Icinga Web 2 on CentOS 7 – PHP Extension Status
You may get a warning message for missing PHP Image Magic extension on RHEL 7.
Image Magic PHP extension is not available in RHSCL repository, so I had to install the same from CentOS repository. You either choose to install (which is against Redhat Policies) or proceed further without installing Image Magic PHP extension.
yum -y install http://mirror.centos.org/centos/7/sclo/x86_64/sclo/sclo-php71/sclo-php71-php-pecl-imagick-3.4.3-2.el7.x86_64.rpm
systemctl restart httpd
systemctl restart rh-php71-php-fpm

If there are any warnings or error for other PHP extensions, then install the required extensions and then click the Refresh button.

Otherwise, click Next.

In the next page, you need to tell how you want to authenticate when accessing Icinga Web 2. Icinga Web 2 supports Active Directory, LDAP, and Local as an authentication mechanism.

Here, we will create a local Icinga Web 2 user account. So, select the authentication type as Database and click Next.

Setup Icinga Web 2 on CentOS 7 - Authentication Type
Setup Icinga Web 2 on CentOS 7 – Authentication Type

Log in to MySQL server.

mysql -u root -p

Create a database for Icinga Web 2 to store authentication information.

CREATE DATABASE icingawebdb;
grant all privileges on icingawebdb.* to icingaweb@localhost identified by 'icinga123';
quit

Enter the database details in the following window and click Next.

Setup Icinga Web 2 on CentOS 7 - Icinga Web2 Auth Database
Setup Icinga Web 2 on CentOS 7 – Icinga Web2 Auth Database
You might also like