<?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>Northern Binary &#187; Nagios</title>
	<atom:link href="http://blog.northernbinary.org/category/nagios/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.northernbinary.org</link>
	<description></description>
	<lastBuildDate>Thu, 11 Mar 2010 10:16:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Build Nagios 3 from source for Ubuntu 8.04 LTS</title>
		<link>http://blog.northernbinary.org/ubuntu/build-nagios-3-from-source-for-ubuntu-804-lts/</link>
		<comments>http://blog.northernbinary.org/ubuntu/build-nagios-3-from-source-for-ubuntu-804-lts/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 09:10:30 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.northernbinary.org/?p=82</guid>
		<description><![CDATA[First install a clean copy of Ubuntu 8.04 LTS and configure it how you see fit (e.g. give it a static IP address to add it to your network).
We&#8217;re going to start with installing the NTP time services:
$ sudo apt-get install ntp ntpdate
Now install a fresh Apache web server instance:
$ sudo apt-get install apache2 apache2.2-common [...]]]></description>
			<content:encoded><![CDATA[<p>First install a clean copy of Ubuntu 8.04 LTS and configure it how you see fit (e.g. give it a static IP address to add it to your network).</p>
<p>We&#8217;re going to start with installing the NTP time services:</p>
<p><code>$ sudo apt-get install ntp ntpdate</code></p>
<p>Now install a fresh Apache web server instance:</p>
<p><code>$ sudo apt-get install apache2 apache2.2-common apache2-mpm-prefork apache2-utils</code></p>
<p>Slap on a copy of MySQL:</p>
<p><code>$ sudo apt-get install mysql-server mysql-client</code></p>
<p>And a copy of PHP 5 to make our LAMP stack complete:</p>
<p><code>$ sudo apt-get install php5 php5-common libapache2-mod-php5 php5-mysql</code></p>
<p>Nagios is going to need GD 2 support. We&#8217;re installing it without X pixmap and fontconfig support.</p>
<p><code>$ sudo apt-get install libgd2-noxpm-dev</code></p>
<p>We&#8217;re going to need to create a user and a group for Nagios to operate under:</p>
<p><code>$ sudo groupadd -g 9000 nagios<br />
$ sudo groupadd -g 9001 nagcmd<br />
$ sudo useradd -u 9000 -g nagios -a -G nagcmd -d /usr/local/nagios -c "Nagios Admin" nagios<br />
$ sudo usermod -G nagcmd www-data</code></p>
<p>Create the directories for the Nagios binaries, configuaration and local data storage:</p>
<p><code>$ sudo mkdir -p /usr/local/nagios /etc/nagios /var/nagios</code></p>
<p>Set the nagios user we created earlier to be owner of these directories:</p>
<p><code>$ sudo chown nagios.nagios /usr/local/nagios /etc/nagios /var/nagios</code></p>
<p>Now you need to download the latest version of Nagios 3 from the <a href="http://www.nagios.org" onclick="javascript:pageTracker._trackPageview ('/outbound/www.nagios.org');">Nagios website</a> and extract it somewhere convenient.</p>
<p>Run configure to check if the system is ready to build:</p>
<p><code>$ ./configure --prefix=/usr/local/nagios --sysconfdir=/etc/nagios --localstatedir=/var/nagios --with-nagios-user=9000 --with-nagios-group=9000 --with-command-group=9001</code></p>
<p>Compile all binaries:</p>
<p><code>$ make all</code></p>
<p>And install:</p>
<p><code>$ sudo make install</code></p>
<p>The last thing to do is to run some special installation commands that initialize our Nagios installation and create the initial configuration file etc.:</p>
<p><code>$ sudo make install-init<br />
$ sudo make install-commandmode<br />
$ sudo make install-config</code></p>
<p>You should now have a working Nagios version.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.northernbinary.org/ubuntu/build-nagios-3-from-source-for-ubuntu-804-lts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
