<?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 | Matt Crawford</title>
	<atom:link href="https://mattcrawford.me/tag/nagios/feed/" rel="self" type="application/rss+xml" />
	<link>https://mattcrawford.me</link>
	<description>Handyman &#124; Geek &#124; YouTuber</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.0</generator>
<site xmlns="com-wordpress:feed-additions:1">176948450</site>	<item>
		<title>Install Nagios 4 on RaspberryPI-Jessie</title>
		<link>https://mattcrawford.me/install-nagios-4-on-raspberrypi-jessie/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-nagios-4-on-raspberrypi-jessie</link>
					<comments>https://mattcrawford.me/install-nagios-4-on-raspberrypi-jessie/#respond</comments>
		
		<dc:creator><![CDATA[Matt Crawford]]></dc:creator>
		<pubDate>Wed, 25 May 2016 14:39:01 +0000</pubDate>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[nagios4]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<guid isPermaLink="false">https://g3k.xyz/?p=2351</guid>

					<description><![CDATA[<p>This guide was originally written for Ubuntu but will work for Raspbian (Debian Jessie) flavor for RasberryPi as well. It might work for all debian distros but not guaranteed, you can try it out yourself. I &#8220;borrowed&#8221; this guide from here and rewrote it to fix the mistakes they had in their article. NOTE: This [&#8230;]</p>
The post <a href="https://mattcrawford.me/install-nagios-4-on-raspberrypi-jessie/">Install Nagios 4 on RaspberryPI-Jessie</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></description>
										<content:encoded><![CDATA[<p>This guide was originally written for Ubuntu but will work for Raspbian<strong> (Debian Jessie)</strong> flavor for RasberryPi as well. It might work for all debian distros but not guaranteed, you can try it out yourself. I &#8220;borrowed&#8221; this guide from <a href="http://www.howtovmlinux.com/articles/rasberry-pi/install-nagios-core-latest-version-4-x-x-on-raspberrypi-jessie.html#comment-2694308616">here</a> and rewrote it to fix the mistakes they had in their article.</p>
<p><strong>NOTE: This guide is valid only for RaspberryPi Jessie.</strong></p>
<p>The steps below assume you have Raspbian Jessie installed on your Raspberry PI 3.</p>
<p>Login to Raspbian. Default login is:</p>
<p>Become root user</p>
<pre>sudo -i</pre>
<p>Download required packages via yum</p>
<pre>apt-get install apache2 libapache2-mod-php5 build-essential libgd2-xpm-dev</pre>
<p>Create Nagios user</p>
<pre> /usr/sbin/useradd -m -s /bin/bash nagios</pre>
<p>Change nagios use password</p>
<p>passwd nagios</p>
<p>Now Create a group for allowing external comands via the WEB UI and then add both Nagios and Apache user to it.</p>
<pre>/usr/sbin/groupadd nagcmd</pre>
<pre>/usr/sbin/usermod -a -G nagcmd nagios</pre>
<pre>/usr/sbin/usermod -a -G nagcmd www-data</pre>
<p>Now download Nagios Core and Plugins from Nagios website to the /tmp directory. Latest versions as of now are <a href="https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.1.1.tar.gz" target="_blank" rel="noopener noreferrer">Download Nagios 4.1.1</a> &amp; <a href="http://www.nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz">Download Nagios Plugins 2.1.1</a></p>
<p>Create a directory for Nagios downloads</p>
<pre>mkdir /tmp</pre>
<pre>cd /tmp</pre>
<pre>wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.1.1.tar.gz</pre>
<pre>wget http://www.nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz</pre>
<p>Untar the downloaded files</p>
<pre class="brush:bash">tar zxvf nagios-4.1.1.tar.gz</pre>
<pre class="brush:bash">tar zxvf nagios-plugins-2.1.1.tar.gz</pre>
<p>And then you will get 2 folders with the name &#8220;nagios-4.1.1&#8221; &amp; &#8220;nagios-plugins-2.1.1&#8221;</p>
<p>First we will start with Nagios Core Install.</p>
<p>Change directory to Nagios 4.1.1</p>
<pre class="brush:bash">cd /tmp/nagios-4.1.1</pre>
<p>Compile the source and install it. All the files would go into &#8220;/usr/local/nagios/&#8221;</p>
<pre class="brush:bash">./configure --with-command-group=nagcmd</pre>
<pre class="brush:bash">make all</pre>
<pre class="brush:bash">make install</pre>
<pre class="brush:bash">make install-init</pre>
<pre class="brush:bash">make install-config</pre>
<pre class="brush:bash">make install-commandmode</pre>
<p>Run this command to successfully install-webconf. (problem area not sure the below is 100% correct)</p>
<pre>/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/sites-available/nagios.conf</pre>
<pre>a2ensite nagios</pre>
<pre>service apache2 reload</pre>The post <a href="https://mattcrawford.me/install-nagios-4-on-raspberrypi-jessie/">Install Nagios 4 on RaspberryPI-Jessie</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></content:encoded>
					
					<wfw:commentRss>https://mattcrawford.me/install-nagios-4-on-raspberrypi-jessie/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2351</post-id>	</item>
		<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>
