<?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>RHEL8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/rhel8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 07 Nov 2019 14:53:21 +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 Centos / RHEL 8</title>
		<link>https://www.osradar.com/how-to-install-icinga-2-on-centos-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-icinga-2-on-centos-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 07 Nov 2019 14:52:32 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Icinga2]]></category>
		<category><![CDATA[RHEL8]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15058</guid>

					<description><![CDATA[<p>What is Icinga 2? It is a network monitoring tool that helps you to monitor your network status. Icinga gets data and after various performance give you status over Internet anywhere. So, in this lecture we will cover the installation of Icinga 2. First of all make sure you&#8217;ve root privileges. $ sudo su &#8211; [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-icinga-2-on-centos-rhel-8/">How to Install Icinga 2 on Centos / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3><strong>What is Icinga 2?</strong></h3>



<p>It is a network monitoring tool that helps you to monitor your network status.<br> Icinga gets data and after various performance give you status over Internet anywhere.</p>



<p> So, in this lecture we will cover the installation of Icinga 2.</p>



<p> First of all make sure you&#8217;ve root privileges.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> $ sudo su &#8211;</p>



<p> As it depends upon other packages. So, configure EPEL repository on Centos 8 / RHEL 8.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm</p>



<p> Also enable the optional &amp; extra repositories.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> subscription-manager repos &#8211;enable rhel-8-server-optional-rpms<br> subscription-manager repos &#8211;enable rhel-8-server-extras-rpms</p>



<h3><strong>Adding Icinga 2 Repository</strong></h3>



<p> Now, add Icinga 2 repository.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> rpm &#8211;import https://package.icinga.com/icinga.key<br> yum install https://package.icinga.com/epel/icinga-rpm-release-8-latest.noarch.rpm</p>



<h3> <strong>Installing Icinga 2</strong></h3>



<p class="has-background has-cyan-bluish-gray-background-color">  yum -y install icinga2</p>



<p> Start and enable Icinga Services.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> systemctl start icinga2</p>



<p class="has-background has-cyan-bluish-gray-background-color">systemctl enable icinga2</p>



<h3><strong>SELinux</strong></h3>



<p> Make sure you&#8217;ve installed SELinux.</p>



<p> Now install the given package for targeted policy.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> yum install -y icinga2-selinux</p>



<p> Plugin is necessary for monitoring. So install Nagios Plugin.</p>



<h3><strong>Installing Nagios Plugin</strong></h3>



<p class="has-background has-cyan-bluish-gray-background-color"> yum -y install nagios-plugins-all</p>



<h3><strong>Configuring DB IDO MySQL</strong></h3>



<p> DB IDO helps to export all the configuration &amp; status information to database. So, we must have DB server.</p>



<p> If you&#8217;ve already installed then skip the below step.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> yum -y install mariadb-server mariadb</p>



<p> Now, start and enable MariaDB services.</p>



<p class="has-background has-cyan-bluish-gray-background-color">systemctl start mariadb </p>



<p class="has-background has-cyan-bluish-gray-background-color">systemctl enable mariadb</p>



<p> Make sure to Secure your MariaDB installation.</p>



<h3><strong>Installing IDO modules for MySQL</strong></h3>



<p> Now install IDO modules for MySQL</p>



<p class="has-background has-cyan-bluish-gray-background-color"> yum -y install icinga2-ido-mysql</p>



<h3><strong>Creating Database for Icinga2</strong></h3>



<p> Now create a Database after logging as a root user. It will help you to set up web interface.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> mysql -u -root -p</p>



<p class="has-background has-cyan-bluish-gray-background-color"> CREATE DATABASE icinga2;</p>



<p class="has-background has-cyan-bluish-gray-background-color"> GRANT ALL PRIVILEGES ON icinga2.* to icinga2@localhost IDENTIFIED BY &#8216;icinga123&#8217;;<br> FLUSH PRIVILEGES;<br> quit</p>



<p> Now import the Icinga 2 IDO schema by running this command</p>



<p class="has-background has-cyan-bluish-gray-background-color"> mysql -u -root -p icinga2 &lt; /usr/share/icinga2-ido-mysql/schema/mysql.sql</p>



<h3><strong>Enabling IDO MySQL Modules</strong></h3>



<p> Now, Enable IDO MYSQL modules.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> icinga2 feature list</p>



<h4><strong> Output:</strong></h4>



<p class="has-background has-cyan-bluish-gray-background-color"><strong>Disabled features:</strong> api command compatlog elasticsearch gelf graphite influxdb livestatus opentsdb perfdata statusdata syslog<br><strong> Enabled features:</strong> checker ido-mysql mainlog notification</p>



<p> You can see that<strong> ido-mysql</strong> is already enabled.<br> If not enabled you can do it by this command.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> icinga2 feature enable ido-mysql</p>



<p> For smooth performance, you can also enable <strong>command</strong> feature.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> icinga2 feature enable command</p>



<h3> <strong>Configuration of IDO DB MySQL module</strong></h3>



<p> After enabling IDO module icinga2 changes the file path to /etc/icinga2/features-enabled/ido-mysql.conf.<br> You can set up DB manually.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> vi /etc/icinga2/features-enabled/ido-mysql.conf</p>



<p> Provide your details according to your own requirements.<br> Now restart icinga2 services.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> systemctl restart icinga2</p>



<p> Make sure icinga2 is running.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> systemctl status icinga2.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="930" height="381" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/icinga2-status.png" alt="" class="wp-image-15368" srcset="https://www.osradar.com/wp-content/uploads/2019/11/icinga2-status.png 930w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-status-300x123.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-status-768x315.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-status-696x285.png 696w" sizes="(max-width: 930px) 100vw, 930px" /></figure></div>



<h3><strong>Firewall</strong></h3>



<p> If firewall blocks you, give permissions to disable it.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> firewall-cmd &#8211;permanent &#8211;add-port=5665/tcp<br> firewall-cmd &#8211;reload You&#8217;ve all done we will cover the web configuration of Icinga 2 in next tutorial.<br> READ: <a href="https://www.osradar.com/?p=15365"><a href="https://www.osradar.com/how-to-setup-icinga-2-web-interface-on-centos-rhel-8/">How to Setup Icinga 2 Web interface on Centos / RHEL </a>8.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-icinga-2-on-centos-rhel-8/">How to Install Icinga 2 on Centos / RHEL 8</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-centos-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
