Icinga Web 2 is a web-based application that comes along with Icinga2. In this post, we show how to install Icinga Web 2 on CentOS 8.
Install icinga2 web2
After we installed the icinga2 successfully, we need to install the Icinga Web 2, Web interface of Icinga2.
Install PHP and PHP Extensions
Install the PHP extension required by the Icinga Web2 with the below command.
Install Icinga Web 2
To install the Icinga Web 2 package along with Icinga CLI and Apache web service.
Start the Apache web server and PHP FPM, and enable it to start when the server boot.
Create a database for Icinga web 2
Login into MariaDB sever. Please take note of this database information, we will use it when setting up Icinga Web 2.
SELinux
Firewall
Setup Icinga Web 2
The newly generated setup token is: 500ee69ca39cfb89
Conclusion
Icinga Web 2 is a web-based application used as Icinga2 GUI for viewing the device status, service status, etc. You may also like:
Install icinga2 web2
After we installed the icinga2 successfully, we need to install the Icinga Web 2, Web interface of Icinga2.
Install PHP and PHP Extensions
Install the PHP extension required by the Icinga Web2 with the below command.
dnf install -y php php-json php-xml php-intl php-common php-pdo php-mysqlnd php-cli php-mbstring php-fpm php-gd php-zip php-ldap
Install Icinga Web 2
To install the Icinga Web 2 package along with Icinga CLI and Apache web service.
dnf install -y icingaweb2 icingacli httpd
Start the Apache web server and PHP FPM, and enable it to start when the server boot.
systemctl start httpd
systemctl start php-fpm
systemctl enable httpd
systemctl enable php-fpm
systemctl start php-fpm
systemctl enable httpd
systemctl enable php-fpm
Create a database for Icinga web 2
Login into MariaDB sever. Please take note of this database information, we will use it when setting up Icinga Web 2.
CREATE DATABASE icingaweb2db;
grant all privileges on icingaweb2db.* to icingaweb2@localhost identified by 'icinga123';
quit;
grant all privileges on icingaweb2db.* to icingaweb2@localhost identified by 'icinga123';
quit;
SELinux
dnf install -y icingaweb2-selinux
Firewall
firewall-cmd --permanent --add-service=http
firewall-cmd --reload
firewall-cmd --reload
Setup Icinga Web 2
icingacli setup token create
The newly generated setup token is: 500ee69ca39cfb89
Conclusion
Icinga Web 2 is a web-based application used as Icinga2 GUI for viewing the device status, service status, etc. You may also like: