<?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>Nagios Plugins Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/nagios-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 31 Jan 2020 13:48:32 +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 the Nagios plugins on Debian 10?</title>
		<link>https://www.osradar.com/install-the-nagios-plugins-debian-10/</link>
					<comments>https://www.osradar.com/install-the-nagios-plugins-debian-10/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 06 Feb 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[Nagios Plugins]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17868</guid>

					<description><![CDATA[<p>In this post, I will show you how to install the Nagios Plugins on Debian 10. Nagios is perhaps the most complete solution for network and equipment monitoring on Linux. It has everything you need to do the job properly. However, once it is installed it lacks the plugins that give the application real utility. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-nagios-plugins-debian-10/">How to install the Nagios plugins on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>In this post, I will show you how to install the Nagios Plugins on Debian 10.</strong></p>
<p>Nagios is perhaps the most complete solution for network and equipment monitoring on Linux. It has everything you need to do the job properly. However, once it is installed it lacks the plugins that give the application real utility.</p>
<p>With these plugins, you will be able to monitor many events in the server as well as in the rest of the computers in the network.</p>
<p>So let&#8217;s go for it.</p>
<h3>1) Install Nagios on Debian 10</h3>
<p>Obviously, the first step is to install Nagios on Debian 10. In addition, some packages have to be installed for the compilation of other packages.</p>
<p>So you can read our post about Nagios on Debian 10.</p>
<p><a href="https://www.osradar.com/install-nagios-debian/" target="_blank" rel="noopener noreferrer">How to install Nagios on Debian 10?</a></p>
<p>Then, after the installation, we can continue.</p>
<h3>2) Installing the Nagios plugins on Debian 10</h3>
<p>Now we have to download the source code. To do this we will use the <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noopener noreferrer">wget</a> command.</p>
<p>Navigate to the <em>/tmp/</em> folder and from there download the file.</p>
<pre>:~$ cd /tmp/
:~$ wget -c https://nagios-plugins.org/download/nagios-plugins-2.3.1.tar.gz

--2020-01-31 07:25:23--  https://nagios-plugins.org/download/nagios-plugins-2.3.1.tar.gz
Resolving nagios-plugins.org (nagios-plugins.org)... 72.14.186.43
Connecting to nagios-plugins.org (nagios-plugins.org)|72.14.186.43|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2833267 (2.7M) [application/x-gzip]
Saving to: 'nagios-plugins-2.3.1.tar.gz'

nagios-plugins-2.3.1.tar.gz                100%[=====================================================================================&gt;]   2.70M   714KB/s    in 4.9s    

