{"id":30723,"date":"2019-08-30T11:32:48","date_gmt":"2019-08-30T16:32:48","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=30723"},"modified":"2022-06-03T03:33:31","modified_gmt":"2022-06-03T08:33:31","slug":"how-to-install-icinga-2-on-debian-9","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/","title":{"rendered":"How to Install Icinga 2 on Debian 9"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-31925\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-icinga2-on-debian9.jpg\" alt=\"\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-icinga2-on-debian9.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-icinga2-on-debian9-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-icinga2-on-debian9-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we&#8217;ll show you how to install Icinga 2, Icinga Web 2 and all the required components on a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Debian 9 VPS<\/a>.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-31926\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/setup-icinga2-monitoring-for-debian9-vps.jpg\" alt=\"\" width=\"200\" height=\"69\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/setup-icinga2-monitoring-for-debian9-vps.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/setup-icinga2-monitoring-for-debian9-vps-150x52.jpg 150w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/>Icinga 2 is a modern open-source network monitoring application which can be used to monitor the network infrastructure and check the health of servers and their services. Icinga 2 is a branch of Nagios rewritten from scratch in C++. It is backwards-compatible with all existing Nagios plugins, add-ons, and the Nagios user interface. Icinga 2 has a user-friendly web interface, but it also comes with a command line interface that can be used to monitor networks, servers and services with specific commands.<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f179f7ac017\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f179f7ac017\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#Prerequisites\" >Prerequisites:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#Step-1-Connect-via-SSH\" >Step 1: Connect via SSH<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#Step-2-Update-the-OS-packages\" >Step 2: Update the OS packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#Step-3-Install-Icinga-2\" >Step 3: Install Icinga 2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#Step-4-Install-Icinga-2-CLI\" >Step 4: Install Icinga 2 CLI<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#Step-5-Install-MariaDB-and-IDO-Icinga-Data-Output-modules-for-MySQLMariaDB\" >Step 5: Install MariaDB and IDO (Icinga Data Output) modules for MySQL\/MariaDB<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#Step-6-Create-a-Database-for-Icinga-2\" >Step 6: Create a Database for Icinga 2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#Step-7-Install-Apache-PHP-and-Required-PHP-extensions\" >Step 7: Install Apache, PHP and Required PHP extensions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#Step-8-Configure-PHP\" >Step 8: Configure PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#Step-9-Install-Icinga-Web-2\" >Step 9: Install Icinga Web 2<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span><strong>Prerequisites:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>For the purposes of this tutorial, we will use a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Debian 9 virtual server<\/a>.<\/li>\n<li>Full SSH root access or a user with sudo privileges is also required.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Connect-via-SSH\"><\/span><span id=\"1-Connect-via-SSH\" class=\"ez-toc-section\">Step 1: Connect via SSH<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Connect to your server via SSH as the root user using the following command:<\/p>\n<pre>ssh root@<span style=\"color: #ff0000;\">IP_ADDRESS<\/span> -p <span style=\"color: #ff0000;\">PORT_NUMBER<\/span><\/pre>\n<p>Remember to replace \u201c<span style=\"color: #ff0000;\">IP_ADDRESS<\/span>\u201d and \u201c<span style=\"color: #ff0000;\">PORT_NUMBER<\/span>\u201d with your actual server IP address and SSH port number. Replace &#8220;root&#8221; with your admin username if you&#8217;re not planning on using the root account.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Update-the-OS-packages\"><\/span>Step 2: Update the OS packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before starting with the installation, we need to update the OS packages to their latest versions.<\/p>\n<p>We can do this by running the following commands:<\/p>\n<pre>apt-get update \r\napt-get upgrade<\/pre>\n<p>Once the upgrade is complete, we can move on to the next step.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-Icinga-2\"><\/span>Step 3: Install <strong>Icinga 2<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We can install Icinga 2 from the Debian 9 package repository.<\/p>\n<p>Run the following commands to install Icinga 2 on the server:<\/p>\n<pre>apt-get update\r\napt-get install icinga2 icinga2-studio vim-icinga2 monitoring-plugins-basic monitoring-plugins-common<\/pre>\n<p>Enable Icinga 2 to start on server boot:<\/p>\n<pre>systemctl enable icinga2.service<\/pre>\n<p>Run the following command to check the Icinga 2 version:<\/p>\n<pre>icinga2 --version<\/pre>\n<p>Output:<\/p>\n<pre>icinga2 - The Icinga 2 network monitoring daemon (version: r2.6.0-1)\r\n\r\nCopyright (c) 2012-2016 Icinga Development Team (https:\/\/www.icinga.org\/)\r\nLicense GPLv2+: GNU GPL version 2 or later &lt;http:\/\/gnu.org\/licenses\/gpl2.html&gt;\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\n\r\nApplication information:\r\nInstallation root: \/usr\r\nSysconf directory: \/etc\r\nRun directory: \/run\r\nLocal state directory: \/var\r\nPackage data directory: \/usr\/share\/icinga2\r\nState path: \/var\/lib\/icinga2\/icinga2.state\r\nModified attributes path: \/var\/lib\/icinga2\/modified-attributes.conf\r\nObjects path: \/var\/cache\/icinga2\/icinga2.debug\r\nVars path: \/var\/cache\/icinga2\/icinga2.vars\r\nPID path: \/run\/icinga2\/icinga2.pid\r\n\r\nSystem information:\r\nPlatform: Debian GNU\/Linux\r\nPlatform version: 9 (stretch)\r\nKernel: Linux\r\nKernel version: 4.9.0-8-amd64\r\nArchitecture: x86_64\r\n\r\nBuild information:\r\nCompiler: GNU 6.3.0\r\nBuild host: x86-ubc-01<\/pre>\n<p>In order to check if the Icinga 2 service is up and running, run the following command:<\/p>\n<pre>systemctl status icinga2.service<\/pre>\n<p>We should receive an output similar to this:<\/p>\n<pre>\u25cf icinga2.service - Icinga host\/service\/network monitoring system\r\nLoaded: loaded (\/lib\/systemd\/system\/icinga2.service; enabled; vendor preset: enabled)\r\nActive: active (running) since Sun 2019-05-26 02:53:29 EDT; 1min 5s ago\r\nMain PID: 28688 (icinga2)\r\nCGroup: \/system.slice\/icinga2.service\r\n\u251c\u250028688 \/usr\/lib\/x86_64-linux-gnu\/icinga2\/sbin\/icinga2 --no-stack-rlimit daemon -e \/var\/log\/icinga2\/error.log\r\n\u2514\u250028711 \/usr\/lib\/x86_64-linux-gnu\/icinga2\/sbin\/icinga2 --no-stack-rlimit daemon -e \/var\/log\/icinga2\/error.log<\/pre>\n<p>As we can see from the output, the Icinga 2 error log file is located in the\u00a0<code>\/var\/log\/icinga2\/<\/code> directory. The &#8216;error.log&#8217; log file can be used to help troubleshoot problems with Icinga 2 configuration files, locate the cause of any crashes, etc.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-Icinga-2-CLI\"><\/span><strong>Step 4: Install Icinga 2 CLI<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We can install the Icinga 2 CLI tool from the Debian repository easily with just one command:<\/p>\n<pre>apt-get install icingacli<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Install-MariaDB-and-IDO-Icinga-Data-Output-modules-for-MySQLMariaDB\"><\/span><strong>Step 5: Install<\/strong> MariaDB and IDO (Icinga Data Output) modules for MySQL\/MariaDB<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Install MariaDB and IDO modules for MySQL\/MAriaDB:<\/p>\n<pre>apt-get install mariadb-common mariadb-server\r\napt-get install icinga2-ido-mysql<\/pre>\n<p><img decoding=\"async\" class=\"size-full wp-image-30919 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-ido-mysql.png\" alt=\"icinga2 ido mysql\" width=\"1148\" height=\"337\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-ido-mysql.png 1148w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-ido-mysql-150x44.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-ido-mysql-300x88.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-ido-mysql-768x225.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-ido-mysql-1024x301.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-ido-mysql-1080x317.png 1080w\" sizes=\"(max-width: 1148px) 100vw, 1148px\" \/><\/p>\n<p>Restart the Icinga 2 service for the changes to take effect:<\/p>\n<pre>systemctl restart icinga2.service<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Create-a-Database-for-Icinga-2\"><\/span>Step 6: Create a Database for Icinga 2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Create a MariaDB database for Icinga 2:<\/p>\n<pre>mysql -u root -p<\/pre>\n<pre>MariaDB [(none)]&gt; CREATE DATABASE icinga2db;\r\nMariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON icinga2db.* TO 'icinga2user'@'localhost' IDENTIFIED BY '<span style=\"color: #ff0000;\">StrongPassword<\/span>';\r\nMariaDB [(none)]&gt; FLUSH PRIVILEGES;\r\nMariaDB [(none)]&gt; exit;<\/pre>\n<p>Don\u2019t forget to replace \u2018<span style=\"color: #ff0000;\">StrongPassword<\/span>\u2019 with an actual strong password.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-7-Install-Apache-PHP-and-Required-PHP-extensions\"><\/span>Step 7: Install Apache, PHP and Required PHP extensions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The default PHP version available from the official Debian 9 repository is PHP 7.0. Install PHP 7.0, along with some PHP extensions that are required for Icinga Web 2 to function correctly:<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get install apache2 libapache2-mod-php php7.0 php7.0-common php7.0-curl php7.0-gd php7.0-curl php7.0-dom php7.0-mysql php7.0-intl php-imagick\r\nsudo a2enmod php7.0<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-8-Configure-PHP\"><\/span>Step 8: Configure PHP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Locate the PHP configuration file:<\/p>\n<pre>php -c \/etc\/php\/7.0\/apache2\/ -i |grep \"Loaded Configuration File\"<\/pre>\n<p>The output should be something like this:<\/p>\n<pre>Loaded Configuration File =&gt; \/etc\/php\/7.0\/apache2\/php.ini<\/pre>\n<p>Edit the <code>php.ini<\/code> configuration file using your preferred text editor:<\/p>\n<pre>vi \/etc\/php\/7.0\/apache2\/php.ini<\/pre>\n<p>Add\/modify the following options:<\/p>\n<pre>memory_limit = 256M \r\nfile_uploads = On\t\r\nallow_url_fopen = On\r\nallow_url_include = Off\r\npost_max_size 32M\r\nupload_max_filesize = 64M\t\r\nmax_execution_time = 300\r\ndefault_charset = \"UTF-8\"\r\ndate.timezone = \"America\/Chicago\"<\/pre>\n<p>Restart the Apache service for the changes to take effect:<\/p>\n<pre>systemctl restart apache2.service<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-9-Install-Icinga-Web-2\"><\/span><strong>Step 9: Install Icinga <\/strong><strong>Web 2<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Install the Icinga Web 2 PHP framework:<\/p>\n<pre>apt-get install icingaweb2<\/pre>\n<p>Create a system group named &#8220;icingaweb2&#8221;:<\/p>\n<pre>addgroup --system icingaweb2<\/pre>\n<p>Set the user &#8216;www-data&#8217; as a member of the system group &#8216;icingaweb2&#8217; so that Apache can have access to the files:<\/p>\n<pre>usermod -a -G icingaweb2 www-data<\/pre>\n<p>Generate a new setup token:<\/p>\n<pre>icingacli setup config directory --group icingaweb2\r\nicingacli setup token create<\/pre>\n<p>Open <code>http:\/\/server_IP\/icingaweb2\/setup<\/code> (replace <span style=\"color: #ff0000;\">server_IP<\/span> with your server&#8217;s public IP address) in your preferred web browser and follow the easy instructions:<\/p>\n<ul>\n<li>Enter the generated setup token and click on the &#8216;Next&#8217; button.<\/li>\n<li>Select the modules that you need installed.<\/li>\n<li>Check if all of the requirements are met.<\/li>\n<li>Choose how you want to authenticate when accessing Icinga Web 2 (database, LDAP or external). For the purposes of this tutorial, we used database authentication, so on the next page, enter the MariaDB database name, username and password. After entering the data, click the &#8216;Validate Configuration&#8217; button and if everything is OK, click &#8216;Next&#8217;.<\/li>\n<li>Select a backend name for the Icinga 2 web interface.<\/li>\n<li>Set a new administrative account or group for Icinga Web 2.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"size-full wp-image-30921 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-backend.png\" alt=\"icinga2 backend\" width=\"1156\" height=\"437\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-backend.png 1156w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-backend-150x57.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-backend-300x113.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-backend-768x290.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-backend-1024x387.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/icinga2-backend-1080x408.png 1080w\" sizes=\"(max-width: 1156px) 100vw, 1156px\" \/><\/p>\n<p>That is it &#8211; the Icinga 2 installation is now complete.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-31927\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/icinga2-managed-support-admins-debian-vps.jpg\" alt=\"\" width=\"200\" height=\"69\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/icinga2-managed-support-admins-debian-vps.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/icinga2-managed-support-admins-debian-vps-150x52.jpg 150w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/>Of course, you don\u2019t have to install Icinga 2 on Debian 9 if you use one of our <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Managed Debian VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install and configure Icinga 2 on Debian 9. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><span style=\"color: #000000;\">.<\/span><\/span> If you found this post\u00a0on <strong>how to install Icinga 2 on Debian 9<\/strong> helpful, please share it with your friends on the social networks using the share shortcuts below, or simply leave a comment down in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we&#8217;ll show you how to install Icinga 2, Icinga Web 2 and all the required components on &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Icinga 2 on Debian 9\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#more-30723\" aria-label=\"Read more about How to Install Icinga 2 on Debian 9\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":31925,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,13],"tags":[1577,1800],"class_list":["post-30723","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-tutorials","tag-debian-9","tag-icinga-2","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Icinga 2 on Debian 9 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Icinga 2 on Debian 9 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Icinga 2 on Debian 9\" \/>\n<meta property=\"og:description\" content=\"How to Install Icinga 2 on Debian 9 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-30T16:32:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:33:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-icinga2-on-debian9.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Icinga 2 on Debian 9\",\"datePublished\":\"2019-08-30T16:32:48+00:00\",\"dateModified\":\"2022-06-03T08:33:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/\"},\"wordCount\":742,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-icinga2-on-debian9.jpg\",\"keywords\":[\"debian 9\",\"Icinga 2\"],\"articleSection\":[\"Debian\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/\",\"name\":\"How to Install Icinga 2 on Debian 9 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-icinga2-on-debian9.jpg\",\"datePublished\":\"2019-08-30T16:32:48+00:00\",\"dateModified\":\"2022-06-03T08:33:31+00:00\",\"description\":\"How to Install Icinga 2 on Debian 9 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-icinga2-on-debian9.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-icinga2-on-debian9.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-icinga-2-on-debian-9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Icinga 2 on Debian 9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Icinga 2 on Debian 9 | RoseHosting","description":"How to Install Icinga 2 on Debian 9 | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Icinga 2 on Debian 9","og_description":"How to Install Icinga 2 on Debian 9 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2019-08-30T16:32:48+00:00","article_modified_time":"2022-06-03T08:33:31+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-icinga2-on-debian9.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Icinga 2 on Debian 9","datePublished":"2019-08-30T16:32:48+00:00","dateModified":"2022-06-03T08:33:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/"},"wordCount":742,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-icinga2-on-debian9.jpg","keywords":["debian 9","Icinga 2"],"articleSection":["Debian","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/","name":"How to Install Icinga 2 on Debian 9 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-icinga2-on-debian9.jpg","datePublished":"2019-08-30T16:32:48+00:00","dateModified":"2022-06-03T08:33:31+00:00","description":"How to Install Icinga 2 on Debian 9 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-icinga2-on-debian9.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-icinga2-on-debian9.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-icinga-2-on-debian-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Icinga 2 on Debian 9"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=30723"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30723\/revisions"}],"predecessor-version":[{"id":41703,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/30723\/revisions\/41703"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/31925"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=30723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=30723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=30723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}