<?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>nagios4 | Matt Crawford</title>
	<atom:link href="https://mattcrawford.me/tag/nagios4/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:05:06 +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>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>
	</channel>
</rss>
