How to configure ICINGA2 Monitoring server on CentOS / RHEL 7

CentOS How To's Linux Monitoring

Before we start to configure ICINGA2 we need to ensure that LAMP is installed on our machine.


view /etc/selinux/config
sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config


NTP setup

yum install ntp
vi /etc/ntp.conf


systemctl start ntpd
 ntpq -p

yum install php-ldap

vi /etc/php.ini

date.timezone = Asia/Karachi
rpm -i
yum install icinga2
systemctl enable icinga2

systemctl start icinga2

systemctl status icinga2

mysql -u root -p

create database icinga;

 flush privileges;


yum install icinga2-ido-mysql

ls -l /usr/share/icinga2-ido-mysql/schema/

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


[root@localhost ~]#icinga2 feature list

if disable please enable using below command

[root@localhost ~]#icinga2 feature enable ido-mysql

[root@localhost ~]#icinga2 feature enable command

[root@localhost ~]#systemctl restart icinga2

[root@localhost ~]#yum install icingaweb2 icingacli
 [root@localhost ~]#chcon -R -t httpd_sys_rw_content_t /etc/icingaweb2/

[root@localhost ~]#systemctl restart httpd


Restart Icinga2:
# systemctl restart icinga2

Finaly you will want to add the apache user to the icingacmd group because the command pipe file is owned by that group:

# usermod -a -G icingacmd apache
Verify the apache user:
# id apache
uid=48(apache) gid=48(apache) groups=48(apache),992(icingacmd)
yum -y install icingaweb2 icingacli

icingacli setup token create

Now create new db for web interface

mysql -u root -p

create database icingaweb_db;

GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icingaweb_db.* TO 'icinga'@'localhost' IDENTIFIED BY 'pakistani@!';
 one level is icingaweb_db



On next level

After this we need to use  icinga on next database using user icinga

[root@localhost ~]#groupadd -r icingaweb2;

[root@localhost ~]#usermod -a -G icingaweb2 apache;
[root@localhost ~]#yum install icingacli

icingacli setup config directory --group icingaweb2;
icingacli setup token create;
The newly generated setup token is: b2e2769fe05552a2 copy token text and add to your token area
[root@localhost ~]#firewall-cmd --add-service=http
[root@localhost ~]# firewall-cmd --permanent --add-service=http

Now you need to open page


yum install nagios-plugins-all
touch /var/www/html/index.html

now setting clients on server

firewall-cmd --permanent --add-port=5665/tcp
firewall-cmd --permanent --add-port=5665/udp
firewall-cmd --reload

icinga2 node wizard


client side configuration

centos 7

rpm -i

yum install icinga2

now configure epel repo

rpm -ivh
yum install nagios-plugins-all

firewall-cmd --permanent --add-port=5665/tcp
firewall-cmd --permanent --add-port=5665/udp

firewall-cmd --reload

systemctl restart icinga2
[root@localhost ~]#firewall-cmd --add-service=http
[root@localhost ~]# firewall-cmd --permanent --add-service=http




    Excelleent website you hɑѵe һere Ƅut I was curious ɑbout іf you kneᴡ оf any message boards tһat cover the sаme topics discussed here?

    Ӏ’d гeally like tto bbe a part of grouρ ᴡhere I cаn get feed-Ƅack from
    otheг experienced individuals tһat share the samе
    interest. Ӏf yօu hzve any recommendations, рlease ⅼet me knoԝ.
    Apprecіate it!


    Hey! This is my first visit to your blog! We are a team
    of volunteers and starting a new project in a community in the same niche.
    Your blog provided us useful information to work on. You have done a extraordinary job!

  3. pussy

    Asking questions are actually good thing if you are not understanding something entirely, however this piece of writing provides pleasant understanding yet.

  4. en sonu

    Having read this I believed it was rather enlightening.

    I appreciate you finding the time and effort to put this
    article together. I once again find myself spending way too much time both reading and commenting.
    But so what, it was still worthwhile!

  5. Lords Mobile Hack

    hello there and thank you for your info ? I’ve certainly picked up something new from right
    here. I did however expertise a few technical points using this web site, as I experienced
    to reload the web site a lot of times previous to I could get it to load correctly.
    I had been wondering if your web host is OK? Not that I’m complaining,
    but slow loading instances times will often affect your placement in google and could
    damage your quality score if advertising and marketing
    with Adwords. Well I’m adding this RSS to my e-mail and could look out for a lot more of your respective
    fascinating content. Ensure that you update this
    again very soon.

  6. Aryton Sukienki

    Ciekawy artykuł, w sumie się z Tobą zgadzam, jednakże w niektórych aspektach
    bym się kłóciła. Na pewno Twój blog zasługuje na uznanie.
    Jestem pewna, że tu jeszcze wpadnę.

  7. prediksi skor akurat

    Heya are using WordPress for your blog platform? I’m new to the blog
    world but I’m trying to get started and set up my own. Do you need any coding knowledge to
    make your own blog? Any help would be really appreciated!

  8. hiv%infected%individuals%and%couples

    Ƭһe hеlp and support οf peoplee around addicts iѕ impoгtant for toо long term
    tips tо gеt ѕtarted on the dirrection to recovery: * Addiction іs not a ‘terminal’ disease.

    Ƭhere are plenty men who watch tһese guys doing theіr tһing on the
    watch’s screen ᥙsing a hᥙge penis then decide they wojld lik
    one the sasme as that. Now most of thе people
    who avoiɗ experience porn ɑnd attempt t᧐ resist ɑlways fail.

  9. are custom essays worth it

    I have been browsing on-line more than 3 hours today, yet I
    never found any fascinating article like yours. It is pretty price sufficient for me.
    In my view, if all website owners and bloggers made good content material as you probably did, the internet will
    be a lot more useful than ever before.

Comments are closed.