How to Install and Configure Icinga 2 / Icinga Web 2 on CentOS 7 and RHEL 7

13 Responses

  1. krishnareddy says:

    Hi i am krishna, i am seeting up a clustering with 2 nodes on RHEL 7.1 OS. I have an application(exe) which shall runs shell script which in-turn runs multiple binary executables which records audio/video files from hardware through ethernet” in active node. When active node fails then i want to send the notification event about active node state to the other node saying to start recording audio/video files.

    My problem is how to send notification about failure of a active node and its state????

  2. Mazhar says:

    Hi Pradeep,
    thank you for writting the post, successfully installed icinga2 by following all steps in this post.

  3. Adrian says:

    Very good tutorial thanks for You.

  4. Ralf says:

    Hi Pradeep,

    thank you very much for this post. The whole installation was successfull. This tutorial was very good.


  5. steve says:

    Thank you so much for this post Pradeep! I needed to quickly build a test Icinga server to learn how to use it and this was SO HELPFUL and I got the server built in about 15 minutes. Now I can focus on adding nodes, monitors, etc. Thanks!!

  6. Martin says:

    There is one step missing. After installation of icinga2 it is neccesary to enable command feature of icinga2 in order to receive commands from icinga web. Please add this command to your tutorial:

    “icinga2 feature enable command”

    • Karthik VR says:

      I get the error – “icinga2: Can’t send external Icinga command to the local command file “/var/run/icinga2/cmd/icinga2.cmd”: Permission denied.” even after enabling the icinga2 (icinga2 feature enable command)

      Any suggestions please??

  7. Karthik VR says:

    Hi Pradeep.. Thanks a ton for the article. The steps were clean and clear. I was able to follow every step and concluded the installation. I get an error of http but when I try to ack the same, i get the following error – “icinga2: Can’t send external Icinga command to the local command file “/var/run/icinga2/cmd/icinga2.cmd”: Permission denied.”

    Can you please let me know the resolution? Thanks in advance..

  8. Robert H says:

    Hi Pradeep,

    Thank you for putting this together!

    I did find one thing missing in your instructions that I think is critical.

    Somewhere before you restart and enable services (“Now restart apache, icinga2 & fpm services, & enable them for boot,”) it appears that you skipped installing Icinga2. I remedied this by simply installing Icinga2

    yum install icinga2

    Thanks, and I hope this helps someone! 🙂

  9. Pradeepan says:

    Hello Expertises , I have the below error in the section “Monitoring IDO Resource” as below and Pls help me to resolve

    There is currently no icinga instance writing to the IDO. Make sure that a icinga instance is configured and able to write to the IDO.
    Validation Log

    Connection to icinga as icinga on localhost:3306 successful
    have_ssl: DISABLED
    protocol_version: 10
    version: 5.5.60-MariaDB
    version_compile_os: Linux

    Its all under below config
    [[email protected] ~]$ sudo vi /etc/icinga2/features-available/ido-mysql.conf
    * The db_ido_mysql library implements IDO functionality
    * for MySQL.
    library “db_ido_mysql”
    object IdoMysqlConnection “ido-mysql” {
    user = “icinga”
    password = “icinga”
    host = “localhost”
    database = “icinga”

    • Ernie says:

      make sure your /etc/icinga2/features-available/ido-mysql.conf belongs to the user icinga (or icinga2 or nagios, check the others in the folder)
      chown icinga:icinga ido-mysql.conf
      then icinga2 feature enable ido-mysql
      then service icinga2 restart
      fixed!? 🙂

  10. Khushal Bisht says:

    Hi Ernie,

    This solution working fine.

    Thanks, and I hope this helps someone! 🙂

Leave a Reply

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