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


45 Replies to “DevOps training, Lecture #1 GIT Basics”

  1. Juicing your fruits and vegetables is really a great
    solution to cleanse your body and produce positive changes to energy
    phases. Not only can you lose excess weight but seek it .

    also assist with prevent selection of of illness issues by consuming freshly made juices.
    Wheatgrass is a trendy and choice; make
    use of is brimming with vitamins, minerals and aminos to cleanse and vitalize
    your body. It is a natural food much more derived off of the wheat

  2. Just desire to say your article is as amazing.
    The clarity in your post is simply great and i can assume you are an expert on this subject.
    Well with your permission let me to grab your RSS
    feed to keep up to date with forthcoming post. Thanks a million and please
    carry on the rewarding work.

  3. When I originally left a comment I appear to
    have clicked the -Notify me when new comments are added- checkbox and from now on every time a comment is added I
    receive 4 emails with the exact same comment. Perhaps there is an easy method you can remove me from that service?


  4. Awesome blog you have here but I was curious if you knew of any user discussion forums that cover the same topics talked
    about here? I’d really love to be a part of online community where I
    can get responses from other experienced individuals that share the same interest.
    If you have any suggestions, please let me know. Many thanks!

  5. I think this is among the most significant
    information for me. And i’m glad reading your article.
    But should remark on slme general things,
    The weeb site style is wonderful, the articles is really excellent :
    D. Good job, cheers

  6. I’m truly enjoying the design and layout of your site.
    It’s a very easy on the eyes which makes it much more pleasant
    for me to come here and visit more often. Did you hire out a designer to create your theme?

    Fantastic work!

  7. IT услуги, обслуживание офиса, компьютерных сетей ✓ Комплексный подход, выгодные цены,
    гарантия качества ☎ (044) 536-25-40, (098) 996-25-40

  8. Just desire to say your article is as astounding. The clarity in your publish is just nice and i can suppose you’re knowledgeable in this subject.

    Well with your permission let me to grasp your RSS feed to stay updated with drawing close post.
    Thank you one million and please keep up the enjoyable

  9. Hello! This is my first visit to your blog! We are a group
    of volunteers and starting a new project in a community in the same niche.

    Your blog provided us valuable information to work on. You have done a wonderful job!

  10. I think what you said made a great deal of sense. But, what about this?
    suppose you wrote a catchier post title? I am not saying your information isn’t solid, however suppose you added a title that grabbed folk’s attention? I mean The future of blockchain — how will the distributed ledger technology change financial services?

    – Open Source Educational Network is a little vanilla.
    You might look at Yahoo’s front page and see how they create
    post headlines to get viewers to click. You
    might try adding a video or a picture or two to grab readers excited about everything’ve written. In my opinion, it could
    make your website a little bit more interesting.

  11. I absolutely love your blog and find a lot of your
    post’s to be just what I’m looking for. can you
    offer guest writers to write content to suit your
    needs? I wouldn’t mind writing a post or elaborating on some
    of the subjects you write about here. Again, awesome site!

  12. Ꭻust deѕirе to say your ɑrtiϲle is as amazing.
    Ꭲhe clarity in your post іs simply nice and i c᧐uld assume you’re an expert on this
    subject. Fine with your permіssiߋn allow me to grab your RSS
    feеd to keep up tо date with forthcoming post. Thanks a
    million and please carry on the rewarding work.

  13. IT услуги, обслуживание офиса, компьютерных
    сетей ✓ Комплексный подход, выгодные цены, гарантия качества ☎ (044) 536-25-40, (098) 996-25-40

  14. I know this if off topic but I’m looking into starting my own blog and was wondering what all is needed to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet smart so I’m not 100% positive. Any suggestions or advice would be greatly appreciated.
    Many thanks

  15. Hey there, I think your site might be having browser compatibility issues.
    When I look at your blog in Ie, it looks fine but when opening
    in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up!

    Other then that, awesome blog!

Leave a Reply

Your email address will not be published.