2020-01-31 07:25:30 (569 KB/s) - 'nagios-plugins-2.3.1.tar.gz' saved [2833267/2833267]</pre>
<figure id="attachment_17933" aria-describedby="caption-attachment-17933" style="width: 1362px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-17933 size-full" src="https://www.osradar.com/wp-content/uploads/2020/01/1-24.png" alt="1.- Download the source code" width="1362" height="255" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-24.png 1362w, https://www.osradar.com/wp-content/uploads/2020/01/1-24-300x56.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-24-1024x192.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-24-768x144.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-24-696x130.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-24-1068x200.png 1068w" sizes="(max-width: 1362px) 100vw, 1362px" /><figcaption id="caption-attachment-17933" class="wp-caption-text">1.- Download the source code</figcaption></figure>
<p>At the time of writing this post, the latest version of the Nagios plugins is 2.3.1. So to get the latest version, first check what it is and replace the version number.</p>
<p>When the download is complete, decompress the downloaded file.</p>
<pre>:~$ tar xzf nagios-plugins-2.3.1.tar.gz</pre>
<p>Now navigate to the generated folder and prepare to compile the package.</p>
<pre>:~$ ./configure --with-nagios-user=nagios --with-nagios-group=nagios
configure: creating ./config.status
config.status: creating gl/Makefile
config.status: creating nagios-plugins.spec
config.status: creating tools/build_perl_modules
config.status: creating Makefile
config.status: creating tap/Makefile
config.status: creating lib/Makefile
config.status: creating plugins/Makefile
config.status: creating lib/tests/Makefile
config.status: creating plugins-root/Makefile
config.status: creating plugins-scripts/Makefile
config.status: creating plugins-scripts/utils.pm
config.status: creating plugins-scripts/utils.sh
config.status: creating perlmods/Makefile
config.status: creating test.pl
config.status: creating pkg/solaris/pkginfo
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile</pre>
<figure id="attachment_17932" aria-describedby="caption-attachment-17932" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-17932" src="https://www.osradar.com/wp-content/uploads/2020/01/2-22.png" alt="2.- configuring the package" width="1365" height="443" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-22.png 1365w, https://www.osradar.com/wp-content/uploads/2020/01/2-22-300x97.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-22-1024x332.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/2-22-768x249.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-22-696x226.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/2-22-1068x347.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/2-22-1294x420.png 1294w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-17932" class="wp-caption-text">2.- configuring the package</figcaption></figure>
<p>Now use the make command to create the package.</p>
<pre>:~$ make</pre>
<figure id="attachment_17934" aria-describedby="caption-attachment-17934" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-17934" src="https://www.osradar.com/wp-content/uploads/2020/01/3-21.png" alt="3.-Building the Nagios plugins package" width="1365" height="716" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-21.png 1365w, https://www.osradar.com/wp-content/uploads/2020/01/3-21-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-21-1024x537.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-21-768x403.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-21-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-21-1068x560.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/3-21-801x420.png 801w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-17934" class="wp-caption-text">3.-Building the Nagios plugins package</figcaption></figure>
<p>Then, perform the installation with the following command:</p>
<pre>:~$ sudo make install
ck_ifoperstatus check_mailq check_file_age check_ssl_validity utils.sh utils.pm '/usr/local/nagios/libexec'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/tmp/nagios-plugins-2.3.1/plugins-scripts'
make[1]: Leaving directory '/tmp/nagios-plugins-2.3.1/plugins-scripts'
Making install in plugins-root
make[1]: Entering directory '/tmp/nagios-plugins-2.3.1/plugins-root'
make[2]: Entering directory '/tmp/nagios-plugins-2.3.1/plugins-root'
 /usr/bin/install -c -o nagios -g nagios check_dhcp /usr/local/nagios/libexec/check_dhcp
 chown root /usr/local/nagios/libexec/check_dhcp
 chmod ug=rx,u+s /usr/local/nagios/libexec/check_dhcp
 /usr/bin/install -c -o nagios -g nagios check_icmp /usr/local/nagios/libexec/check_icmp
 chown root /usr/local/nagios/libexec/check_icmp
 chmod ug=rx,u+s /usr/local/nagios/libexec/check_icmp
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/tmp/nagios-plugins-2.3.1/plugins-root'
make[1]: Leaving directory '/tmp/nagios-plugins-2.3.1/plugins-root'
Making install in po
make[1]: Entering directory '/tmp/nagios-plugins-2.3.1/po'
/usr/bin/mkdir -p /usr/local/nagios/share
installing fr.gmo as /usr/local/nagios/share/locale/fr/LC_MESSAGES/nagios-plugins.mo
installing de.gmo as /usr/local/nagios/share/locale/de/LC_MESSAGES/nagios-plugins.mo
if test "nagios-plugins" = "gettext-tools"; then \
  /usr/bin/mkdir -p /usr/local/nagios/share/gettext/po; \
  for file in Makefile.in.in remove-potcdate.sin    Makevars.template; do \
    /usr/bin/install -c -o nagios -g nagios -m 644 ./$file \
		    /usr/local/nagios/share/gettext/po/$file; \
  done; \
  for file in Makevars; do \
    rm -f /usr/local/nagios/share/gettext/po/$file; \
  done; \
else \
  : ; \
