<?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 client Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/nagios-client/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 12 Mar 2019 12:55:51 +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 Nagios Server and Monitor your Hosts on CentOS 7</title>
		<link>https://www.osradar.com/how-to-install-nagios-server-and-monitor-your-hosts-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-nagios-server-and-monitor-your-hosts-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Tue, 12 Mar 2019 12:55:51 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[monitor server]]></category>
		<category><![CDATA[nagios client]]></category>
		<category><![CDATA[nagios server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11364</guid>

					<description><![CDATA[<p>Nagios is also known as Nagios Core. It is a free and open source application that monitors systems, networks and infrastructure. Nagios offers monitoring and alerting services for servers. In this article you will learn that how to install nagios server and monitor your hosts. Prerequisites You must login on the server as root user [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nagios-server-and-monitor-your-hosts-on-centos-7/">How to Install Nagios Server and Monitor your Hosts 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>Nagios is also known as Nagios Core. It is a free and open source application that monitors systems, networks and infrastructure. Nagios offers monitoring and alerting services for servers. In this article you will learn that how to install nagios server and monitor your hosts.</p>
<p><strong>Prerequisites</strong></p>
<p>You must login on the server as root user or superuser privileges.<br />
A LAMP stack required. Follow this article if you want to install it: <strong><a href="https://www.osradar.com/install-lamp-centos-rhel7/" target="_blank" rel="noopener noreferrer">Install LAMP in CentOS 7 and RHEL7</a></strong></p>
<p><strong>Install Dependencies</strong></p>
<pre>yum install gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel xinetd unzip -y</pre>
<p><img loading="lazy" class="alignnone wp-image-11365" src="https://www.osradar.com/wp-content/uploads/2019/03/1-300x40.jpg" alt="" width="660" height="88" srcset="https://www.osradar.com/wp-content/uploads/2019/03/1-300x40.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/1-768x101.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/1-1024x135.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/1-696x92.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/1-1068x141.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/1.jpg 1365w" sizes="(max-width: 660px) 100vw, 660px" /></p>
<p><strong>Create Nagios User and Group</strong></p>
<p>you must create a user and group for Nagios process. Create a &#8220;nagios&#8221; user and &#8220;nagcmd&#8221; group, then add the user to the group with these commands:</p>
<pre>useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios</pre>
<p><img loading="lazy" class="alignnone wp-image-11367" src="https://www.osradar.com/wp-content/uploads/2019/03/2-300x33.jpg" alt="" width="664" height="73" srcset="https://www.osradar.com/wp-content/uploads/2019/03/2-300x33.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/2-768x85.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/2-1024x113.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/2-696x77.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/2-1068x118.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/2.jpg 1366w" sizes="(max-width: 664px) 100vw, 664px" /></p>
<h2><strong>Install Nagios Core</strong></h2>
<p>Download the latest stable release of Nagios Core from the <a href="https://www.nagios.org/downloads/nagios-core/thanks/?skip=1" target="_blank" rel="noopener noreferrer">given link</a> copy nagios core link address and download it to your server.</p>
<p>Donwload Nagios Core using command wget</p>
<pre>cd 
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.3.tar.gz</pre>
<p><img loading="lazy" class="alignnone wp-image-11368" src="https://www.osradar.com/wp-content/uploads/2019/03/3-300x75.jpg" alt="" width="668" height="167" srcset="https://www.osradar.com/wp-content/uploads/2019/03/3-300x75.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/3-768x191.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/3-1024x255.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/3-696x173.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/3-1068x266.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/3.jpg 1366w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p>Extract archive and switch to Nagios directory</p>
<pre>tar -xvf nagios-4.4.3.tar.gz
cd nagios-4.4.3</pre>
<p>Configure Nagios Script using below command</p>
<pre>./configure --with-command-group=nagcmd
make all</pre>
<p>Now run following commands to install Nagios, init scripts, and sample configuration files</p>
<pre>make install
make install-commandmode
make install-init
make install-config
make install-webconf
make install-daemoninit</pre>
<p>If you want to issue external commands from web interface to Nagios, you need to add the web server user &#8220;apache&#8221; to &#8220;nagcmd&#8221; group</p>
<pre>usermod -G nagcmd apache</pre>
<p>Now create nagios user &#8220;nagiosadmin&#8221; and restart the apache services.</p>
<pre>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</pre>
<p><img loading="lazy" class="alignnone wp-image-11369" src="https://www.osradar.com/wp-content/uploads/2019/03/4-300x48.jpg" alt="" width="669" height="107" srcset="https://www.osradar.com/wp-content/uploads/2019/03/4-300x48.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/4-768x123.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/4-1024x164.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/4-696x112.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/4-1068x171.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/4.jpg 1366w" sizes="(max-width: 669px) 100vw, 669px" /></p>
<p>These login details will be used to access the Nagios web interface.</p>
<h2><strong>Install Nagios Plugins</strong></h2>
<p>Download the latest stable release of Nagios Plugin from the <a href="http://nagios-plugins.org/download/?C=M;O=D" target="_blank" rel="noopener noreferrer">given link</a> copy nagios plugin link address and download it to your server.</p>
<p>Donwload Nagios plugin using command wget</p>
<pre>cd 
wget http://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz</pre>
<p><img loading="lazy" class="alignnone wp-image-11370" src="https://www.osradar.com/wp-content/uploads/2019/03/5-300x77.jpg" alt="" width="670" height="172" srcset="https://www.osradar.com/wp-content/uploads/2019/03/5-300x77.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/5-768x197.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/5-1024x262.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/5-696x178.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/5-1068x274.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/5.jpg 1366w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p>Extract archive and switch to Nagios Plugin directory</p>
<pre>tar -xvf nagios-plugins-2.2.1.tar.gz
cd nagios-plugins-2.2.1</pre>
<p>Configure Nagios Plugin Script using below command</p>
<pre>./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl</pre>
<p>Now compile Nagios Plugins</p>
<pre>make</pre>
<p>Now Install Nagios Plugin</p>
<pre>make install</pre>
<h2><strong>Install NRPE</strong></h2>
<p>Use following commands</p>
<pre>cd
wget http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz</pre>
<p><img loading="lazy" class="alignnone wp-image-11371" src="https://www.osradar.com/wp-content/uploads/2019/03/6-300x99.jpg" alt="" width="670" height="221" srcset="https://www.osradar.com/wp-content/uploads/2019/03/6-300x99.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/6-768x254.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/6-1024x338.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/6-696x230.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/6-1068x353.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/6-1272x420.jpg 1272w, https://www.osradar.com/wp-content/uploads/2019/03/6.jpg 1366w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p>Extract NRPE archive and switch to NRPE directory</p>
<pre>tar xvf nrpe-2.15.tar.gz
cd nrpe-2.15</pre>
<p>Configure NRPE</p>
<pre>./configure --enable-command-args --with-nagios-user=nagios --with-nagios-group=nagios --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu</pre>
<p>Now compile and install NRPE</p>
<pre>make all
make install
make install-xinetd
make install-daemon-config</pre>
<p>Add your server IP address in xinetd startup script</p>
<pre>vi /etc/xinetd.d/nrpe</pre>
<p>Modify the only_from line and add the IP address of the your Nagios server to the end, in my case it is 192.168.130.138</p>
<pre>only_from = 127.0.0.1 192.168.130.138</pre>
<p>Save and exit.</p>
<p>Only Nagios server&#8217;s IP must be allowed to communicate with NRPE.</p>
<p><img loading="lazy" class="alignnone wp-image-11372" src="https://www.osradar.com/wp-content/uploads/2019/03/7-300x85.jpg" alt="" width="671" height="190" srcset="https://www.osradar.com/wp-content/uploads/2019/03/7-300x85.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/7-768x216.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/7-1024x289.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/7-696x196.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/7-1068x301.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/7.jpg 1366w" sizes="(max-width: 671px) 100vw, 671px" /></p>
<p>Now restart xinetd service to start NRPE</p>
<pre>systemctl restart xinetd</pre>
<p>Now Nagios Server is installed and we need to configure it.</p>
<h2><strong>Configure Nagios</strong></h2>
<p>Create the directory which will store the configuration file for each server that will monitor be monitor by Nagios.</p>
<pre>mkdir /usr/local/nagios/etc/servers</pre>
<p>Now open the main Nagios configuration file</p>
<pre>vi /usr/local/nagios/etc/nagios.cfg</pre>
<p>Then add below line</p>
<pre>cfg_dir=/usr/local/nagios/etc/servers</pre>
<p>save and exit</p>
<p><img loading="lazy" class="alignnone wp-image-11373" src="https://www.osradar.com/wp-content/uploads/2019/03/8-300x124.jpg" alt="" width="670" height="277" srcset="https://www.osradar.com/wp-content/uploads/2019/03/8-300x124.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/8-768x317.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/8-1024x422.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/8-696x287.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/8-1068x440.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/8-1019x420.jpg 1019w, https://www.osradar.com/wp-content/uploads/2019/03/8.jpg 1366w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p><strong>Configure Nagios Contacts</strong></p>
<p>If you want, you can also configure nagios contacts as per your requirements using below command</p>
<pre>vi /usr/local/nagios/etc/objects/contacts.cfg</pre>
<p><img loading="lazy" class="alignnone wp-image-11374" src="https://www.osradar.com/wp-content/uploads/2019/03/9-300x79.jpg" alt="" width="668" height="176" srcset="https://www.osradar.com/wp-content/uploads/2019/03/9-300x79.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/9-768x201.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/9-1024x268.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/9-696x182.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/9-1068x280.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/9.jpg 1366w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p><strong>Add a new NRPE command to our Nagios configuration</strong></p>
<pre>vi /usr/local/nagios/etc/objects/commands.cfg</pre>
<p>Add the following lines at the end of the file:</p>
<pre>define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}</pre>
<p>Save and exit.</p>
<p><img loading="lazy" class="alignnone wp-image-11375" src="https://www.osradar.com/wp-content/uploads/2019/03/10-300x58.jpg" alt="" width="672" height="130" srcset="https://www.osradar.com/wp-content/uploads/2019/03/10-300x58.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/10-768x148.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/10-1024x198.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/10-696x135.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/10-1068x206.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/10.jpg 1366w" sizes="(max-width: 672px) 100vw, 672px" /></p>
<p>Now you will be able to use check_nrpe command in Nagios service definitions.</p>
<p>Nagios is ready to use, Lets restart the services and add them to start on server boot.</p>
<pre>systemctl daemon-reload
systemctl restart httpd.service
systemctl start nagios.service
systemctl enable nagios.service</pre>
<p><img loading="lazy" class="alignnone wp-image-11378" src="https://www.osradar.com/wp-content/uploads/2019/03/11-300x43.jpg" alt="" width="670" height="96" srcset="https://www.osradar.com/wp-content/uploads/2019/03/11-300x43.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/11-768x111.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/11-1024x148.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/11-696x101.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/11-1068x155.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/11.jpg 1366w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p><strong>Access Nagios Web Interface</strong></p>
<p>Open your web browser and browse below link to login your Nagios server. You must enter the login credentials that you created earlier. We will use the username &#8220;nagiosadmin&#8221;</p>
<p><strong>http://nagios_server_ip/nagios</strong></p>
<p><img loading="lazy" class="alignnone wp-image-11379" src="https://www.osradar.com/wp-content/uploads/2019/03/12-300x106.jpg" alt="" width="668" height="236" srcset="https://www.osradar.com/wp-content/uploads/2019/03/12-300x106.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/12-768x272.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/12-1024x362.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/12-696x246.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/12-1068x378.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/12-1188x420.jpg 1188w, https://www.osradar.com/wp-content/uploads/2019/03/12.jpg 1366w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p>Now you will see default Nagios home page. Under &#8220;current Status&#8221; left navigation bar Click on the &#8220;Hosts&#8221; option, to see hosts which are monitoring by the Nagios.</p>
<p><img loading="lazy" class="alignnone wp-image-11380" src="https://www.osradar.com/wp-content/uploads/2019/03/13-300x103.jpg" alt="" width="670" height="230" srcset="https://www.osradar.com/wp-content/uploads/2019/03/13-300x103.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/13-768x265.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/13-1024x353.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/13-696x240.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/13-1068x368.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/13-1218x420.jpg 1218w, https://www.osradar.com/wp-content/uploads/2019/03/13.jpg 1366w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p>Here you can see Nagios is monitoring only &#8220;localhost&#8221; it means itself.</p>
<h2><strong>Monitor a CentOS 7 Host with NRPE</strong></h2>
<p>In this section you will learn that how to add a new host to Nagios server, so it will be monitored. You need to repeat this section for each CentOS or RHEL server you want to monitor.</p>
<p>Login to the server you want to monitor and install the EPEL repository</p>
<pre>yum install epel-release -y</pre>
<p><img loading="lazy" class="alignnone wp-image-11381" src="https://www.osradar.com/wp-content/uploads/2019/03/14-300x49.jpg" alt="" width="667" height="109" srcset="https://www.osradar.com/wp-content/uploads/2019/03/14-300x49.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/14-768x124.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/14-1024x166.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/14-696x113.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/14-1068x173.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/14.jpg 1366w" sizes="(max-width: 667px) 100vw, 667px" /></p>
<p>Then install Nagios Plugins and NRPE:</p>
<pre>yum install nrpe nagios-plugins-all -y</pre>
<p><img loading="lazy" class="alignnone wp-image-11382" src="https://www.osradar.com/wp-content/uploads/2019/03/15-300x88.jpg" alt="" width="668" height="196" srcset="https://www.osradar.com/wp-content/uploads/2019/03/15-300x88.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/15-768x225.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/15-1024x301.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/15-696x204.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/15-1068x314.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/15.jpg 1366w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p>Now modify NRPE configuration file</p>
<pre>vi /etc/nagios/nrpe.cfg</pre>
<p>Find the line allowed_hosts and add the IP address of your Nagios server, In my case Nagios server address is 192.168.130.138</p>
<pre>allowed_hosts=127.0.0.1,::1,192.168.130.138</pre>
<p>Save and exit.</p>
<p><img loading="lazy" class="alignnone wp-image-11383" src="https://www.osradar.com/wp-content/uploads/2019/03/16-300x42.jpg" alt="" width="671" height="94" srcset="https://www.osradar.com/wp-content/uploads/2019/03/16-300x42.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/16-768x109.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/16-1024x145.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/16-696x98.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/16-1068x151.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/16.jpg 1366w" sizes="(max-width: 671px) 100vw, 671px" /></p>
<p>this configuration will accept requests from your Nagios server</p>
<p>Now Restart NRPE to apply changes</p>
<pre>systemctl start nrpe.service
systemctl enable nrpe.service</pre>
<p>All configurations done on host machine, Now we have to add these hosts to Nagios server configuration so it can start monitoring them.</p>
<p><strong>Add Host to Nagios Configuration</strong></p>
<p>On your Nagios server, create a new configuration file for each remote host that you want to monitor in /usr/local/nagios/etc/servers/ direcotry. I will create host1.cfg file for my fisrt host.</p>
<pre>vi /usr/local/nagios/etc/servers/host1.cfg</pre>
<p>Add the following host definition in host file, replace the host_name value with your remote hostname (In my case it is host1), the alias value with a description of the host, and the address value with the IP address of the remote host (My host1 address is 192.168.130.222)</p>
<pre>define host {
use linux-server
host_name host1
alias Apache server host1
address 192.168.130.222
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
}</pre>
<p>With above configurations, nagios will only monitor if the host is up or down.</p>
<p>save and exit</p>
<p><img loading="lazy" class="alignnone wp-image-11384" src="https://www.osradar.com/wp-content/uploads/2019/03/17-300x70.jpg" alt="" width="669" height="156" srcset="https://www.osradar.com/wp-content/uploads/2019/03/17-300x70.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/17-768x179.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/17-1024x238.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/17-696x162.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/17-1068x249.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/17.jpg 1366w" sizes="(max-width: 669px) 100vw, 669px" /></p>
<p>Now restart Nagios server to apply new changes.</p>
<pre>systemctl reload nagios.service</pre>
<p>Once done, access your Nagios web interface go to Under &#8220;current Status&#8221; left navigation bar Click on the &#8220;Hosts&#8221; option, and check all hosts which are monitoring by the Nagios. now you will see that host1 is showing up there.</p>
<p><img loading="lazy" class="alignnone wp-image-11385" src="https://www.osradar.com/wp-content/uploads/2019/03/18-300x105.jpg" alt="" width="669" height="234" srcset="https://www.osradar.com/wp-content/uploads/2019/03/18-300x105.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/18-768x269.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/18-1024x358.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/18-696x244.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/18-1068x374.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/18-1200x420.jpg 1200w, https://www.osradar.com/wp-content/uploads/2019/03/18.jpg 1366w" sizes="(max-width: 669px) 100vw, 669px" /></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nagios-server-and-monitor-your-hosts-on-centos-7/">How to Install Nagios Server and Monitor your Hosts 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-nagios-server-and-monitor-your-hosts-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
