<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>how to configure icinga 2 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-configure-icinga-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 31 May 2020 06:37:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Icinga 2 on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-icinga-2-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-icinga-2-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Sun, 31 May 2020 06:37:28 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to configure icinga 2]]></category>
		<category><![CDATA[how to install icinga 2 on ubuntu 20.04]]></category>
		<category><![CDATA[icinga 2 monitoring tool]]></category>
		<category><![CDATA[icinga 2 remote hosts monitoring]]></category>
		<category><![CDATA[icinga 2 web dashboard]]></category>
		<category><![CDATA[icinga2 monitoring tool]]></category>
		<category><![CDATA[installation guide icinga 2]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20026</guid>

					<description><![CDATA[<p>Today we are going to learn that how to Install Icinga 2 on Ubuntu 20.04. Before going to the installation process let&#8217;s have a short introduction about it. Icinga 2 is an open source tool used for the monitoring of network resources, manage alerts and provide you the assistance in order to monitor your network. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-icinga-2-on-ubuntu-20-04/">How To Install Icinga 2 on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that <a href="https://www.osradar.com/?p=20026">how to Install Icinga 2 on Ubuntu 20.04</a>. Before going to the installation process let&#8217;s have a short introduction about it. Icinga 2 is an open source tool used for the monitoring of network resources, manage alerts and provide you the assistance in order to monitor your network. To install Icinga 2 on Ubuntu 20.04, simply follow the below steps for an easy and optimal installation.</p>



<h3><strong>Step 1: Update Your System</strong></h3>



<p>As usual we do, first of all update your system to the latest packages by hitting the below command.</p>



<pre class="wp-block-verse">sudo apt -y update &amp;&amp; sudo apt -y upgrade</pre>



<p>Wait for it to finish the updates and then move to the next step.</p>



<h3><strong>Step 2: Adding Icinga 2 Repository on Ubuntu 20.04</strong></h3>



<p>To add the icinga 2 repository on Ubuntu 20.04, make sure to be the root user or switch it by</p>



<pre class="wp-block-verse">sudo su -</pre>



<p>Also make sure to get the https and curl packages if they are not already installed.</p>



<pre class="wp-block-verse">apt-get install -y apt-transport-https curl</pre>



<p>Then run the given command to add the Icinga public signing key</p>



<pre class="wp-block-verse">curl https://packages.icinga.com/icinga.key | apt-key add -</pre>



<p>After it fire the below command to add the Icinga repository on Ubuntu 20.04.</p>



<pre class="wp-block-verse">echo "deb http://packages.icinga.com/ubuntu icinga-$(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/icinga2.list<br>echo "deb-src http://packages.icinga.com/ubuntu icinga-$(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/icinga2.list</pre>



<h3><strong>Step 3: Installing Icinga 2 on Ubuntu 20.04</strong></h3>



<p>Now, it&#8217;s time to install the Icinga 2 on our system. So, install it by simply typing the below command in your terminal.</p>



<pre class="wp-block-verse">apt update<br>apt-get install -y icinga2</pre>



<p>After it start the icinga services by hitting the following command.</p>



<pre class="wp-block-verse">systemctl start icinga2</pre>



<p>To start the services on the boot of system, run the below command.</p>



<pre class="wp-block-verse">systemctl enable icinga2</pre>



<h3><strong>Step 4: Make Database for Icinga 2</strong></h3>



<p>As to process the information and the configuration import, export Icinga 2 will require a database. Install the database by running the below command if you&#8217;ve not already installed it.</p>



<pre class="wp-block-verse">apt-get install -y mariadb-server mariadb-client</pre>



<p>After it hit the command given below to install the IDO modules for MySQL.</p>



<pre class="wp-block-verse">apt-get install -y icinga2-ido-mysql</pre>



<p>As the installation started you&#8217;ll be required to configure it. Complete the configuration as mentioned below.</p>



<p>In the first step hit NO (Enable Icinga 2&#8217;s ido-mysql feature?).</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="717" height="578" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/05/1-18.png" alt="How To Install Icinga2 on Ubuntu 20.04" class="wp-image-20573" srcset="https://www.osradar.com/wp-content/uploads/2020/05/1-18.png 717w, https://www.osradar.com/wp-content/uploads/2020/05/1-18-300x242.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/1-18-696x561.png 696w" sizes="(max-width: 717px) 100vw, 717px" /></figure></div>



<p>On the second step select NO(Configure Database for Icinga2-ido-mysql with dbconfig-common). As we&#8217;ll setup DB for IDO manually.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="721" height="554" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/05/2-22.png" alt="How To Install Icinga2 on Ubuntu 20.04" class="wp-image-20575" srcset="https://www.osradar.com/wp-content/uploads/2020/05/2-22.png 721w, https://www.osradar.com/wp-content/uploads/2020/05/2-22-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/2-22-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/05/2-22-80x60.png 80w" sizes="(max-width: 721px) 100vw, 721px" /></figure></div>



<p>Now, login to the root user.</p>



<pre class="wp-block-verse">mysql -u root -p</pre>



<p>Then create a new Database for Icinga 2.</p>



<pre class="wp-block-verse">MariaDB [(none)]&gt; CREATE DATABASE icinga2;
Query OK, 1 row affected (0.002 sec)
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON icinga2.* to icinga2@localhost identified by "icinga123";
Query OK, 0 rows affected (0.004 sec)
MariaDB [(none)]&gt; quit;
Bye</pre>



<p>Finally run the following command to import the Icinga 2 IDO schema.</p>



<pre class="wp-block-verse">mysql -u root -p icinga2 &lt; /usr/share/icinga2-ido-mysql/schema/mysql.sql</pre>



<h3><strong>Step 5: Enable &amp; Configure the IDO MySQL Module</strong></h3>



<p>Now, enable the ido-mysql feature as well as the command feature by typing the below commands.</p>



<pre class="wp-block-verse">icinga2 feature enable ido-mysql<br>icinga2 feature enable command</pre>



<p>After enabling the IDO modules, place the new config file at <strong>/etc/icinga2/features-enabled/ido-mysql.conf</strong>.</p>



<p>Edit it and update it to match the below data.</p>



<pre class="wp-block-verse">nano /etc/icinga2/features-enabled/ido-mysql.conf</pre>



<p><strong>user = &#8220;icinga2&#8221;,<br>password = &#8220;icinga123&#8221;,<br>host = &#8220;localhost&#8221;,<br>database = &#8220;icinga2&#8221;</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="715" height="427" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/05/3-19.png" alt="How To Install Icinga2 on Ubuntu 20.04" class="wp-image-20574" srcset="https://www.osradar.com/wp-content/uploads/2020/05/3-19.png 715w, https://www.osradar.com/wp-content/uploads/2020/05/3-19-300x179.png 300w, https://www.osradar.com/wp-content/uploads/2020/05/3-19-696x416.png 696w" sizes="(max-width: 715px) 100vw, 715px" /></figure></div>



<p>Then restart the Icinga 2 services to take effects of new changes.</p>



<pre class="wp-block-verse">systemctl restart icinga2</pre>



<p>So, this is how you can install Icinga 2 on Ubuntu 20.04. In our next guide we&#8217;ll move forward to setup the Icinga 2 web interface.</p>



<p><a href="https://www.osradar.com/?p=20036">How To Setup Icinga Web Interface On Ubuntu 20.04</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-icinga-2-on-ubuntu-20-04/">How To Install Icinga 2 on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-icinga-2-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
