Icinga Web 2 installation and configuration on Linux

We can install Icinga Web 2 directly from Icinga Repository which we already added in our previous article for installing Icinga 2 also read Adding Icinga2 Remote Linux Host. The additional package icingacli is necessary on RPM based systems which will help to built the Web interface. In DEB based systems, the icingacli binary is included in the icingaweb2 package.

Alternatively you can install other network monitoring tools such as Zabbix, Monitorix, Cacti, Munin & Nagios.

1) Install IcingaWeb2 Packages

Install IcingaWeb2 Packages on Ubuntu, Mint, Debian, Fedora, CentOS, RHEL, suse & openSUSE.

# Prerequisite (Modules) For Icingaweb2 DEB based system #
# apt-get install php5-json php5-gd php5-imagick php5-pgsql php5-intl php5-cli php5-common php5-mysql

# Prerequisite (Modules) For Icingaweb2 RPM based system (For Fedora 22 later system add dnf instead of yum) #
# yum install php-gd php-intl php-ZendFramework php-pear php-pdo php-soap php-ldap php-cli php-common php-devel php-mbstring php-mysql php-xml

# For CentOS/RHEL/Fedora 21 and older #
# yum install icingaweb2 icingacli

# For CentOS/RHEL/Fedora 22 and later #
# dnf install icingaweb2 icingacli

# Debian based Systems #
# apt-get install icingaweb2

# openSUSE & suse Systems #
# zypper install icingaweb2 icingacli

2) Generate Authenticate token

To generate authenticate token for Icinga Web 2, use the below command.

# Generate Authenticate token #
# icingacli setup token create

# To get Generate Authenticate token #
# icingacli setup token show

3) Setup Icinga Web 2 Interface

Navigate your browser to http://localhost/icingaweb2/setup or http://IP-Address/icingaweb2/setup or http://Domain-Name/icingaweb2/setup which will launch Icinga Web 2 setup wizard and past the Generate Authenticate token, then hit Next button to move forward.
install-icinga-web2-centos-rhel-fedora-1
Module Selection By default Monitoring module selected which is core module for icingaweb. Simple hit Next button.
install-icinga-web2-centos-rhel-fedora-2

10 Comments on “Icinga Web 2 installation and configuration on Linux”

  1. hi!
    thank tu for this manuel that present how to configure icingua 2;
    please now i need some help to do synchronisation Active directory and this icinga please
    how can i do??,

  2. Loaded plugins: priorities, update-motd, upgrade-helper
    No package icingaweb2 available.
    No package icingacli available.
    Error: Nothing to do

    Its in Amazon Linux. Any suggestions?

  3. THANK YOU VERY VERY MUCH!

    You say to open /etc/icinga2/features-available/ido-pgsql.conf but when using mysql, this should be /etc/icinga2/features-available/ido-mysql.conf

    Also, I had to manually create /etc/icingaweb2/modules/monitoring and chgrp it to icingaweb2, and set group write access to it
    mkdir /etc/icingaweb2/modules/monitoring
    chgrp icingaweb2 /etc/icingaweb2/modules/monitoring
    chmod g+w /etc/icingaweb2/modules/monitoring

Leave a Reply to 2daygeek Cancel reply

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