{"id":3936,"date":"2019-08-11T00:06:20","date_gmt":"2019-08-10T21:06:20","guid":{"rendered":"https:\/\/kifarunix.com\/?p=3936"},"modified":"2019-10-21T09:52:46","modified_gmt":"2019-10-21T06:52:46","slug":"install-icinga-web-2-on-debian-10-buster","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-icinga-web-2-on-debian-10-buster\/","title":{"rendered":"Install Icinga Web 2 on Debian 10 Buster"},"content":{"rendered":"\n<p>In this guide, we are going to learn how to install Icinga Web 2 on Debian 10 Buster as our continuation for our guide on how to <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-icinga-2-on-debian-10-buster\/\" target=\"_blank\">Install Icinga 2 on Debian 10 Buster<\/a>. Icinga Web 2 is a powerful PHP framework that provides web management interface for Icinga 2.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Icinga Web 2 on Debian 10 Buster<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Prerequisites<\/h4>\n\n\n\n<p>Icinga Web 2 requires Icinga 2 with IDO configured. Other requirements include a web server, PHP and some extensions, MySQL\/MariaDB or PostgreSQL. Run the command below to install these requirements before you can proceed.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install apache2 php php-{curl,gettext,intl,mbstring,xml,mysql} openssl<\/code><\/pre>\n\n\n\n<p>Note that we have already configured IDO and installed MariaDB server in our <a href=\"https:\/\/kifarunix.com\/install-icinga-2-on-debian-10-buster\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"previous guide (opens in a new tab)\">previous guide<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install Icinga Web 2 APT Repository<\/h4>\n\n\n\n<p>If you have followed our previous guide on installing Icinga 2 on Debian 10 Buster, then Icinga 2 apt repos have been installed. Otherwise, you can install the repos by running the commands below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install -y apt-transport-https wget gnupg<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget -O - https:\/\/packages.icinga.com\/icinga.key | apt-key add -<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"deb https:\/\/packages.icinga.com\/debian icinga-buster main\" &gt; \/etc\/apt\/sources.list.d\/icinga.list\necho \"deb-src https:\/\/packages.icinga.com\/debian icinga-buster main\" &gt;&gt; \/etc\/apt\/sources.list.d\/icinga.list<\/code><\/pre>\n\n\n\n<p>Run system package update.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Install Icinga 2 Web<\/h4>\n\n\n\n<p>Install Icinga 2 web and CLI management packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install icingaweb2 icingacli<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"preparing-web-setup\">Prepare Icinga 2 Web Setup<\/h4>\n\n\n\n<p>Icinga web setup requires authentication using tokens. To generate the authentication token, run the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>icingacli setup token create<\/code><\/pre>\n\n\n\n<p>This will generate such a token as:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>The newly generated setup token is: <strong>b5acfsae3f618eae<\/strong><\/code><\/pre>\n\n\n\n<p>You can always display the taken using the command;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>icingacli setup token show<\/code><\/pre>\n\n\n\n<p>Also, ensure that the <strong>icingaweb2<\/strong> system group exists and that the web server user, <strong>www-data<\/strong>, is a member of the group.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>id www-data<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>uid=33(www-data) gid=33(www-data) groups=33(www-data),117(<strong>icingaweb2<\/strong>)<\/code><\/pre>\n\n\n\n<p>Restart Apache web server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart apache2<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Create Icinga Web 2 Database<\/h4>\n\n\n\n<p>Login to MySQL database server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<p>Create Icinga Web 2 database. (Note, replace the name of the database, <strong>icingaweb2db<\/strong>, accordingly)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>create database <strong>icingaweb2db<\/strong>;<\/code><\/pre>\n\n\n\n<p>Create Icinga 2 database user. (Also, replace the username, <strong>icingaweb2admin<\/strong>, and the password, <strong>PassWORD<\/strong>, accordingly)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grant all on icingaweb2db.* to icingaweb2admin@localhost identified by 'PassWORD';<\/code><\/pre>\n\n\n\n<p>Reload privileges tables and quit.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>flush privileges;\nquit<\/code><\/pre>\n\n\n\n<p>To access the setup wizard, use the address, <strong>http:\/\/&lt;icinga-server-IP&gt;\/icingaweb2\/setup<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-auth-token-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1340\" height=\"643\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-auth-token-1.png\" alt=\"Install Icinga Web 2 on Debian 10 Buster\" class=\"wp-image-3964\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-auth-token-1.png 1340w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-auth-token-1-768x369.png 768w\" sizes=\"(max-width: 1340px) 100vw, 1340px\" \/><\/a><\/figure>\n\n\n\n<p>Enter your authentication token and click<strong> <\/strong>next to proceed. On the next page, select Icinga modules to enable.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-modules.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1321\" height=\"421\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-modules.png\" alt=\"Icinga web 2 modules\" class=\"wp-image-3950\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-modules.png 1321w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-modules-768x245.png 768w\" sizes=\"(max-width: 1321px) 100vw, 1321px\" \/><\/a><\/figure>\n\n\n\n<p>The next page verifies if the required PHP extensions are met. If there are any missing PHP extensions, install them and proceed with setup.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-php-requirements.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1282\" height=\"638\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-php-requirements.png\" alt=\"Icinga Web 2 PHP requirements\" class=\"wp-image-3951\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-php-requirements.png 1282w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-php-requirements-768x382.png 768w\" sizes=\"(max-width: 1282px) 100vw, 1282px\" \/><\/a><\/figure>\n\n\n\n<p>Configure Icinga Web 2 authentication method. This guide uses local authentication hence, selecting <strong>Database<\/strong> as the type of authentication.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-auth-type.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1311\" height=\"248\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-auth-type.png\" alt=\"Icinga Web 2 database authentication\" class=\"wp-image-3952\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-auth-type.png 1311w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-auth-type-768x145.png 768w\" sizes=\"(max-width: 1311px) 100vw, 1311px\" \/><\/a><\/figure>\n\n\n\n<p>Configure database authentication details. Click validate to test connection to DB.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icingawebdb.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1291\" height=\"629\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icingawebdb.png\" alt=\"Icinga web db connection\" class=\"wp-image-3953\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icingawebdb.png 1291w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icingawebdb-768x374.png 768w\" sizes=\"(max-width: 1291px) 100vw, 1291px\" \/><\/a><\/figure>\n\n\n\n<p>Set the Icinga web 2 authentication backend name and click&nbsp;<strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-backend-name.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1307\" height=\"253\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-backend-name.png\" alt=\"Icinga database backend name\" class=\"wp-image-3954\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-backend-name.png 1307w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-backend-name-768x149.png 768w\" sizes=\"(max-width: 1307px) 100vw, 1307px\" \/><\/a><\/figure>\n\n\n\n<p>Setup Icinga Web 2 administrative user. Note, these are the authentication details for Icinga Web interface.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-web-auth.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1307\" height=\"358\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-web-auth.png\" alt=\"Icinga administration\" class=\"wp-image-3955\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-web-auth.png 1307w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-web-auth-768x210.png 768w\" sizes=\"(max-width: 1307px) 100vw, 1307px\" \/><\/a><\/figure>\n\n\n\n<p>Configure application and logging related&nbsp;options and click Next.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-web-options.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1329\" height=\"552\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-web-options.png\" alt=\"Icinga logging related options\" class=\"wp-image-3956\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-web-options.png 1329w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-web-options-768x319.png 768w\" sizes=\"(max-width: 1329px) 100vw, 1329px\" \/><\/a><\/figure>\n\n\n\n<p>Icinga Web 2 configuration summary.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1292\" height=\"652\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-install-summary.png\" alt=\"\" class=\"wp-image-3957\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-install-summary.png 1292w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-install-summary-768x388.png 768w\" sizes=\"(max-width: 1292px) 100vw, 1292px\" \/><\/figure>\n\n\n\n<p>On the next screen, click next to configure Icinga Web 2 monitoring (IDO) backend.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1315\" height=\"650\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/ido-config.png\" alt=\"\" class=\"wp-image-3959\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/ido-config.png 1315w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/ido-config-768x380.png 768w\" sizes=\"(max-width: 1315px) 100vw, 1315px\" \/><\/figure>\n\n\n\n<p>Configure authentication details for the IDO database set in the <a href=\"https:\/\/kifarunix.com\/install-icinga-2-on-debian-10-buster\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"previous guide (opens in a new tab)\">previous guide<\/a>.<\/p>\n\n\n\n<p>If you get the error, &#8220;<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>&#8220;, it means that the <strong>ido-mysql<\/strong> is not enabled. Enable it and restart Icinga 2 and proceed.<\/p>\n\n\n\n<p>Configure Icinga Transport commands. In this guide, we are setting up Local command transport type. Read more on <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/icinga.com\/docs\/icingaweb2\/latest\/modules\/monitoring\/doc\/05-Command-Transports\/\" target=\"_blank\">Icinga web 2 command transport<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1304\" height=\"363\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-command-transport.png\" alt=\"\" class=\"wp-image-3960\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-command-transport.png 1304w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-command-transport-768x214.png 768w\" sizes=\"(max-width: 1304px) 100vw, 1304px\" \/><\/figure>\n\n\n\n<p>Define your custom variables to protect.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1314\" height=\"256\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-mon-security.png\" alt=\"\" class=\"wp-image-3961\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-mon-security.png 1314w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-mon-security-768x150.png 768w\" sizes=\"(max-width: 1314px) 100vw, 1314px\" \/><\/figure>\n\n\n\n<p>Review configuration summary and click Finish to complete the installation.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1305\" height=\"492\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/config-summary.png\" alt=\"\" class=\"wp-image-3962\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/config-summary.png 1305w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/config-summary-768x290.png 768w\" sizes=\"(max-width: 1305px) 100vw, 1305px\" \/><\/figure>\n\n\n\n<p>Click <strong>Login to Icinga Web 2<\/strong> to access Icinga web login page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"658\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-login.png\" alt=\"\" class=\"wp-image-3947\" title=\"\"><\/figure>\n\n\n\n<p>Upon Successful Login to Icinga 2, you should land on the default dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1347\" height=\"650\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-dashboard.png\" alt=\"\" class=\"wp-image-3948\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-dashboard.png 1347w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/icinga-dashboard-768x371.png 768w\" sizes=\"(max-width: 1347px) 100vw, 1347px\" \/><\/figure>\n\n\n\n<p>You have successfully learnt how to install Icinga Web 2 on Debian 10 Buster.<\/p>\n\n\n\n<p>You can now add hosts to your Icinga for monitoring. See our link below on how to monitor Linux hosts with Icinga.<\/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\" aria-label=\" (opens in a new tab)\">How to Monitor Remote Linux Hosts and Services with Icinga 2<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Related Tutorials;<\/h4>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-icinga-2-on-debian-10-buster\/\">Install Icinga 2 on Debian 10 Buster<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-install-icinga-2-and-icinga-web-2-on-ubuntu-18-04-lts\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">How to Install Icinga 2 and Icinga Web 2 on Ubuntu 18.04 LTS<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-nagios-core-on-debian-10-buster\/\" target=\"_blank\">Install Nagios Core on Debian 10 Buster<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-zabbix-4-x-from-sources-on-debian-10-buster\/\" target=\"_blank\">Install Zabbix 4.x from Sources on Debian 10 Buster<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/nagios-snmp-monitoring-of-linux-hosts-on-alienvault-usm-ossim\/\" target=\"_blank\">Nagios SNMP Monitoring of Linux Hosts on AlienVault USM\/OSSIM<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-install-and-configure-alienvault-ossim-5-5-on-virtualbox\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">How to install and configure AlienVault OSSIM 5.5 on VirtualBox<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we are going to learn how to install Icinga Web 2 on Debian 10 Buster as our continuation for our guide on<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,179,72],"tags":[1064,183,181,180],"class_list":["post-3936","post","type-post","status-publish","format-standard","hentry","category-howtos","category-icinga","category-monitoring","tag-icinga","tag-icinga-monitoring","tag-icinga-web-2","tag-icinga2","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3936"}],"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=3936"}],"version-history":[{"count":11,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3936\/revisions"}],"predecessor-version":[{"id":4487,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3936\/revisions\/4487"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=3936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=3936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=3936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}