fi
make[1]: Leaving directory '/tmp/nagios-plugins-2.3.1/po'
make[1]: Entering directory '/tmp/nagios-plugins-2.3.1'
make[2]: Entering directory '/tmp/nagios-plugins-2.3.1'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/tmp/nagios-plugins-2.3.1'
make[1]: Leaving directory '/tmp/nagios-plugins-2.3.1'</pre>
<figure id="attachment_17935" aria-describedby="caption-attachment-17935" style="width: 1201px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-17935" src="https://www.osradar.com/wp-content/uploads/2020/01/4-20.png" alt="4.- Install the Nagios plugins on Debian 10" width="1201" height="716" srcset="https://www.osradar.com/wp-content/uploads/2020/01/4-20.png 1201w, https://www.osradar.com/wp-content/uploads/2020/01/4-20-300x179.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/4-20-1024x610.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/4-20-768x458.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/4-20-696x415.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/4-20-1068x637.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/4-20-704x420.png 704w" sizes="(max-width: 1201px) 100vw, 1201px" /><figcaption id="caption-attachment-17935" class="wp-caption-text">4.- Install the Nagios plugins on Debian 10</figcaption></figure>
<p>At this point, everything should have gone smoothly. The plugins are installed in the <em>/usr/local/nagios/libexec/</em> folder so use the ls command to check if they were installed.</p>
<pre>:~$ ls /usr/local/nagios/libexec/</pre>
<figure id="attachment_17936" aria-describedby="caption-attachment-17936" style="width: 1307px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-17936" src="https://www.osradar.com/wp-content/uploads/2020/01/5-17.png" alt="5.- Nagios plugins installed" width="1307" height="192" srcset="https://www.osradar.com/wp-content/uploads/2020/01/5-17.png 1307w, https://www.osradar.com/wp-content/uploads/2020/01/5-17-300x44.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/5-17-1024x150.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/5-17-768x113.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/5-17-696x102.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/5-17-1068x157.png 1068w" sizes="(max-width: 1307px) 100vw, 1307px" /><figcaption id="caption-attachment-17936" class="wp-caption-text">5.- Nagios plugins installed</figcaption></figure>
<p>As you can see in the image, they were installed correctly.</p>
<p>Now restart the Nagios service to load the plugins.</p>
<pre>:~$ sudo systemctl restart nagios</pre>
<p>Now let&#8217;s see the results.</p>
<h3>3) Nagios plugins working</h3>
<p>After restarting the Nagios service, open your web browser and log in to Nagios with your username and password.</p>
<p>Now in the Hosts section, you will see the localhost information.</p>
<figure id="attachment_17937" aria-describedby="caption-attachment-17937" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-17937 size-full" src="https://www.osradar.com/wp-content/uploads/2020/01/6-15.png" alt="6.- Using Nagios " width="1365" height="669" srcset="https://www.osradar.com/wp-content/uploads/2020/01/6-15.png 1365w, https://www.osradar.com/wp-content/uploads/2020/01/6-15-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/6-15-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/6-15-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/6-15-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2020/01/6-15-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2020/01/6-15-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/6-15-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/6-15-857x420.png 857w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-17937" class="wp-caption-text">6.- Using Nagios</figcaption></figure>
<p>Also the information about the services, then, the plugins were loaded correctly.</p>
<figure id="attachment_17938" aria-describedby="caption-attachment-17938" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-17938" src="https://www.osradar.com/wp-content/uploads/2020/01/7-11.png" alt="7.- Using Nagios" width="1365" height="672" srcset="https://www.osradar.com/wp-content/uploads/2020/01/7-11.png 1365w, https://www.osradar.com/wp-content/uploads/2020/01/7-11-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/7-11-1024x504.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/7-11-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/7-11-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2020/01/7-11-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2020/01/7-11-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/7-11-1068x526.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/7-11-853x420.png 853w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-17938" class="wp-caption-text">7.- Using Nagios</figcaption></figure>
<p>And that is it.</p>
<h2>Conclusion</h2>
<p>This tutorial is an add-on for you to have fully functional Nagios on your Linux server. Now you have learned how to install the plugins of this tool.</p>
<p>Please share this post and join our <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-nagios-plugins-debian-10/">How to install the Nagios plugins on Debian 10?</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/install-the-nagios-plugins-debian-10/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Nagios 4 on Centos 8 / RHEL 8.</title>
		<link>https://www.osradar.com/how-to-install-nagios-4-on-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-nagios-4-on-centos-8-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 11 Nov 2019 11:42:23 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Dnf tools]]></category>
		<category><![CDATA[how to install nagios]]></category>
		<category><![CDATA[nagios 4]]></category>
		<category><![CDATA[Nagios Plugins]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RHEL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15465</guid>

					<description><![CDATA[<p>Nagios is network monitoring tool. In this tutorial, we will learn how to Install and configure Nagious 4 on Centos / RHEL 8. Nagious is configured using text files &#38; provides web interface for ease to use for administration and Monitoring. Just follow these steps to quickly install &#38; configure Nagious 4: Pre-requisites: SELinux (Passive [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nagios-4-on-centos-8-rhel-8/">How To Install Nagios 4 on Centos 8 / 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[
<p>Nagios is network monitoring tool. In this tutorial, we will learn how to Install and configure Nagious 4 on Centos  / RHEL  8. Nagious is configured using text files &amp; provides web interface for ease to use for administration and Monitoring. Just follow these steps to quickly install &amp; configure Nagious 4: </p>



<h3><strong>Pre-requisites:</strong></h3>



<ul><li><strong>SELinux (Passive mode):</strong></li></ul>



<pre class="wp-block-verse">sudo sed -i 's/SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config<br>sudo setenforce 0</pre>



<h3><strong>Step 1: Installing Dependencies</strong></h3>



<p>Update your system.</p>



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



<p>Install required Dependencies.</p>



<pre class="wp-block-verse">sudo dnf install @php<br>
sudo dnf install @perl @httpd wget unzip glibc automake glibc-common gettext autoconf php php-cli gcc gd gd-devel net-snmp openssl-devel unzip net-snmp postfix net-snmp-utils</pre>



<p>Guide for <a href="https://www.osradar.com/how-to-install-gcc-development-tools-on-centos-8-rhel-8/">Installing Development Tools on RHEL 8 / Cento 8.</a></p>



<pre class="wp-block-verse">sudo dnf groupinstall "Development Tools"</pre>



<p>Now, start and enable httpd and php-fpm services.</p>



<pre class="wp-block-verse">sudo systemctl enable --now httpd php-fpm</pre>



<p>Checki status is running.</p>



<pre class="wp-block-verse">systemctl status http php-fpm</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="736" height="498" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/php-httpd-status.png" alt="" class="wp-image-15467" srcset="https://www.osradar.com/wp-content/uploads/2019/11/php-httpd-status.png 736w, https://www.osradar.com/wp-content/uploads/2019/11/php-httpd-status-300x203.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/php-httpd-status-696x471.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/php-httpd-status-621x420.png 621w" sizes="(max-width: 736px) 100vw, 736px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="727" height="313" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/php-fpm-services.png" alt="" class="wp-image-15468" srcset="https://www.osradar.com/wp-content/uploads/2019/11/php-fpm-services.png 727w, https://www.osradar.com/wp-content/uploads/2019/11/php-fpm-services-300x129.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/php-fpm-services-696x300.png 696w" sizes="(max-width: 727px) 100vw, 727px" /></figure></div>



<p>Detailed instructions for the  Installation of<a href="https://www.osradar.com/how-to-install-cacti-on-centos-rhel-8/"> PHP</a> and <a href="https://www.osradar.com/how-to-install-cacti-on-centos-rhel-8/">httpd</a>.</p>



<h3><strong>Step 2: Downloading Nagios Core</strong></h3>



<p>Change  directory to <strong>/usr/src/</strong>. Go to <a href="https://github.com/NagiosEnterprises/nagioscore/releases">latest-release page of Nagios</a> to download.</p>



<pre class="wp-block-verse">sudo su -<br>cd /usr/src</pre>



<p>Create <strong>nagios-$VER</strong> directory.</p>



<p>Download &amp; extract Nagios tarball.</p>



<pre class="wp-block-verse"><a href="https://github.com/NagiosEnterprises/nagioscore/releases">https://github.com/NagiosEnterprises/nagioscore/releases</a></pre>



<p>Change path to created folder.</p>



<pre class="wp-block-verse">cd nagios-$VER</pre>



<h3><strong>Step 3: Compile Nagios Core on Centos 8 / RHEL 8.</strong></h3>



<p><strong>a.</strong> Run the configure script by command below:</p>



<pre class="wp-block-verse">./configure</pre>



<p>Output:</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="735" height="496" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/configure-summary-ngios.png" alt="" class="wp-image-15469" srcset="https://www.osradar.com/wp-content/uploads/2019/11/configure-summary-ngios.png 735w, https://www.osradar.com/wp-content/uploads/2019/11/configure-summary-ngios-300x202.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/configure-summary-ngios-696x470.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/configure-summary-ngios-622x420.png 622w" sizes="(max-width: 735px) 100vw, 735px" /></figure></div>



<p><strong>b.</strong> To compile the main program and CGIs, run the make command with <strong>all </strong>options.</p>



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



<p>Output:</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="798" height="601" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/sudo-make-all-nagios.png" alt="" class="wp-image-15471" srcset="https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios.png 798w, https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios-300x226.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios-768x578.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios-696x524.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios-558x420.png 558w" sizes="(max-width: 798px) 100vw, 798px" /></figure></div>



<p><strong>c.</strong> Create User And Group</p>



<p>This will create user and groups in Nagios</p>



<p>Add apache user to Nagios Group.</p>



<pre class="wp-block-verse">make install-groups-users<br>usermod -a -G nagios apache</pre>



<p><strong>d. </strong>Install Nagios on Centos / RHEL 8.</p>



<p>Install Nagios base.</p>



<pre class="wp-block-verse">make install</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="790" height="579" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/make-install.png" alt="" class="wp-image-15473" srcset="https://www.osradar.com/wp-content/uploads/2019/11/make-install.png 790w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-300x220.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-768x563.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-696x510.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-573x420.png 573w" sizes="(max-width: 790px) 100vw, 790px" /></figure></div>



<p><strong>e.</strong> Install the init script in <strong>/lib/systemd/system</strong>.</p>



<pre class="wp-block-verse">make install-init</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="707" height="88" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/make-install-init.png" alt="" class="wp-image-15474" srcset="https://www.osradar.com/wp-content/uploads/2019/11/make-install-init.png 707w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-init-300x37.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-init-696x88.png 696w" sizes="(max-width: 707px) 100vw, 707px" /></figure></div>



<p><strong>f.</strong> Install and configure the permissions on the directory for holding the external command file.</p>



<pre class="wp-block-verse">make install-commandmode</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="728" height="128" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/commandmode-config.png" alt="" class="wp-image-15475" srcset="https://www.osradar.com/wp-content/uploads/2019/11/commandmode-config.png 728w, https://www.osradar.com/wp-content/uploads/2019/11/commandmode-config-300x53.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/commandmode-config-696x122.png 696w" sizes="(max-width: 728px) 100vw, 728px" /></figure></div>



<p><strong>g.</strong> Install sample config files in <strong>/usr/local/nagios/etc</strong>.</p>



<pre class="wp-block-verse">make install-config</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="734" height="498" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/make-install-config.png" alt="" class="wp-image-15476" srcset="https://www.osradar.com/wp-content/uploads/2019/11/make-install-config.png 734w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-config-300x204.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-config-696x472.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-config-619x420.png 619w" sizes="(max-width: 734px) 100vw, 734px" /></figure></div>



<p><strong>h.</strong> Install the Apache config file for the Nagios web interface.</p>



<pre class="wp-block-verse">make install-webconf</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="740" height="202" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/make-install-webconfig.png" alt="" class="wp-image-15477" srcset="https://www.osradar.com/wp-content/uploads/2019/11/make-install-webconfig.png 740w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-webconfig-300x82.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-webconfig-696x190.png 696w" sizes="(max-width: 740px) 100vw, 740px" /></figure></div>



<p><strong>i.</strong> Install the Exfoliation theme for the Nagios web interface.</p>



<pre class="wp-block-verse">make install-exfoliation</pre>



<p><strong>j. </strong> You can install classic theme for Nagios web interface by given command</p>



<pre class="wp-block-verse">make install-classicui</pre>



<h3><strong>Step 4: Creating Nagios Web User</strong></h3>



<p>We need to create a user account for  Nagios web interface . Use the given command:</p>



<pre class="wp-block-verse">sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="797" height="601" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/nagios-account-creation-users.png" alt="" class="wp-image-15480" srcset="https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users.png 797w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users-300x226.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users-768x579.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users-696x525.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users-557x420.png 557w" sizes="(max-width: 797px) 100vw, 797px" /></figure></div>



<p>Restart Apache services to take effect.</p>



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



<h3><strong>Step 5: Installing Nagios Plugins</strong></h3>



<p>Plugins are used to provide more monitoring features.<br>Switch to<strong> /usr/src</strong> directory.</p>



<pre class="wp-block-verse">cd /usr/src</pre>



<p>Create new directory as <strong>nagios-plugins-$VER</strong></p>



<pre class="wp-block-verse">mkdir nagios-plugins-$VER</pre>



<p>Download Nagios plugins from <a href="https://github.com/nagios-plugins/nagios-plugins/releases">Github releases page</a>.</p>



<p>Extract it to <strong>/usr/src/nagios-plugins-$VER</strong> directory.</p>



<p>Now, change directory to nagios-$VER.</p>



<pre class="wp-block-verse">cd 'nagios-$VER'</pre>



<p>Use this command to install and compile Nagios Plugins.</p>



<pre class="wp-block-verse">./configure --with-nagios-user=nagios --with--nagios-group=nagios<br>make &amp;&amp; make install</pre>



<p>Output:</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="727" height="496" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/nagios-plugin-result.png" alt="" class="wp-image-15486" srcset="https://www.osradar.com/wp-content/uploads/2019/11/nagios-plugin-result.png 727w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-plugin-result-300x205.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-plugin-result-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-plugin-result-696x475.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-plugin-result-616x420.png 616w" sizes="(max-width: 727px) 100vw, 727px" /></figure></div>



<h3><strong>Step 6: Verifying Installation &amp; Starting Nagios Services.</strong></h3>



<p>Make sure your Nagios installation is working properly.</p>



<pre class="wp-block-verse"> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg </pre>



<figure class="wp-block-image"><img loading="lazy" width="723" height="495" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/plugins-config-summary-2.png" alt="" class="wp-image-15488" srcset="https://www.osradar.com/wp-content/uploads/2019/11/plugins-config-summary-2.png 723w, https://www.osradar.com/wp-content/uploads/2019/11/plugins-config-summary-2-300x205.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/plugins-config-summary-2-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2019/11/plugins-config-summary-2-696x477.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/plugins-config-summary-2-613x420.png 613w" sizes="(max-width: 723px) 100vw, 723px" /></figure>



<p>Start &amp; Enable Nagios service to start at boot.</p>



<pre class="wp-block-verse">sudo systemctl enable --now nagios</pre>



<p>Re-check the service status.</p>



<pre class="wp-block-verse">systemctl status nagios</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="725" height="496" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/service-check-nagios.png" alt="" class="wp-image-15489" srcset="https://www.osradar.com/wp-content/uploads/2019/11/service-check-nagios.png 725w, https://www.osradar.com/wp-content/uploads/2019/11/service-check-nagios-300x205.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/service-check-nagios-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2019/11/service-check-nagios-696x476.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/service-check-nagios-614x420.png 614w" sizes="(max-width: 725px) 100vw, 725px" /></figure></div>



<h3><strong>Step 7: Accessing Nagios Web Dashboard</strong></h3>



<p>Remove firewall restrictions:</p>



<pre class="wp-block-verse">sudo firewall-cmd --permanent --add-service={http,https}<br>sudo firewall-cmd --reload</pre>



<p>Access Dashboard by visiting <a href="https://www.osradar.com">http:[IP/hostname]/nagios/</a><br> Fill out Authentication details:</p>



<pre class="wp-block-verse">Username:<strong> nagiosadmin</strong></pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="799" height="601" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/authentication.png" alt="" class="wp-image-15490" srcset="https://www.osradar.com/wp-content/uploads/2019/11/authentication.png 799w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-300x226.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-768x578.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-696x524.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-558x420.png 558w" sizes="(max-width: 799px) 100vw, 799px" /></figure></div>



<p>You can add device to be monitored in Dashboard.</p>



<figure class="wp-block-image"><img loading="lazy" width="798" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/nagios-dashboard.png" alt="" class="wp-image-15491" srcset="https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard.png 798w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-300x226.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-768x577.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-696x523.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-559x420.png 559w" sizes="(max-width: 798px) 100vw, 798px" /></figure>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nagios-4-on-centos-8-rhel-8/">How To Install Nagios 4 on Centos 8 / 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-nagios-4-on-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
