<?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>install icinga in Centos 8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/install-icinga-in-centos-8/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:50:47 +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 Setup Icinga 2 Web interface on Centos / RHEL 8.</title>
		<link>https://www.osradar.com/how-to-setup-icinga-2-web-interface-on-centos-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-setup-icinga-2-web-interface-on-centos-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 07 Nov 2019 14:50:44 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Icinga2]]></category>
		<category><![CDATA[install icinga in Centos 8]]></category>
		<category><![CDATA[monitoring tools]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15365</guid>

					<description><![CDATA[<p>Prerequisites: Web Server PHP 5.6.0 and above with cURL, gettext,intl,mbstring,OpenSSL, and XML support. LDAP libray(PHP) or Active Directory Authentication. PHP libraries for MySQL or PostgreSQL Installing PHP and its Extensions As stated above you must have PHP version 5.6 or above. You should consider the latest version available on Centos / Redhat base repositories. You [&#8230;]</p>
<p>The post <a rel="nofollow" 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 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>Prerequisites:</strong></h3>



<ul><li>Web Server</li><li>PHP 5.6.0 and above with cURL, gettext,intl,mbstring,OpenSSL, and XML support.</li><li>LDAP libray(PHP)  or Active Directory Authentication.</li><li>PHP libraries for MySQL or PostgreSQL</li></ul>



<h3><strong> Installing PHP and its Extensions</strong></h3>



<p>As stated above you must have PHP version 5.6 or above. You should consider the latest version available on Centos / Redhat base repositories. You would need to enable SCL repository and server respectively.<br> For Centos</p>



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



<p> For RHEL</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-server-rhscl-7-rpms</p>



<p> For Centos</p>



<pre class="wp-block-verse"> yum -y install rh-php71-php-json rh-php71-php-pgsql rh-php71-php-xml rh-php71-php-intl rh-php71-php-common rh-php71-php-pdo rh-php71-php-mysqlnd rh-php71-php-cli rh-php71-php-mbstring rh-php71-php-fpm rh-php71-php-gd rh-php71-php-zip rh-php71-php-ldap rh-php71-php-imagick</pre>



<p> For RHEL</p>



<pre class="wp-block-verse"> yum -y install rh-php71-php-json rh-php71-php-pgsql rh-php71-php-xml rh-php71-php-intl rh-php71-php-common rh-php71-php-pdo rh-php71-php-mysqlnd rh-php71-php-cli rh-php71-php-mbstring rh-php71-php-fpm rh-php71-php-gd rh-php71-php-zip rh-php71-php-ldap</pre>



<p> Make sure to configure time zone in the php.ini<br> Now, restart php-fpm services.<br> Enable Php-fpm services.</p>



<h3> <strong>Adding Icinga2 Repository</strong></h3>



<p> Make sure to add Icinga2 repository if you&#8217;ve not already set up it.</p>



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



<h2> <strong>Installing Icinga2 Web </strong></h2>



<p> yum command can be used on Centos/RHEL to install Icinga web package alongwith Icinga CLI &amp; Apache server.</p>



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



<p> Enable Apache Services</p>



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



<p> Set up SELinux<br> Allow Firewall</p>



<p class="has-background has-cyan-bluish-gray-background-color"> firewall-cmd &#8211;permanent &#8211;add-service=http<br> firewall-cmd &#8211;reload</p>



<h3><strong> Prepare Icinga Web Setup</strong></h3>



<p> Icinga CLI is used for adminstration in command line. Icinga web and CLI must have access to logs&amp;configuration.  Add user for web server.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> groupadd -r icingaweb2<br> usermod -a -G icingaweb2 apache</p>



<h3><strong> Create Icinga Web 2 configuration directory.</strong></h3>



<p class="has-background has-cyan-bluish-gray-background-color"> icingacli setup config directory &#8211;group icingaweb2</p>



<p> Restart Php-fpm and Apache services.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> systemctl restart httpd<br> systemctl restart rh-php71-php-fpm</p>



<p> For first visit Icinga web setup wizard will guide you through all these steps for the successfull installation.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> http://youripaddress/icingaweb2/setup</p>



<p> A token needed to be generated for security reasons. Use this command to generate token.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> icingacli setup token create.</p>



<p> Output:<br> The newly generated setup token is: 04fa4ea1baf4f0b9<br> use token and click Next.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="918" height="553" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/icinga2-web.png" alt="" class="wp-image-15435" srcset="https://www.osradar.com/wp-content/uploads/2019/11/icinga2-web.png 918w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-web-300x181.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-web-768x463.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-web-696x419.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-web-697x420.png 697w" sizes="(max-width: 918px) 100vw, 918px" /></figure></div>



<p><a href="https://www.osradar.com/?p=15058&amp;preview=true">Choose the modules you&#8217;ve installed in Icinga 2</a></p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="915" height="554" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/icinga2-modules.png" alt="" class="wp-image-15438" srcset="https://www.osradar.com/wp-content/uploads/2019/11/icinga2-modules.png 915w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-modules-300x182.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-modules-768x465.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-modules-696x421.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-modules-694x420.png 694w" sizes="(max-width: 915px) 100vw, 915px" /></figure></div>



<p>Next screen shows the info timezone and PHP extensions.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="914" height="525" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/php-extensions.png" alt="" class="wp-image-15440" srcset="https://www.osradar.com/wp-content/uploads/2019/11/php-extensions.png 914w, https://www.osradar.com/wp-content/uploads/2019/11/php-extensions-300x172.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/php-extensions-768x441.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/php-extensions-696x400.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/php-extensions-731x420.png 731w" sizes="(max-width: 914px) 100vw, 914px" /></figure></div>



<p>Check out all requirements are fulfilled.<br> A warning of missing PHP Image magic extensions on RHEL 8.<br> You can install it from Centos repository.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> yum -y install http://mirror.centos.org/centos/7/sclo/x86_64/sclo/sclo-php71/sclo-php71-php-pecl-imagick-3.4.3-2.el7.x86_64.rpm<br> systemctl restart httpd<br> systemctl restart rh-php71-php-fpm</p>



<p>On next step create Icinga Web 2 user accoutn. Select Database and move to Next.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="917" height="349" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/icinga-authentication.png" alt="" class="wp-image-15442" srcset="https://www.osradar.com/wp-content/uploads/2019/11/icinga-authentication.png 917w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-authentication-300x114.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-authentication-768x292.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-authentication-696x265.png 696w" sizes="(max-width: 917px) 100vw, 917px" /></figure></div>



<p>Login to MySQL server.</p>



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



<p> Create Database to store Authenication Information.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> CREATE DATABASE icingawebdb;<br> GRANT ALL privileges on icingawebdb.* to icingaweb@localhost IDENTIFIED by &#8216;icinga123&#8217;;<br> quit</p>



<p> Enter details to proceed.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="903" height="524" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/icinga-user-details.png" alt="" class="wp-image-15443" srcset="https://www.osradar.com/wp-content/uploads/2019/11/icinga-user-details.png 903w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-user-details-300x174.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-user-details-768x446.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-user-details-696x404.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-user-details-724x420.png 724w" sizes="(max-width: 903px) 100vw, 903px" /></figure></div>



<p>Choose Authentication backend and move to Next step</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="918" height="305" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/backend-authentication-icinga2.png" alt="" class="wp-image-15444" srcset="https://www.osradar.com/wp-content/uploads/2019/11/backend-authentication-icinga2.png 918w, https://www.osradar.com/wp-content/uploads/2019/11/backend-authentication-icinga2-300x100.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/backend-authentication-icinga2-768x255.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/backend-authentication-icinga2-696x231.png 696w" sizes="(max-width: 918px) 100vw, 918px" /></figure></div>



<p>Enter the domain account details and remember them for future use.</p>



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



<p>Select where to save the application and other details and move Next.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="920" height="537" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/application-config-icinga2.png" alt="" class="wp-image-15447" srcset="https://www.osradar.com/wp-content/uploads/2019/11/application-config-icinga2.png 920w, https://www.osradar.com/wp-content/uploads/2019/11/application-config-icinga2-300x175.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/application-config-icinga2-768x448.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/application-config-icinga2-696x406.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/application-config-icinga2-720x420.png 720w" sizes="(max-width: 920px) 100vw, 920px" /></figure></div>



<p>Review your settings on the coming screen and move Next.<br> Configure monitoring module for Icinga Web2. Provide required informations alongwith </p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="917" height="274" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/monitoring-module-icinga2.png" alt="" class="wp-image-15449" srcset="https://www.osradar.com/wp-content/uploads/2019/11/monitoring-module-icinga2.png 917w, https://www.osradar.com/wp-content/uploads/2019/11/monitoring-module-icinga2-300x90.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/monitoring-module-icinga2-768x229.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/monitoring-module-icinga2-696x208.png 696w" sizes="(max-width: 917px) 100vw, 917px" /></figure></div>



<h3><strong>Command Transport Setup</strong></h3>



<p>These will help you to send commands to monitoring assistances. Icinga Web supports Local Command File, Remote Command File, and Icinga 2 API as a Command Transport.<br> You can also design your own.<br> We use here Local Command file for demo. You can choose your required one.</p>



<figure class="wp-block-image"><img loading="lazy" width="902" height="343" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/icinga-command.png" alt="" class="wp-image-15454" srcset="https://www.osradar.com/wp-content/uploads/2019/11/icinga-command.png 902w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-command-300x114.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-command-768x292.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-command-696x265.png 696w" sizes="(max-width: 902px) 100vw, 902px" /></figure>



<p> Run the below command to set up API.</p>



<h3><strong>Icinga2 API</strong></h3>



<p class="has-background has-cyan-bluish-gray-background-color">icinga2 api setup</p>



<p><br><strong>Output:</strong></p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="912" height="358" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/api-setup.png" alt="" class="wp-image-15450" srcset="https://www.osradar.com/wp-content/uploads/2019/11/api-setup.png 912w, https://www.osradar.com/wp-content/uploads/2019/11/api-setup-300x118.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/api-setup-768x301.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/api-setup-696x273.png 696w" sizes="(max-width: 912px) 100vw, 912px" /></figure></div>



<p>View API user detail from /etc/icinga2/conf.d/api-users.conf file</p>



<p class="has-background has-cyan-bluish-gray-background-color"> cat /etc/icinga2/conf.d/api-users.conf </p>



<p> Output:</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="880" height="196" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/user-details.png" alt="" class="wp-image-15452" srcset="https://www.osradar.com/wp-content/uploads/2019/11/user-details.png 880w, https://www.osradar.com/wp-content/uploads/2019/11/user-details-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/user-details-768x171.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/user-details-696x155.png 696w" sizes="(max-width: 880px) 100vw, 880px" /></figure></div>



<p>Rstart icinga2 services.</p>



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



<p>Now use user &amp; password from above file.<br>
Make sure to protect from bad ones.</p>



<figure class="wp-block-image"><img loading="lazy" width="915" height="307" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/monitoring-security.png" alt="" class="wp-image-15453" srcset="https://www.osradar.com/wp-content/uploads/2019/11/monitoring-security.png 915w, https://www.osradar.com/wp-content/uploads/2019/11/monitoring-security-300x101.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/monitoring-security-768x258.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/monitoring-security-696x234.png 696w" sizes="(max-width: 915px) 100vw, 915px" /></figure>



<p>Review your configuration and you are all set up.<br> Click on Login to Icinga Web 2.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="920" height="490" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/icinga-successfuly-installed.png" alt="" class="wp-image-15455" srcset="https://www.osradar.com/wp-content/uploads/2019/11/icinga-successfuly-installed.png 920w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-successfuly-installed-300x160.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-successfuly-installed-768x409.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-successfuly-installed-696x371.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/icinga-successfuly-installed-789x420.png 789w" sizes="(max-width: 920px) 100vw, 920px" /></figure></div>



<p> Now login to see dashboard.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="919" height="511" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/dashboard-icinga2.png" alt="" class="wp-image-15456" srcset="https://www.osradar.com/wp-content/uploads/2019/11/dashboard-icinga2.png 919w, https://www.osradar.com/wp-content/uploads/2019/11/dashboard-icinga2-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/dashboard-icinga2-768x427.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/dashboard-icinga2-696x387.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/dashboard-icinga2-755x420.png 755w" sizes="(max-width: 919px) 100vw, 919px" /></figure></div>



<p>Congratulations! you have done installing Icinga Web 2.</p>
<p>The post <a rel="nofollow" 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 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-setup-icinga-2-web-interface-on-centos-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
