<?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 4 | Matt Crawford</title>
	<atom:link href="https://mattcrawford.me/tag/nagios-4/feed/" rel="self" type="application/rss+xml" />
	<link>https://mattcrawford.me</link>
	<description>Personal blog and writings of a nudist in Iowa.</description>
	<lastBuildDate>Wed, 15 Jun 2022 00:10:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
<site xmlns="com-wordpress:feed-additions:1">176948450</site>	<item>
		<title>Nagios 4 Setup CentOS</title>
		<link>https://mattcrawford.me/nagios-4-setup-centos/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nagios-4-setup-centos</link>
					<comments>https://mattcrawford.me/nagios-4-setup-centos/#respond</comments>
		
		<dc:creator><![CDATA[Matt Crawford]]></dc:creator>
		<pubDate>Mon, 08 Feb 2016 19:48:36 +0000</pubDate>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Nagios 4]]></category>
		<guid isPermaLink="false">http://g3k.xyz/?p=1881</guid>

					<description><![CDATA[<p>I&#8217;ve been busy attempting to install&#160;Nagios 4&#160;on a fresh install of CentOS 7 on a Hyper V machine. I&#8217;ve tried this install now at least&#160;6&#160;times failing with different errors every single time and even resorted to Nagios for help. Well I&#8217;ve finally have gotten Nagios 4 to work with the help of Nagios Support and [&#8230;]</p>
The post <a href="https://mattcrawford.me/nagios-4-setup-centos/">Nagios 4 Setup CentOS</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve been busy attempting to install&nbsp;<a href="https://www.nagios.org">Nagios 4</a>&nbsp;on a fresh install of <a href="https://www.centos.org">CentOS</a> 7 on a Hyper V machine. I&#8217;ve tried this install now at least&nbsp;6&nbsp;times failing with different errors every single time and even resorted to <a href="https://support.nagios.com/forum/viewtopic.php?f=7&amp;t=36936">Nagios for help</a>.</p>
<p>Well I&#8217;ve finally have gotten <a href="https://www.nagios.org">Nagios 4</a> to work with the help of <a href="https://support.nagios.com/forum/viewtopic.php?f=7&amp;t=36936">Nagios Support</a> and these were the steps that I took to complete it.</p>
<p><span id="more-1881"></span></p>
<p>The Orange text are commands to input into CentOS. I used a minimal install of CentOS.</p>
<p>The first problem I always ran into is that CentOS wasn&#8217;t online. I took <a href="http://g3k.xyz/how-to-setup-network-on-centos-7/" target="_blank" rel="noopener noreferrer">these steps</a> to resolve it &nbsp;then I ran the commands below</p>
<pre>yum install wget
yum install nano</pre>
<p>Net tools isn&#8217;t required but I find it useful for troubleshooting network issues so I installed it anyways.</p>
<pre>yum install net-tools</pre>
<p>If installing on a Raspberry PI , I found I had to install these tools as well.</p>
<pre>yum install wzip
yum install make</pre>
<p>SELINUX:</p>
<pre>setenforce 0
nano /etc/selinux/config</pre>
<p>change enforcing -&gt; disabled, save and close.</p>
<p>INSTALL PRE-REQS:</p>
<pre>yum install httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp openssl-devel wget unzip -y</pre>
<pre>useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache</pre>
<p>DOWNLOAD &amp; INSTALL NAGIOS:</p>
<pre>cd /tmp
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.1.1.tar.gz
wget http://www.nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz
tar zxf nagios-4.1.1.tar.gz
tar zxf nagios-plugins-2.1.1.tar.gz
cd nagios-4.1.1
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
service httpd start
service nagios start</pre>
<p>PLUGINS:</p>
<pre>cd /tmp/nagios-plugins-2.1.1
./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl
make all
make install
service nagios restart</pre>
<p>POSSIBLE ERRORS:<br />
Can&#8217;t access web page? Check firewalld and at port 80 through.<br />
firewall-cmd &#8211;zone=public &#8211;add-port=80/tcp &#8211;permanent<br />
firewall-cmd &#8211;reload</p>
<p>Still can&#8217;t access web page? Check IPV6 listening in the apache configuration.<br />
modify /etc/httpd/conf/httpd.conf<br />
Listen 0.0.0.0:80<br />
service httpd restart</p>The post <a href="https://mattcrawford.me/nagios-4-setup-centos/">Nagios 4 Setup CentOS</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></content:encoded>
					
					<wfw:commentRss>https://mattcrawford.me/nagios-4-setup-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1881</post-id>	</item>
	</channel>
</rss>
