<?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>Icinga2 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/icinga2/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>
		<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>
		<item>
		<title>How to install Icinga 2 and Icinga 2 web on CentOS 7?</title>
		<link>https://www.osradar.com/how-to-install-icinga-2-and-icinga-2-web-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-icinga-2-and-icinga-2-web-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Tue, 19 Jun 2018 08:38:36 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Icinga2]]></category>
		<category><![CDATA[Monitor]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=4231</guid>

					<description><![CDATA[<p>Icinga is an open source enterprise monitoring system that monitors networks and any significant network resources, notifies the user of errors, recoveries and generates information performance for reporting. It was originally created as a fork of the Nagios system monitoring application in 2009. The Icinga developers also seek to reflect community needs more closely and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-icinga-2-and-icinga-2-web-on-centos-7/">How to install Icinga 2 and Icinga 2 web on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.icinga.com/products/icinga-2/"><strong> Icinga</strong></a> is an open source enterprise monitoring system that monitors networks and any significant network resources, notifies the user of errors, recoveries and generates information performance for reporting.</p>
<p>It was originally created as a fork of the Nagios system monitoring application in 2009. The Icinga developers also seek to reflect community needs more closely and to integrate patches more quickly.</p>
<p>Why Icinga? To gain control over the resources available on our network (Servers, Switches, Routers, etc.), which would prevent possible failures before they occur.</p>
<p>Some of its characteristics are:</p>
<div class="et_pb_column et_pb_column_1_3 et_pb_column_2 et_pb_css_mix_blend_mode_passthrough">
<div class="et_pb_module et_pb_blurb et_pb_blurb_5 et_pb_bg_layout_light et_pb_text_align_left et_pb_blurb_position_top">
<div class="et_pb_blurb_content">
<div class="et_pb_blurb_container">
<ul>
<li>Performance oriented: <strong>Icinga 2 is built to be fast</strong>. Thanks to its multithreaded design, it can run thousands of checks each second without any sign of CPU strain.</li>
<li>Distributed: combine high availability clusters with a distributed setup, and you have a <strong>best practice scenario for large and complex environments.</strong></li>
<li>Rule based Configuration:monitoring as code with dynamic configurations. Apply rules to hosts and services to create a <strong>continuous monitoring environment</strong>.</li>
</ul>
<h2>Installation on CentOS 7</h2>
<h4>Adding Icinga repository and installing Icinga2</h4>
<p>There is an Icinga repository for Red Hat Linux, and therefore it is compatible with CentOS. Add the repository:</p>
<p><strong>               sudo -i</strong></p>
<p>Then we enter our password and we are already a root user.</p>
<p><figure id="attachment_4232" aria-describedby="caption-attachment-4232" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4232" src="https://www.osradar.com/wp-content/uploads/2018/06/1-15.png" alt="1.- Root privileges" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/1-15.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/1-15-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/1-15-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/1-15-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/1-15-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/1-15-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/1-15-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4232" class="wp-caption-text">1.- Root privileges</figcaption></figure></p>
<p>After that, we wrote the following:</p>
<p><strong>               yum install https://packages.icinga.com/epel/icinga-rpm-release-7-latest.noarch.rpm</strong></p>
<p><figure id="attachment_4233" aria-describedby="caption-attachment-4233" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4233" src="https://www.osradar.com/wp-content/uploads/2018/06/2-16.png" alt="2.- Adding repository" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/2-16.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/2-16-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/2-16-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/2-16-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/2-16-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/2-16-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/2-16-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4233" class="wp-caption-text">2.- Adding repository</figcaption></figure></p>
<p>For this tutorial you need to have the EPEL repository activated, if you do not have it activated you can do it with the following command:</p>
<p><strong>               yum install epel-release</strong></p>
<p>Once the installation process is complete, we proceed to install Icinga2:</p>
<p><strong>              yum install icinga2</strong></p>
<p><figure id="attachment_4234" aria-describedby="caption-attachment-4234" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4234" src="https://www.osradar.com/wp-content/uploads/2018/06/3-16.png" alt="3.- Installing Icinga2" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/3-16.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/3-16-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/3-16-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/3-16-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/3-16-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/3-16-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/3-16-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4234" class="wp-caption-text">3.- Installing Icinga2</figcaption></figure></p>
<p>Once the package is installed, we proceed to start and enable the service.</p>
<p><strong>             systemctl start icinga2</strong></p>
<p>And:</p>
<p><strong>             systemctl enable icinga2</strong></p>
<p><figure id="attachment_4235" aria-describedby="caption-attachment-4235" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4235" src="https://www.osradar.com/wp-content/uploads/2018/06/4-14.png" alt="4.- Starting icinga2 service" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/4-14.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/4-14-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/4-14-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/4-14-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/4-14-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/4-14-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/4-14-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4235" class="wp-caption-text">4.- Starting icinga2 service</figcaption></figure></p>
<p>By default, the installation of icinga2 enables three functionalities: checker, notification and maillog. With the following instruction, we can see all the features:</p>
<p><strong>             icinga2 feature list</strong></p>
<p><figure id="attachment_4236" aria-describedby="caption-attachment-4236" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4236" src="https://www.osradar.com/wp-content/uploads/2018/06/5-15.png" alt="5.- Icinga2 features" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/5-15.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/5-15-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/5-15-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/5-15-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/5-15-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/5-15-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/5-15-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4236" class="wp-caption-text">5.- Icinga2 features</figcaption></figure></p>
<p>As it was said before, Icinga is a Nagios fork, bringing as an advantage the compatibility with its plugins. Thanks to the EPEL repository, it&#8217;s just a command.</p>
<p><strong>              yum install nagios-plugins-all</strong></p>
<p><figure id="attachment_4237" aria-describedby="caption-attachment-4237" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4237" src="https://www.osradar.com/wp-content/uploads/2018/06/6-15.png" alt="6.- Installing nagios plugins" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/6-15.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/6-15-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/6-15-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/6-15-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/6-15-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/6-15-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/6-15-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4237" class="wp-caption-text">6.- Installing nagios plugins</figcaption></figure></p>
<p>If we manage CentOS security with the selinux control system.</p>
<p><strong>             yum install icinga2-selinux</strong></p>
<p>Then we must restart the service</p>
<p><strong>             systemctl restart icinga2</strong></p>
<p><figure id="attachment_4238" aria-describedby="caption-attachment-4238" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4238" src="https://www.osradar.com/wp-content/uploads/2018/06/7-14.png" alt="7.- Restarting icinga2" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/7-14.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/7-14-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/7-14-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/7-14-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/7-14-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/7-14-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/7-14-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4238" class="wp-caption-text">7.- Restarting icinga2</figcaption></figure></p>
<h4>DB IDO on Icinga2 &#8211; Installing MariaDB</h4>
<p>Icinga2 works with a DBMS that can be either MariaDB or postgreSQL. In this case we will use MariaDB, if we don&#8217;t have it installed, we must do it:</p>
<p><strong>               yum install mariadb-server mariadb</strong></p>
<p><figure id="attachment_4239" aria-describedby="caption-attachment-4239" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4239" src="https://www.osradar.com/wp-content/uploads/2018/06/8-12.png" alt="8.-Installing MariaDB" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/8-12.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/8-12-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/8-12-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/8-12-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/8-12-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/8-12-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/8-12-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4239" class="wp-caption-text">8.-Installing MariaDB</figcaption></figure></p>
<p>After that, we must to enable it and start it:</p>
<p><strong>             systemctl enable mariadb</strong></p>
<p>And:</p>
<p><strong>             systemctl start mariadb</strong></p>
<p><figure id="attachment_4240" aria-describedby="caption-attachment-4240" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4240" src="https://www.osradar.com/wp-content/uploads/2018/06/9-10.png" alt="9.-Enabling MariaDB" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/9-10.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/9-10-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/9-10-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/9-10-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/9-10-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/9-10-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/9-10-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4240" class="wp-caption-text">9.-Enabling MariaDB</figcaption></figure></p>
<p>With the mysql_secure_installation script we can define the password and other options of MariaDB. We answer Y,N,Y,Y.</p>
<p><strong>                mysql_secure_installation</strong></p>
<p><figure id="attachment_4241" aria-describedby="caption-attachment-4241" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4241" src="https://www.osradar.com/wp-content/uploads/2018/06/10-9.png" alt="10.- Mysql_secure_installation" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/10-9.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/10-9-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/10-9-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/10-9-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/10-9-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/10-9-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/10-9-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4241" class="wp-caption-text">10.- Mysql_secure_installation</figcaption></figure></p>
<p>At this point we must install the Ido-mysql module or functionality:</p>
<p><strong>              yum install icinga2-ido-mysql</strong></p>
<p><figure id="attachment_4242" aria-describedby="caption-attachment-4242" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4242" src="https://www.osradar.com/wp-content/uploads/2018/06/11-10.png" alt="11.- Installing module ido-mysl" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/11-10.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/11-10-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/11-10-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/11-10-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/11-10-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/11-10-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/11-10-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4242" class="wp-caption-text">11.- Installing module ido-mysl</figcaption></figure></p>
<p>Now we will create the user and database dedicated to icinga2. We&#8217;re accessing the mariadb console:</p>
<p><strong>mysql -u root -p</strong></p>
<p>Once logged in, we proceed to create the database:</p>
<p><strong>               CREATE DATABASE icinga2;</strong></p>
<p>And later, we will create the user dedicated to icinga, with his password and with permissions to alter everything in the icinga2 database:</p>
<p><strong>              GRANT ALL PRIVILEGES ON icinga2.* TO &#8216;icinga2user&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;icinga2pss&#8217;;</strong></p>
<p><figure id="attachment_4243" aria-describedby="caption-attachment-4243" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4243" src="https://www.osradar.com/wp-content/uploads/2018/06/12-8.png" alt="12.- Creating user and database" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/12-8.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/12-8-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/12-8-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/12-8-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/12-8-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/12-8-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/12-8-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4243" class="wp-caption-text">12.- Creating user and database</figcaption></figure></p>
<p>Now we must repeat the process but for icinga web:</p>
<p><strong>               CREATE DATABASE icinga2web;</strong></p>
<p><strong>               GRANT ALL PRIVILEGES ON icinga2web.* TO &#8216;icinga2webuser&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;icinga2webpss&#8217;;</strong></p>
<p>And finally, we must to refresh all privileges:</p>
<p><strong>               FLUSH PRIVILEGES;</strong></p>
<p><figure id="attachment_4244" aria-describedby="caption-attachment-4244" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4244" src="https://www.osradar.com/wp-content/uploads/2018/06/13-4.png" alt="13.- FLUSH PRIVILEGES" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/13-4.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/13-4-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/13-4-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/13-4-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/13-4-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/13-4-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/13-4-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4244" class="wp-caption-text">13.- FLUSH PRIVILEGES</figcaption></figure></p>
<p>We leave the mariadb console with <strong>exit</strong>. And to import the mysql ido schema into our mariadb configuration, we write:</p>
<p><strong>               mysql -u root -p icinga2 &lt; /usr/share/icinga2-ido-mysql/schema/mysql.sql</strong></p>
<p><figure id="attachment_4245" aria-describedby="caption-attachment-4245" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4245" src="https://www.osradar.com/wp-content/uploads/2018/06/14-6.png" alt="14.- Importing database schema" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/14-6.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/14-6-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/14-6-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/14-6-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/14-6-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/14-6-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/14-6-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4245" class="wp-caption-text">14.- Importing database schema</figcaption></figure></p>
<p>We enabled the icinga2 module gone mysql and then restarted the service.</p>
<p><strong>              icinga2 feature enable ido-mysql</strong></p>
<p>After that:</p>
<p><strong>              systemctl restart icinga2</strong></p>
<p><figure id="attachment_4246" aria-describedby="caption-attachment-4246" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4246" src="https://www.osradar.com/wp-content/uploads/2018/06/15-6.png" alt="15.- Restarting icinga2" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/15-6.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/15-6-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/15-6-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/15-6-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/15-6-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/15-6-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/15-6-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4246" class="wp-caption-text">15.- Restarting icinga2</figcaption></figure></p>
<h4>Instalando Icinga 2 Web</h4>
<p>Until now we have installed the server part of Icinga2, now it is the turn of the web interface that works with a web server. We chose apache in this tutorial, installed it, enabled it and started the service.</p>
<p><strong>               yum install httpd</strong></p>
<p><figure id="attachment_4247" aria-describedby="caption-attachment-4247" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4247" src="https://www.osradar.com/wp-content/uploads/2018/06/16-6.png" alt="16.- Installing Apache" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/16-6.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/16-6-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/16-6-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/16-6-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/16-6-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/16-6-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/16-6-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4247" class="wp-caption-text">16.- Installing Apache</figcaption></figure></p>
<p>To enable it:</p>
<p><strong>                  systemctl enable httpd</strong></p>
<p>and to start it:</p>
<p><strong>                 systemctl start httpd</strong></p>
<p><figure id="attachment_4248" aria-describedby="caption-attachment-4248" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4248" src="https://www.osradar.com/wp-content/uploads/2018/06/17-5.png" alt="17.- Starting apache" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/17-5.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/17-5-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/17-5-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/17-5-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/17-5-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/17-5-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/17-5-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4248" class="wp-caption-text">17.- Starting apache</figcaption></figure></p>
<p>And we execute the following commands to enable the port in the firewall:</p>
<p><strong>              firewall-cmd &#8211;add-service=http</strong></p>
<p>And:</p>
<p><strong>             firewall-cmd &#8211;permanent &#8211;add-service=http</strong></p>
<p><figure id="attachment_4249" aria-describedby="caption-attachment-4249" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4249" src="https://www.osradar.com/wp-content/uploads/2018/06/18-5.png" alt="18.- Firewall" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/18-5.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/18-5-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/18-5-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/18-5-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/18-5-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/18-5-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/18-5-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4249" class="wp-caption-text">18.- Firewall</figcaption></figure></p>
<p>Icinga2web uses REST API for its internal processes and we must enable it to get full functionality.</p>
<p>We enabled it with the command:</p>
<p><strong>             icinga2 api setup</strong></p>
<p><figure id="attachment_4250" aria-describedby="caption-attachment-4250" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4250" src="https://www.osradar.com/wp-content/uploads/2018/06/19-6.png" alt="19.- Enabling api rest" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/19-6.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/19-6-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/19-6-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/19-6-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/19-6-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/19-6-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/19-6-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4250" class="wp-caption-text">19.- Enabling api rest</figcaption></figure></p>
<p>Now we will edit the file: api-users to define username and password:</p>
<p><strong>              nano /etc/icinga2/conf.d/api-users.conf</strong></p>
<p><figure id="attachment_4251" aria-describedby="caption-attachment-4251" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4251" src="https://www.osradar.com/wp-content/uploads/2018/06/20-6.png" alt="20.- Editing file" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/20-6.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/20-6-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/20-6-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/20-6-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/20-6-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/20-6-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/20-6-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4251" class="wp-caption-text">20.- Editing file</figcaption></figure></p>
<p>We replace user and password with the one we want.</p>
<p>In my case:</p>
<p><figure id="attachment_4252" aria-describedby="caption-attachment-4252" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4252" src="https://www.osradar.com/wp-content/uploads/2018/06/21-6.png" alt="21.- File edited" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/21-6.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/21-6-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/21-6-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/21-6-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/21-6-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/21-6-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/21-6-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4252" class="wp-caption-text">21.- File edited</figcaption></figure></p>
<p>Another file we need to edit is the ido-mysql.conf to match the mariadb parameters we have configured.</p>
<p>In this case the file looks like this.</p>
<p><figure id="attachment_4253" aria-describedby="caption-attachment-4253" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4253" src="https://www.osradar.com/wp-content/uploads/2018/06/22-5.png" alt="22.-ido-mysql.conf file" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/22-5.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/22-5-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/22-5-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/22-5-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/22-5-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/22-5-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/22-5-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4253" class="wp-caption-text">22.- ido-mysql.conf file</figcaption></figure></p>
<p>And now, we restart the icinga2 service.</p>
<p><strong>             systemctl restart icinga2</strong></p>
<p>Now we must enable the SCL repository to continue with the installation in an optimal way.</p>
<p><strong>              yum install centos-release-scl</strong></p>
<p><figure id="attachment_4255" aria-describedby="caption-attachment-4255" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4255" src="https://www.osradar.com/wp-content/uploads/2018/06/23-4.png" alt="23.-Adding SCL repository" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/23-4.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/23-4-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/23-4-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/23-4-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/23-4-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/23-4-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/23-4-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4255" class="wp-caption-text">23.-Adding SCL repository</figcaption></figure></p>
<p>We proceed to install Icinga Web 2</p>
<p><strong>            yum install icingaweb2 icingacli</strong></p>
<p><figure id="attachment_4256" aria-describedby="caption-attachment-4256" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4256" src="https://www.osradar.com/wp-content/uploads/2018/06/24-4.png" alt="24.-Installing Icinga2web" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/24-4.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/24-4-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/24-4-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/24-4-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/24-4-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/24-4-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/24-4-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4256" class="wp-caption-text">24.-Installing Icinga2web</figcaption></figure></p>
<p>If you use SELinux, then you will also need to install:</p>
<p><strong>               yum install icingaweb2-selinux</strong></p>
<p>The next thing you need to do is to install packages to work with FPM (FastCGI Process Manager):</p>
<p><strong>               yum install rh-php71-php-fpm</strong></p>
<p>Start the service:</p>
<p><strong>              systemctl start rh-php71-php-fpm.service</strong></p>
<p>And enable it:</p>
<p><strong>              systemctl enable rh-php71-php-fpm.service</strong></p>
<p>Now the module for mysql:</p>
<p><strong>              yum install rh-php71-php-mysqlnd</strong></p>
<p>And restart the service:</p>
<p><strong>              systemctl restart rh-php71-php-fpm.service</strong></p>
<p><figure id="attachment_4257" aria-describedby="caption-attachment-4257" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4257" src="https://www.osradar.com/wp-content/uploads/2018/06/26-2.png" alt="26.- Restarting services" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/26-2.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/26-2-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/26-2-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/26-2-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/26-2-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/26-2-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/26-2-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4257" class="wp-caption-text">26.- Restarting services</figcaption></figure></p>
<p>We must now create a token that we will use in the web installer.</p>
<p><strong>               icingacli setup token create</strong></p>
<p><figure id="attachment_4258" aria-describedby="caption-attachment-4258" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4258" src="https://www.osradar.com/wp-content/uploads/2018/06/27-1.png" alt="27.- Generating token" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/27-1.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/27-1-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/27-1-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/27-1-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/27-1-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/27-1-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/27-1-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4258" class="wp-caption-text">27.- Generating token</figcaption></figure></p>
<p>Finally we must restart apache</p>
<p><strong>             systemctl restart httpd</strong></p>
<p>It is highly recommended to modify the timezone in /etc/opt/rh/rh-php71/php.ini. In my case I&#8217;ll put America/caracas.</p>
<p><strong>            nano /etc/opt/rh/rh-php71/php.ini</strong></p>
<p><figure id="attachment_4259" aria-describedby="caption-attachment-4259" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4259" src="https://www.osradar.com/wp-content/uploads/2018/06/28-1.png" alt="28.- Setting timezone" width="1368" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/06/28-1.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/28-1-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/28-1-768x414.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/28-1-1024x552.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/28-1-696x375.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/28-1-1068x576.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/28-1-779x420.png 779w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4259" class="wp-caption-text">28.- Setting timezone</figcaption></figure></p>
<p>We restart the apache services and the php fpm.</p>
<p><strong>               systemctl restart httpd</strong></p>
<p><strong>               systemctl restart rh-php71-php-fpm</strong></p>
<p>And with this we can complete the installation from our web browser.</p>
<p><strong>              http://IP_SERVER/icingaweb2/</strong></p>
<p>In that initial screen we must add the token we have generated and click on next.</p>
<p><figure id="attachment_4261" aria-describedby="caption-attachment-4261" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4261" src="https://www.osradar.com/wp-content/uploads/2018/06/29-2.png" alt="29.- Icinga2 web" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/29-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/29-2-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/29-2-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/29-2-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/29-2-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/29-2-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/29-2-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4261" class="wp-caption-text">29.- Icinga2 web</figcaption></figure></p>
<p>The following screen shows the active modules: Activate Doc and Monitoring:</p>
<p>&nbsp;</p>
<p><figure id="attachment_4262" aria-describedby="caption-attachment-4262" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4262" src="https://www.osradar.com/wp-content/uploads/2018/06/30-1.png" alt="30.- Modules" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/30-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/30-1-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/30-1-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/30-1-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/30-1-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/30-1-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/30-1-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4262" class="wp-caption-text">30.- Modules</figcaption></figure></p>
<p>On the next screen, verify that we meet the software requirements.</p>
<p><figure id="attachment_4263" aria-describedby="caption-attachment-4263" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4263" src="https://www.osradar.com/wp-content/uploads/2018/06/31-1.png" alt="31.- Icinga2 web" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/31-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/31-1-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/31-1-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/31-1-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/31-1-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/31-1-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/31-1-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4263" class="wp-caption-text">31.- Icinga2 web</figcaption></figure></p>
<p>Next it asks us the form of authentication: we choose database.</p>
<p><figure id="attachment_4264" aria-describedby="caption-attachment-4264" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4264" src="https://www.osradar.com/wp-content/uploads/2018/06/32.png" alt="32.- continuing the installation" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/32.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/32-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/32-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/32-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/32-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/32-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/32-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4264" class="wp-caption-text">32.- continuing the installation</figcaption></figure></p>
<p>Next, on the next screen, we will place the requested parameters of mariadb. Click on next.</p>
<p><figure id="attachment_4267" aria-describedby="caption-attachment-4267" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4267" src="https://www.osradar.com/wp-content/uploads/2018/06/34.png" alt="33.- Mariadb parameters" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/34.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/34-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/34-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/34-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/34-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/34-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/34-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4267" class="wp-caption-text">33.- Mariadb parameters</figcaption></figure></p>
<p>The next screen is for naming the backend. We leave it the same. Click on next.</p>
<p><figure id="attachment_4269" aria-describedby="caption-attachment-4269" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4269" src="https://www.osradar.com/wp-content/uploads/2018/06/35-1.png" alt="34.- backend" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/35-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/35-1-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/35-1-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/35-1-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/35-1-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/35-1-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/35-1-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4269" class="wp-caption-text">34.- backend</figcaption></figure></p>
<p>Now it&#8217;s time to set up the administrative account</p>
<p><figure id="attachment_4270" aria-describedby="caption-attachment-4270" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4270" src="https://www.osradar.com/wp-content/uploads/2018/06/36.png" alt="35.- administrative account " width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/36.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/36-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/36-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/36-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/36-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/36-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/36-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4270" class="wp-caption-text">35.- administrative account</figcaption></figure></p>
<p>It is the turn of the log. We left everything the same.</p>
<p><figure id="attachment_4271" aria-describedby="caption-attachment-4271" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4271" src="https://www.osradar.com/wp-content/uploads/2018/06/37.png" alt="36.- Log" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/37.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/37-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/37-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/37-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/37-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/37-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/37-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4271" class="wp-caption-text">36.- Log</figcaption></figure></p>
<p>Check that everything is on the screen shown and click next.</p>
<p><figure id="attachment_4272" aria-describedby="caption-attachment-4272" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4272" src="https://www.osradar.com/wp-content/uploads/2018/06/38.png" alt="37.- Next screen" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/38.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/38-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/38-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/38-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/38-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/38-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/38-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4272" class="wp-caption-text">37.- Next screen</figcaption></figure></p>
<p>And now, monitoring module:</p>
<p><figure id="attachment_4273" aria-describedby="caption-attachment-4273" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4273" src="https://www.osradar.com/wp-content/uploads/2018/06/39.png" alt="38.- Monitoring module" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/39.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/39-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/39-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/39-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/39-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/39-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/39-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4273" class="wp-caption-text">38.- Monitoring module</figcaption></figure></p>
<p>The screen that will be shown is the backend monitoring screen, we leave everything the same.</p>
<p><figure id="attachment_4274" aria-describedby="caption-attachment-4274" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4274" src="https://www.osradar.com/wp-content/uploads/2018/06/40.png" alt="39.- Monitoring backend" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/40.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/40-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/40-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/40-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/40-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/40-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/40-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4274" class="wp-caption-text">39.- Monitoring backend</figcaption></figure></p>
<p>In the next screen, we must place the parameters of MariaDB for icinga.</p>
<p><figure id="attachment_4275" aria-describedby="caption-attachment-4275" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4275" src="https://www.osradar.com/wp-content/uploads/2018/06/41.png" alt="40.- Icinga mariaDB" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/41.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/41-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/41-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/41-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/41-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/41-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/41-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4275" class="wp-caption-text">40.- Icinga mariaDB</figcaption></figure></p>
<p>Now we must configure command transport with the parameters that we configure in the file: etc/icinga2/conf.d/api-users.conf</p>
<p><figure id="attachment_4276" aria-describedby="caption-attachment-4276" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4276" src="https://www.osradar.com/wp-content/uploads/2018/06/42.png" alt="41.- Command transport" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/42.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/42-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/42-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/42-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/42-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/42-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/42-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4276" class="wp-caption-text">41.- Command transport</figcaption></figure></p>
<p>On the next screen we leave it the same:</p>
<p><figure id="attachment_4277" aria-describedby="caption-attachment-4277" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4277" src="https://www.osradar.com/wp-content/uploads/2018/06/43.png" alt="42.- Monitoring security" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/43.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/43-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/43-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/43-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/43-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/43-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/43-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4277" class="wp-caption-text">42.- Monitoring security</figcaption></figure></p>
<p>we&#8217;ll see the summary and that&#8217;s it.</p>
<p><figure id="attachment_4278" aria-describedby="caption-attachment-4278" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4278" src="https://www.osradar.com/wp-content/uploads/2018/06/44.png" alt="43.- Summary" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/44.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/44-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/44-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/44-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/44-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/44-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/44-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4278" class="wp-caption-text">43.- Summary</figcaption></figure></p>
<p>We have already successfully completed the installation process.</p>
<p><figure id="attachment_4279" aria-describedby="caption-attachment-4279" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4279" src="https://www.osradar.com/wp-content/uploads/2018/06/45.png" alt="44.- Success!!!" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/45.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/45-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/45-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/45-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/45-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/45-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/45-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4279" class="wp-caption-text">44.- Success!!!</figcaption></figure></p>
<p>Now we can log in.</p>
<p><figure id="attachment_4280" aria-describedby="caption-attachment-4280" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4280" src="https://www.osradar.com/wp-content/uploads/2018/06/46.png" alt="45.- Icinga loging" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/46.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/46-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/46-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/46-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/46-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/46-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/46-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4280" class="wp-caption-text">45.- Icinga loging</figcaption></figure></p>
<p>And we can finally get into the dashboard. If we can see it, it means everything went great.</p>
<p><figure id="attachment_4281" aria-describedby="caption-attachment-4281" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4281" src="https://www.osradar.com/wp-content/uploads/2018/06/47.png" alt="46.- Dashboard" width="1366" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/06/47.png 1366w, https://www.osradar.com/wp-content/uploads/2018/06/47-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/47-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/47-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/47-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/47-1068x496.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/47-905x420.png 905w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4281" class="wp-caption-text">46.- Dashboard</figcaption></figure></p>
<p>Icinga2 is a great Nagios-based network monitoring program. Its installation under CentOS is a bit long but the process is not complex and does not require much effort.</p>
<p>Please share this tutorial on social networks for your friends to take advantage of.</p>
</div>
</div>
</div>
</div>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-icinga-2-and-icinga-2-web-on-centos-7/">How to install Icinga 2 and Icinga 2 web on CentOS 7?</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-and-icinga-2-web-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
