<?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; frontend</title>
	<atom:link href="http://www.netmonitoring.org/tag/frontend/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>Thu, 13 Aug 2009 05:31:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>vnStat PHP Frontend &#8211; Install &amp; Config Webinterface for vnStat</title>
		<link>http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-php-frontend-install-config-webinterface-for-vnstat/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=vnstat-php-frontend-install-config-webinterface-for-vnstat</link>
		<comments>http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-php-frontend-install-config-webinterface-for-vnstat/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 23:07:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[vnStat Bandwidth Monitoring]]></category>
		<category><![CDATA[Bandwidth-Monitoring]]></category>
		<category><![CDATA[frontend]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[network-monitoring]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[vnStat]]></category>

		<guid isPermaLink="false">http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-php-frontend-install-config-webinterface-for-vnstat/</guid>
		<description><![CDATA[B. Dijkstra at SQWEEK.com has written a simple PHP web frontend for vnStat. The latest stable version is 1.4.1 and is available for download here vnStat PHP Frontend requires Apache Webserver (use Apache2.2.3 here) PHP (use PHP5.2.0-8) GD Image librariesvnStat already installed So lets get the prerequisites install. Install PHP5 DebianSystem# aptitude install php5 Install [...]]]></description>
			<content:encoded><![CDATA[<p><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-6006760557805242";
//NM-336
google_ad_slot = "8207385485";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div><br />
B. Dijkstra at <a title="SQWEEK" href="http://www.sqweek.com" target="_blank">SQWEEK.com</a> has written a simple PHP web frontend for vnStat. The latest stable version is 1.4.1 and is available for download <a title="vnStat PHP Frontend download" href="http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.4.1.tar.gz" target="_blank">here</a></p>
<p>vnStat PHP Frontend requires<br />
<strong><br />
</strong></p>
<blockquote><p><strong>Apache Webserver (use Apache2.2.3 here)</strong></p>
<p><strong>PHP (use PHP5.2.0-8)</strong></p>
<p><strong>GD Image libraries</strong><strong>vnStat already installed</strong></p></blockquote>
<p><span id="more-43"></span> So lets get the prerequisites install.</p>
<p><span style="text-decoration: underline;"><strong>Install PHP5</strong></span></p>
<blockquote><p><strong>DebianSystem# aptitude install php5</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Install GD Image Libraries<br />
</strong></span></p>
<blockquote><p><strong>DebianSystem# aptitude install php5-gd</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Install Apache2 Webserver</strong></span></p>
<blockquote><p><strong>DebianSystem# aptitude install apache2</strong></p></blockquote>
<p>Now, the pre-requisites are installed. You need to have a functional vnStat running on the system. For install instructions <a title="vnStat Network Traffic Monitor installation" href="http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-network-trafficbandwidth-monitoring-for-linux/" target="_blank">click here</a></p>
<p><span style="text-decoration: underline;"><strong>Download vnStat PHP Frontend</strong></span></p>
<p>Download the vnStat PHP Frontend from <a title="vnStat Download" href="http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.3.tar.gz" target="_blank">here</a><br />
<strong><br />
</strong></p>
<blockquote><p><strong>DebianSystem# wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.4.1.tar.gz</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Unzip &amp; Untar the files</strong></span></p>
<blockquote><p><strong>DebianSystem# tar -zxvf vnstat_php_frontend-1.4.1.tar.gz</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Move the files to Apache Webserver Root</strong></span></p>
<blockquote><p><strong>DebianSystem# mv vnstat_php_frontend-1.4.1 /var/www/vnstat</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Edit Config file for the Interfaces</strong></span></p>
<blockquote><p><strong>DebianSystem# vi config.php</strong></p></blockquote>
<p>Look for</p>
<p><strong><em>$iface_list = array(&#8216;eth0&#8242;);</em></strong></p>
<p><strong><em>and</em></strong></p>
<p><strong><em>$iface_title['eth0'] = &#8216;Internal&#8217;;<br />
//$iface_title['eth1'] = &#8216;Internet&#8217;;<br />
//$iface_title['sixxs'] = &#8216;SixXS IPv6&#8242;;</em></strong></p>
<p>and alter it to your systems requirement acfordingly (say change name of interfaces or add multiple interfaces)</p>
<p><strong>Example</strong></p>
<p><strong>$iface_list = array(&#8216;eth0&#8242; , &#8216;eth1&#8242;);<br />
</strong><br />
Now, that all is done, simply access the site and you can see the vnStat stats with graphs that you would otherwise see only in console.</p>
<h3>Related Post</h3><ul class="related_post"><li><a href="http://www.netmonitoring.org/vnstat-bandwidth-monitoring/install-and-run-vnstat-as-a-non-root-user/" title="Install and run vnStat as a Non-Root user">Install and run vnStat as a Non-Root user</a></li><li><a href="http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-network-trafficbandwidth-monitoring-for-linux/" title="vnStat Network traffic/Bandwidth Monitoring for Linux">vnStat Network traffic/Bandwidth Monitoring for Linux</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><li><a href="http://www.netmonitoring.org/centreon/install-pre-requisites-for-centreon-network-monitoring-in-debian/" title="Install pre-requisites for Centreon Network Monitoring in Debian">Install pre-requisites for Centreon Network Monitoring in Debian</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-php-frontend-install-config-webinterface-for-vnstat/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
