<?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>OpenSource NetMonitoring &#187; webinterface</title>
	<atom:link href="http://www.netmonitoring.org/tag/webinterface/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.netmonitoring.org</link>
	<description>Install,configure,troubleshoot opensource monitoring with tips and tricks</description>
	<lastBuildDate>Sat, 06 Nov 2010 14:54:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Configure Nagios web interface CGI and User Authentication</title>
		<link>http://www.netmonitoring.org/nagios/configure-nagios-web-interface-cgi-and-user-authentication/</link>
		<comments>http://www.netmonitoring.org/nagios/configure-nagios-web-interface-cgi-and-user-authentication/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 13:18:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Nagios]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[nagios-plugin]]></category>
		<category><![CDATA[webinterface]]></category>

		<guid isPermaLink="false">http://www.netmonitoring.org/nagios/configure-nagios-web-interface-cgi-and-user-authentication/</guid>
		<description><![CDATA[If you have jumped into this post directly then it is worth having a look at first three parts of this installation procedure from the following links 1. Install and configure the pre-requisites 2. Install Nagios Binaries &#38; CGI 3. Install Nagios Plugins The final part of this four part installation procedure for Nagios installation <a href='http://www.netmonitoring.org/nagios/configure-nagios-web-interface-cgi-and-user-authentication/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"; margin-right: 5px;>
<script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* netmon_336x280_post */
google_ad_slot = "8374956079";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>If you have jumped into this post directly then it is worth having a look at first three parts of this installation procedure from the following links</p>
<blockquote><p><a target="_blank" href="http://www.netmonitoring.org/nagios/install-and-configure-pre-requisites-for-nagios/" title="Install and configure Nagios 2.x prerequisites on Debian"><strong>1. Install and configure the pre-requisites</strong></a></p></blockquote>
<blockquote><p><a target="_blank" href="http://www.netmonitoring.org/nagios/install-nagios-210-in-debian40-r2-with-apache2/" title="Install Nagios Binary and CGI in Debian"><strong>2. Install Nagios Binaries &amp; CGI</strong></a></p></blockquote>
<blockquote><p><a target="_blank" href="http://www.netmonitoring.org/nagios/10/" title="Install Nagios Plugin 1.4.11 in Debian"><strong>3. Install Nagios Plugins</strong></a></p></blockquote>
<p>The final part of this four part installation procedure for Nagios installation covers the setup of webinterface for nagios, setup CGI authentication and user authentication using htpasswd for nagios website.</p>
<p><span id="more-11"></span></p>
<p><strong><u>Create a new website on Apache</u></strong></p>
<blockquote><p><strong>debian4r2# vi /etc/apache2/sites-available/Nagios</strong></p></blockquote>
<p><strong><u>Add the following</u></strong></p>
<blockquote>
<pre>ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin</pre>
<pre>&lt;Directory "/usr/local/nagios/sbin"&gt;    Options ExecCGI

    AllowOverride None

    Order allow,deny

    Allow from all

    AuthName "Nagios Access"

    AuthType Basic

    AuthUserFile /usr/local/nagios/etc/htpasswd.users

    Require valid-user

&lt;/Directory&gt;</pre>
<pre>Alias /nagios /usr/local/nagios/share</pre>
<pre>&lt;Directory "/usr/local/nagios/share"&gt;    Options None

    AllowOverride None

    Order allow,deny

    Allow from all

    AuthName "Nagios Access"

    AuthType Basic

    AuthUserFile /usr/local/nagios/etc/htpasswd.users

    Require valid-user

&lt;/Directory&gt;</pre>
</blockquote>
<p><strong><u>Enable the site on Apache</u></strong></p>
<blockquote><p><strong>debian4r2:/etc/apache2/sites-available# a2ensite Nagios</strong></p></blockquote>
<p><strong><u>Reload the config file for Apache to make the nagios site active</u></strong></p>
<blockquote><p><strong>debian4r2:/etc/apache2/sites-available# /etc/init.d/apache2 reload<br />
</strong>Reloading web server config&#8230;3638</p></blockquote>
<p><strong><u>Create and add the first Nagios user for the web interface</u></strong></p>
<blockquote><p><strong>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</strong></p></blockquote>
<pre>NOTE: The "-c" in the above command creates the htpasswd.users file and add nagiosadmin as a user.</pre>
<pre>Any new user should be added with the above command without the "-c"</pre>
<p><strong><u>Add more users</u></strong></p>
<blockquote><p><strong>htpasswd /usr/local/nagios/etc/htpasswd.users nagios</strong></p></blockquote>
<p><strong><u>Set the CGI Authentication in the Nagios CGI.cfg file</u></strong></p>
<blockquote><p><strong>debian4r2# vi /usr/local/nagios/etc/cgi.cfg</strong></p></blockquote>
<p>Set the following value</p>
<blockquote><p><strong>use_authentication=1</strong></p></blockquote>
<p>Thats done and we are ready to go.</p>
<p>Access your Nagios website</p>
<p><a href="http://%3chostname%3e/nagios/">http://&lt;hostname&gt;/nagios/</a></p>
<p>Enter the username and password and off you go. From here on, you need to add contacts, contact groups, hosts,hostgroups,services&#8230;to get going with monitoring your network, hosts, services.</p>
<h3>Related Post</h3><ul class="related_post"><li><a href="http://www.netmonitoring.org/nagios/install-and-configure-nagios-2x-on-debian-40-with-apache/" title="Install and Configure Nagios 2.x on Debian 4.0 with Apache">Install and Configure Nagios 2.x on Debian 4.0 with Apache</a></li><li><a href="http://www.netmonitoring.org/nagios/two-cool-nagios-applications-on-apple-iphone/" title="Two cool Nagios applications on Apple iPhone">Two cool Nagios applications on Apple iPhone</a></li><li><a href="http://www.netmonitoring.org/nagios/nagios-checker-nagios-alarms-on-your-firefox-status-bar/" title="Nagios Checker &#8211; Nagios Alarms on your Firefox Status bar">Nagios Checker &#8211; Nagios Alarms on your Firefox Status bar</a></li><li><a href="http://www.netmonitoring.org/centreon/install-configure-centreon-network-monitoring-in-debian/" title="Install &#038; Configure Centreon Network Monitoring in Debian">Install &#038; Configure Centreon Network Monitoring in Debian</a></li><li><a href="http://www.netmonitoring.org/centreon/configure-centreon-setup-and-database/" title="Configure Centreon setup and database">Configure Centreon setup and database</a></li><li><a href="http://www.netmonitoring.org/centreon/install-centreon-network-monitoring-binaries-in-debian/" title="Install Centreon Network Monitoring binaries in Debian">Install Centreon Network Monitoring binaries in Debian</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netmonitoring.org/nagios/configure-nagios-web-interface-cgi-and-user-authentication/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

