{"id":899,"date":"2018-10-12T17:58:05","date_gmt":"2018-10-12T14:58:05","guid":{"rendered":"http:\/\/kifarunix.com\/?p=899"},"modified":"2024-03-11T20:08:33","modified_gmt":"2024-03-11T17:08:33","slug":"how-to-install-icinga-2-and-icinga-web-2-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-install-icinga-2-and-icinga-web-2-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install Icinga 2 and Icinga Web 2 on Ubuntu 18.04 LTS"},"content":{"rendered":"\n<p>In this tutorial, we are going to learn how to install Icinga 2 and Icinga Web 2 on Ubuntu 18.04 LTS. <a href=\"https:\/\/icinga.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Icinga<\/a> 2 is an open source monitoring system which checks the availability of your network resources (CPU load, uptime, free disk space, memory consumption), notifies users of outages and generates performance data for reporting. It is scalable and therefore it can be used to monitor large, complex environments across multiple locations.<\/p>\n\n\n\n<p>It has a<span class=\"st\"> lightweight and extensible web interface called Icinga Web 2 that enables you to visualize and keep an eye on your environment.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-install-icinga-2-and-icinga-web-2-on-ubuntu-18-04-lts\">Installing Icinga 2 and Icinga Web 2 on Ubuntu<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installing-icinga-package-repositories\">Installing Icinga Package Repositories<\/h3>\n\n\n\n<p>You need to install Icinga package repository;<\/p>\n\n\n\n<pre id=\"block-38f1a0b7-e13b-48a5-b6b3-63e28c95598d\" class=\"wp-block-code\"><code>apt -y install apt-transport-https<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>wget -O - https:\/\/packages.icinga.com\/icinga.key | apt-key add -<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"deb http:\/\/packages.icinga.com\/ubuntu icinga-bionic main\" &gt; \/etc\/apt\/sources.list.d\/icinga2.list\necho \"deb-src http:\/\/packages.icinga.com\/ubuntu icinga-bionic main\" &gt;&gt; \/etc\/apt\/sources.list.d\/icinga2.list<\/code><\/pre>\n\n\n\n<p>Next, run system update.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-icinga-2-on-ubuntu-18-04-lts\">Install Icinga 2 on Ubuntu 18.04 LTS<\/h2>\n\n\n\n<p>Now that the repositories are ready, run the command below to install Icinga 2.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install icinga2 -y<\/code><\/pre>\n\n\n\n<p>The basic installation of icinga 2 enables the following features;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>checker<\/code> for executing checks<\/li>\n\n\n\n<li><code>mainlog<\/code> for writing the <code>icinga2.log<\/code> file<\/li>\n\n\n\n<li><code>notification<\/code> for sending notifications<\/li>\n<\/ul>\n\n\n\n<p>You can verify that these features are enabled by running the command:<\/p>\n\n\n\n<pre id=\"block-0a56a38e-c656-4d2e-8a66-1cd99c0397c1\" class=\"wp-block-code\"><code>icinga2 feature list | grep -i enabled<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"setting-up-check-plugins\">Install Icinga 2 Monitoring Plugins<\/h3>\n\n\n\n<p>In order for Icinga 2 to monitor system metrics such as load averages, processes, or disk space usage or any other system remote checks, it requires the check plugins. Run the command below to install the check plugins.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install monitoring-plugins -y<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"run-icinga-2\">Run Icinga 2<\/h3>\n\n\n\n<p>Now that you have installed icinga 2 and its monitoring plugins, set icinga2 service to start on system reboot. Note that by default, icinga2 starts automatically after installation.<\/p>\n\n\n\n<p>You can check the status using the command below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status icinga2<\/code><\/pre>\n\n\n\n<p>If for some reason it is not running, start by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl start icinga2<\/code><\/pre>\n\n\n\n<p>Enable it to start on system reboot<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable icinga2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-icinga-web-2-ob-ubuntu-18-04\">Install Icinga Web 2 ob Ubuntu 18.04<\/h2>\n\n\n\n<p>Icinga 2 can be used with Icinga Web 2, a powerful PHP framework for web applications that comes in a clean and reduced design. It\u2019s fast, responsive, accessible and easily extensible with modules.<\/p>\n\n\n\n<p>In order to install and setup Icinga Web 2, ensure that the following prerequisites are met.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IDO (Icinga Data Output) database backend (MySQL or PostgreSQL)<\/li>\n\n\n\n<li>A web server, e.g. Apache or Nginx<\/li>\n\n\n\n<li>PHP version &gt;= 5.6.0<\/li>\n\n\n\n<li>PHP modules must be installed: cURL, gettext, intl, mbstring, OpenSSL and xml<\/li>\n\n\n\n<li>Default time zone configured for PHP in the php.ini file<\/li>\n\n\n\n<li>MySQL or PostgreSQL PHP libraries<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-db-ido-mysql\">Configure DB IDO MySQL<\/h3>\n\n\n\n<p>The DB IDO module for Icinga 2 takes care of exporting all the configuration and status information to the database. The supported database backends include MySQL\/MariaDB and PostgreSQL.<\/p>\n\n\n\n<p>In this tutorial, we will be using MariaDB as our database backend.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-mysql-database-server-on-ubuntu-18-04\">Installing MySQL database server on Ubuntu 18.04<\/h4>\n\n\n\n<p>In this tutorial, we are going to use MariaDB. To install MariaDB, run the command below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install mariadb-server mariadb-client -y<\/code><\/pre>\n\n\n\n<p>Once the installation is done, run the following command to improve the security of your MySQL\/MariaDB installation by maybe setting root password and removing test databases, anonymous-user accounts, disallowing remote root login.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql_secure_installation<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-the-ido-modules-for-mysql\">Installing the IDO modules for MySQL<\/h4>\n\n\n\n<p>Since we have enabled Icinga 2 repositories above, run the command below to install IDO modules.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install icinga2-ido-mysql -y<\/code><\/pre>\n\n\n\n<p>During installation, the database configuration wizard will prompt you to set some configurations.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The first prompt asks you whether to enable Icinga 2&#8217;s ido-mysql feature. Select <strong>Yes<\/strong> to enable this feature.<\/li>\n<\/ul>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/configure-icinga2-ido-mysql.png\" class=\"td-modal-image\"><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"877\" height=\"343\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/configure-icinga2-ido-mysql.png\" alt=\"How to Install Icinga 2 and Icinga Web 2 on Ubuntu 18.04 LTS\" class=\"wp-image-11640\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/configure-icinga2-ido-mysql.png?v=1645205787 877w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/configure-icinga2-ido-mysql-768x300.png?v=1645205787 768w\" sizes=\"(max-width: 877px) 100vw, 877px\" \/><\/figure><\/div><\/a><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The second prompt asks you whether to Configure database for icinga2-ido-mysql with dbconfig-common. Select <strong>Yes<\/strong> to accept this.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1892\" height=\"428\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/configure-ido-mysql-dbconfig.png\" alt=\"\" class=\"wp-image-11641\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/configure-ido-mysql-dbconfig.png?v=1645205843 1892w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/configure-ido-mysql-dbconfig-768x174.png?v=1645205843 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/configure-ido-mysql-dbconfig-1536x347.png?v=1645205843 1536w\" sizes=\"(max-width: 1892px) 100vw, 1892px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>The third prompt asks you to set Icinga database password. Set a secured password and save it for later use.<\/strong><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"enabling-the-ido-mysql-module\">Enable the IDO MySQL Feature<\/h4>\n\n\n\n<p>To enable ido-mysql feature in the backend, run the command below. ou can also enable a command feature that enables you to manual health checks from the Icinga 2 Web Interface.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>icinga2 feature enable ido-mysql command<\/code><\/pre>\n\n\n\n<p>The ido-mysql configuration file is <strong>\/etc\/icinga2\/features-available\/ido-mysql.conf<\/strong>. You can view the contents of this file by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>less \/etc\/icinga2\/features-available\/ido-mysql.conf<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\n\/**\n * The db_ido_mysql library implements IDO functionality\n * for MySQL.\n *\/\n\nlibrary \"db_ido_mysql\"\n\nobject IdoMysqlConnection \"ido-mysql\" {\n  user = \"icinga2\",\n  password = \"SECUREDPASS\",\n  host = \"localhost\",\n  database = \"icinga2\"\n}\n<\/code><\/pre>\n\n\n\n<p>Restart Icinga 2 for these changes to take effect.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart icinga2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installing-icinga-web-2\">Install Icinga Web 2 on Ubuntu 18.04<\/h3>\n\n\n\n<p>Run the command below to install Icinga 2 and its command utility, icingacli. Note that Icinga will install and set up Apache web server by default as well as PHP all the PHP modules required for Icinga Web 2 to run.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install icingaweb2 icingacli -y<\/code><\/pre>\n\n\n\n<p>Once the installation is done, you need set a timezone to be set for the PHP environment, so edit the PHP config file, <strong>\/etc\/php\/7.2\/apache2\/php.ini<\/strong> and set timezone as follows<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/php\/7.2\/apache2\/php.ini<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\n<strong>...<\/strong>\n[Date]\n; Defines the default timezone used by the date functions\n; http:\/\/php.net\/date.timezone\n;date.timezone =\n<strong>date.timezone = Africa\/Nairobi\n...<\/strong>\n<\/code><\/pre>\n\n\n\n<p>Restart the Apache service to effect the changes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart apache2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-icinga-web-2-database\">Create Icinga Web 2 Database<\/h3>\n\n\n\n<p>Login to MariaDB and create a database and database user for Icinga Web 2;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>create database icingawebusers;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>grant all privileges on icingawebusers.* to <strong>icingaadmin<\/strong>@localhost identified by 'SECUREDPASS';<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>flush privileges\nquit<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"setup-icinga-web-2-on-ubuntu-18-04\">Setup Icinga Web 2 on Ubuntu 18.04<\/h3>\n\n\n\n<p>Most of the Icinga Web 2 configurations will be done from the User Interface but before we get there, set up the Icinga authentication token.<\/p>\n\n\n\n<p>To generate the token, run the following command.<\/p>\n\n\n\n<pre id=\"block-fcc81bd2-0fcb-4bda-97a7-a235722f58e4\" class=\"wp-block-code\"><code> icingacli setup token create<\/code><\/pre>\n\n\n\n<p>Sample output<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>The newly generated setup token is: <strong>99b7614f6f1bf89e<\/strong><\/code><\/pre>\n\n\n\n<p>Once you have the authentication token, navigate to the browser and access Icinga web 2 using the url, <strong>http:\/\/&lt;ip-of-icinga-server&gt;\/icingaweb2\/setup <\/strong>so as to finalize the configurations.<\/p>\n\n\n\n<p>Enter your authentication token generated and click next to proceed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1309\" height=\"634\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/icinga-token-1.png\" alt=\"Install Icinga 2 and Icinga Web 2 on Ubuntu\" class=\"wp-image-11608\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/icinga-token-1.png?v=1645107777 1309w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/icinga-token-1-768x372.png?v=1645107777 768w\" sizes=\"(max-width: 1309px) 100vw, 1309px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/icinga-token-1.png\"><\/a>Choose Icinga 2 modules to enable. In this tutorial, we go with the defaults with monitoring modules only enabled.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1305\" height=\"395\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/enable-modules-1.png\" alt=\"\" class=\"wp-image-11609\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/enable-modules-1.png?v=1645107823 1305w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/enable-modules-1-768x232.png?v=1645107823 768w\" sizes=\"(max-width: 1305px) 100vw, 1305px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/enable-modules-1.png\"><\/a>On the next page, the setup wizards verifies if all the required PHP modules are in place.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1306\" height=\"586\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/php-modules.png\" alt=\"\" class=\"wp-image-11610\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/php-modules.png?v=1645107862 1306w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/php-modules-768x345.png?v=1645107862 768w\" sizes=\"(max-width: 1306px) 100vw, 1306px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/php-modules.png\"><\/a>If all is well, click Next to proceed, otherwise install any missing PHP extensions and proceed with setup.<\/p>\n\n\n\n<p>Choose the mode of authentication. We use database authentication in this demo.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/authentication-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1311\" height=\"307\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/authentication-1.png\" alt=\"\" class=\"wp-image-11611\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/authentication-1.png?v=1645107887 1311w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/05\/authentication-1-768x180.png?v=1645107887 768w\" sizes=\"(max-width: 1311px) 100vw, 1311px\" \/><\/a><\/figure>\n\n\n\n<p>Configure<strong> Icinga 2 Web database<\/strong> connection settings. Click Validate Configuration to test connection to database.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1289\" height=\"653\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icingaweb2-db.png\" alt=\"\" class=\"wp-image-11612\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icingaweb2-db.png?v=1645107915 1289w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icingaweb2-db-768x389.png?v=1645107915 768w\" sizes=\"(max-width: 1289px) 100vw, 1289px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icingaweb2-db.png\"><\/a>Choose authentication backend database.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1304\" height=\"253\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/auth-backend.png\" alt=\"\" class=\"wp-image-11613\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/auth-backend.png?v=1645107947 1304w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/auth-backend-768x149.png?v=1645107947 768w\" sizes=\"(max-width: 1304px) 100vw, 1304px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/auth-backend.png\"><\/a><\/p>\n\n\n\n<p>Create Icinga Web 2 administrative user.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1309\" height=\"363\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/web-administrative.png\" alt=\"\" class=\"wp-image-11614\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/web-administrative.png?v=1645107969 1309w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/web-administrative-768x213.png?v=1645107969 768w\" sizes=\"(max-width: 1309px) 100vw, 1309px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/web-administrative.png\"><\/a>Choose your application configuration settings.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2web-application.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1309\" height=\"583\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2web-application.png\" alt=\"\" class=\"wp-image-11615\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2web-application.png?v=1645107993 1309w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2web-application-768x342.png?v=1645107993 768w\" sizes=\"(max-width: 1309px) 100vw, 1309px\" \/><\/a><\/figure>\n\n\n\n<p>Icinga Web 2 application configuration summary.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1313\" height=\"411\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/conf-summary.png\" alt=\"\" class=\"wp-image-11616\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/conf-summary.png?v=1645108011 1313w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/conf-summary-768x240.png?v=1645108011 768w\" sizes=\"(max-width: 1313px) 100vw, 1313px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/conf-summary.png\"><\/a>Click Next,Next to proceed. Configure Icinga Web 2 monitoring module.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1321\" height=\"329\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/mon-modules.png\" alt=\"\" class=\"wp-image-11617\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/mon-modules.png?v=1645108026 1321w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/mon-modules-768x191.png?v=1645108026 768w\" sizes=\"(max-width: 1321px) 100vw, 1321px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/mon-modules.png\"><\/a>Configure Icinga 2 Database connection settings.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1085\" height=\"608\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2-db.png\" alt=\"\" class=\"wp-image-11618\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2-db.png?v=1645108046 1085w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2-db-768x430.png?v=1645108046 768w\" sizes=\"(max-width: 1085px) 100vw, 1085px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2-db.png\"><\/a>If upon validating the configuration you get the error, <code><strong>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.<\/strong><\/code>, it simply means ido-mysql feature is not enabled. Enable it and restart Icinga 2.<\/p>\n\n\n\n<p>Configure Icinga Transport commands. Read more on&nbsp;<a href=\"https:\/\/icinga.com\/docs\/icingaweb2\/latest\/modules\/monitoring\/doc\/05-Command-Transports\/\" target=\"_blank\" rel=\"noreferrer noopener\">Icinga web 2 command transport<\/a>. Provide the API credentials set before.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1857\" height=\"773\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icingaweb2-api.png\" alt=\"\" class=\"wp-image-11623\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icingaweb2-api.png?v=1645111710 1857w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icingaweb2-api-768x320.png?v=1645111710 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icingaweb2-api-1536x639.png?v=1645111710 1536w\" sizes=\"(max-width: 1857px) 100vw, 1857px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icingaweb2-api.png\"><\/a>Configure your <a href=\"https:\/\/icinga.com\/docs\/icingaweb2\/latest\/modules\/monitoring\/doc\/10-Restrict-Custom-Variables\/\" target=\"_blank\" rel=\"noreferrer noopener\">protected Custom Variables<\/a> and click next then finish Icinga web 2 setup.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga-mon-security.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1314\" height=\"256\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga-mon-security.png\" alt=\"\" class=\"wp-image-11620\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga-mon-security.png?v=1645108209 1314w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga-mon-security-768x150.png?v=1645108209 768w\" sizes=\"(max-width: 1314px) 100vw, 1314px\" \/><\/a><\/figure>\n\n\n\n<p>Check the summary and click Finish the setup.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1872\" height=\"717\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga-web-summary.png\" alt=\"\" class=\"wp-image-11624\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga-web-summary.png?v=1645111845 1872w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga-web-summary-768x294.png?v=1645111845 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga-web-summary-1536x588.png?v=1645111845 1536w\" sizes=\"(max-width: 1872px) 100vw, 1872px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga-web-summary.png\"><\/a>Icinga Web 2 is now setup. Click <code>Login to Icinga Web 2<\/code> and login using the admin credentials created during the installation.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1813\" height=\"921\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2-web-login.png\" alt=\"\" class=\"wp-image-11625\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2-web-login.png?v=1645112024 1813w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2-web-login-768x390.png?v=1645112024 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/02\/icinga2-web-login-1536x780.png?v=1645112024 1536w\" sizes=\"(max-width: 1813px) 100vw, 1813px\" \/><\/figure>\n\n\n\n<p>Icinga 2 monitoring dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone wp-image-930 size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1725\" height=\"596\" src=\"http:\/\/kifarunix.com\/wp-content\/uploads\/2018\/10\/icinga2-web-dashboard.png\" alt=\"\" class=\"wp-image-930\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2018\/10\/icinga2-web-dashboard.png 1725w, https:\/\/kifarunix.com\/wp-content\/uploads\/2018\/10\/icinga2-web-dashboard-768x265.png 768w\" sizes=\"(max-width: 1725px) 100vw, 1725px\" \/><figcaption class=\"wp-element-caption\">Icinga Web 2 Dashboard<\/figcaption><\/figure>\n\n\n\n<p>Magnificent!! You have made it. Icinga Web 2 Dashboard is now all yours for exploration.<\/p>\n\n\n\n<p>In our next tutorial, we will learn how to monitor hosts and services with Icinga2. Stay connected.<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-monitor-hosts-and-services-with-icinga-2-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Monitor Remote Linux Hosts and Services with Icinga 2<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"other-tutorials\">Other Tutorials<\/h3>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to learn how to install Icinga 2 and Icinga Web 2 on Ubuntu 18.04 LTS. Icinga 2 is an<\/p>\n","protected":false},"author":1,"featured_media":11626,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[72,121,179],"tags":[4608,181,4607,180,4605,4606,74],"class_list":["post-899","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monitoring","category-howtos","category-icinga","tag-icinga-ubuntu","tag-icinga-web-2","tag-icinga-web-2-ubuntu","tag-icinga2","tag-install-icinga-2-ubuntu-18-04","tag-install-icinga-web-2-ubuntu-18-04","tag-monitoring","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/899"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=899"}],"version-history":[{"count":9,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/899\/revisions"}],"predecessor-version":[{"id":21040,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/899\/revisions\/21040"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/11626"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}