How to install icingaweb2 in centos?

This post will show how to install icingaweb2 in centos server. This is second part. First part was about how to install icinga2 in centos server.

We are going to install icingaweb2 using mysql, therefore I assume we have already installed mysql. If not, then please install mysql first.

Installing the IDO modules for MySQL

# yum install icinga2-ido-mysql

Setting up the MySQL database

Set up a MySQL database for Icinga 2

# mysql -u root -p

mysql> CREATE DATABASE icinga;
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'icinga';
mysql> quit

After creating the database you can import the Icinga 2 IDO schema using the following command:

# mysql -u root -p icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql

Enabling the IDO MySQL module

We have to enable ido-mysql and api feature in icinga2. If you have followed first part then we have already done that

After enabling the ido-mysql and api feature you have to restart Icinga 2

RHEL/CentOS 7

# systemctl restart icinga2

RHEL/CentOS 6

# service icinga2 restart

Install icingaweb2

# yum install icingaweb2 icingacli

Browse icingaweb2 from browser and follow the instructions

ip/icingaweb2/setup

Leave a Reply

Your email address will not be published. Required fields are marked *