<?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; Bandwidth-Monitoring</title>
	<atom:link href="http://www.netmonitoring.org/tag/bandwidth-monitoring/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>DarkStat &#8211; Network Bandwidth/Traffic monitoring for Linux *NIX</title>
		<link>http://www.netmonitoring.org/darkstat-bandwidth-monitoring/darkstat-network-bandwidthtraffic-monitoring-for-linux-nix/</link>
		<comments>http://www.netmonitoring.org/darkstat-bandwidth-monitoring/darkstat-network-bandwidthtraffic-monitoring-for-linux-nix/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 20:19:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DarkStat Bandwidth Monitoring]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[Bandwidth-Monitoring]]></category>
		<category><![CDATA[cable]]></category>
		<category><![CDATA[darkstat]]></category>
		<category><![CDATA[dsl]]></category>
		<category><![CDATA[firewalls]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[traffic-monitoring]]></category>

		<guid isPermaLink="false">http://www.netmonitoring.org/darkstat-bandwidth-monitoring/darkstat-network-bandwidthtraffic-monitoring-for-linux-nix/</guid>
		<description><![CDATA[DarkStat is a simple nTop like Packet Sniffing Network Traffic/Bandwidth monitoring utility for your Linux/Unix. DarkStat relies on libpcap and presents simple webinterface with nice graphs and stats aut-refreshed. The main advantage of Darkstat is that of the footprint and the memory, CPU usage. DarkStat can run on most of the UNIX, Linux, FreeBSD,OpenBSD,NetBSD,Solaris,Mac OS. <a href='http://www.netmonitoring.org/darkstat-bandwidth-monitoring/darkstat-network-bandwidthtraffic-monitoring-for-linux-nix/'>[...]</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><br />
DarkStat is a simple nTop like Packet Sniffing Network Traffic/Bandwidth monitoring utility for your Linux/Unix. DarkStat relies on libpcap and presents simple webinterface with nice graphs and stats aut-refreshed. The main advantage of Darkstat is that of the footprint and the memory, CPU usage.</p>
<p>DarkStat can run on most of the UNIX, Linux, FreeBSD,OpenBSD,NetBSD,Solaris,Mac OS. There are also packages for Gentoo Opensuse and Debian</p>
<p><span id="more-44"></span> Installation is fairly straight forward and no configuration is required. Rather if required you can play around. DarkStat also has a nice Man page.</p>
<p>DarkStat runs in the background of many Cable/DSL routers and are used in <a href="http://www.itsyourip.com/Security/pfsense-m0n0wall-based-opensource-firewall-using-old-pc/" title="pfSense OpenSource firewall" target="_blank">pfSense</a>, <a href="http://www.itsyourip.com/Security/redwall-firewall-opensource-linux-firewall-using-an-old-pc/" title="RedWall OpenSource Firewall" target="_blank">redWall</a> opensource firewalls.</p>
<p>Lets install DarkStat in Debian here</p>
<p>As always, install the pre-requisites</p>
<p><strong><u>Install ZLib</u></strong></p>
<blockquote><p><strong>debian4R2Base:~/darkstat-3.0.707# aptitude install zlib1g-dev</strong></p></blockquote>
<p><u><strong>Install libpcap</strong></u></p>
<blockquote><p><strong>debian4R2Base:~/darkstat-3.0.707# aptitude install libpcap-dev</strong></p></blockquote>
<p>That&#8217;s it lets get installing DarkStat</p>
<p>If you choose to install from the Debian Packages then it is as simple as using the aptitude utility</p>
<p><u><strong>Install DarkStat as Debian package</strong></u></p>
<blockquote><p><strong>debian4R2Base:~/darkstat-3.0.707# aptitude install darkstat</strong></p></blockquote>
<p><u><strong>Install from Source</strong></u></p>
<p>If you want to install from source then here we are</p>
<p>Download from <a href="http://dmr.ath.cx/net/darkstat/darkstat-3.0.707.tar.bz2" title="DarkStat - Network traffic Bandwidth Monitoring" target="_blank">here</a></p>
<blockquote><p><strong>debian4R2Base:~# http://dmr.ath.cx/net/darkstat/darkstat-3.0.707.tar.bz2</strong></p></blockquote>
<p><u><strong>Unzip and Untar</strong></u></p>
<blockquote><p><strong>debian4R2Base:~/# tar -jxvf darkstat-3.0.707.tar.bz2</strong></p></blockquote>
<p><u><strong>Compile and Install</strong></u></p>
<blockquote><p><strong>debian4R2Base:~/# cd darkstat-3.0.707</strong></p>
<p><strong>debian4R2Base:~/darkstat-3.0.707# ./configure</strong></p></blockquote>
<p>Sometime throws error so run with the &#8220;&#8211;with-chroot-dir&#8221; arguement</p>
<blockquote><p><strong>debian4R2Base:~/darkstat-3.0.707# ./configure &#8211;with-chroot-dir</strong></p></blockquote>
<blockquote><p><strong>debian4R2Base:~/darkstat-3.0.707# make &amp;&amp; make install</strong></p></blockquote>
<p>That completes the installation.</p>
<p><u><strong>To start DarkStat</strong></u></p>
<blockquote><p><strong>debian4R2Base:~/darkstat-3.0.707# darkstat -i eth0</strong></p></blockquote>
<p>where &#8220;eth0&#8243; is the interface that you monitor traffic coming in and going out. Change it as in your system.</p>
<p>Now, darkstat starts and sniffs in the background and loads a simple web interface at <strong>http://localhost:666</strong> or if you are browsing from a different machine then <strong>http://&lt;IP Address&gt;:666</strong> (example: <strong>http://192.168.19.131:666</strong>)</p>
<p>Once in, no explanation needed all depicted in simple easy graphs showing almost realtime info and historical. So with the hosts and ports. Great tool no wonder used in Cable/DSl routers and in well known OpenSource Firewalls. Well Done!!!</p>
<p><img src="http://www.netmonitoring.org/wp-content/uploads/2008/03/darkstathosts.PNG" alt="DarkStat hosts" /></p>
<p><img src="http://www.netmonitoring.org/wp-content/uploads/2008/03/darkstat.PNG" alt="DarkStat_graphs" /></p>
<h3>Related Post</h3><ul class="related_post"><li><a href="http://www.netmonitoring.org/bwm-ng-network-disk-monitoring/bwm-ng-network-bandwidth-disk-io-monitoring/" title="BWM-NG &#8211; Network Bandwidth &#038; Disk I/O Monitoring">BWM-NG &#8211; Network Bandwidth &#038; Disk I/O Monitoring</a></li><li><a href="http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-php-frontend-install-config-webinterface-for-vnstat/" title="vnStat PHP Frontend &#8211; Install &#038; Config Webinterface for vnStat">vnStat PHP Frontend &#8211; Install &#038; Config Webinterface for vnStat</a></li><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></ul>]]></content:encoded>
			<wfw:commentRss>http://www.netmonitoring.org/darkstat-bandwidth-monitoring/darkstat-network-bandwidthtraffic-monitoring-for-linux-nix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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/</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 <a href='http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-php-frontend-install-config-webinterface-for-vnstat/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><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>7</slash:comments>
		</item>
		<item>
		<title>Install and run vnStat as a Non-Root user</title>
		<link>http://www.netmonitoring.org/vnstat-bandwidth-monitoring/install-and-run-vnstat-as-a-non-root-user/</link>
		<comments>http://www.netmonitoring.org/vnstat-bandwidth-monitoring/install-and-run-vnstat-as-a-non-root-user/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 22:26:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[vnStat Bandwidth Monitoring]]></category>
		<category><![CDATA[Bandwidth-Monitoring]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[network-monitoring]]></category>
		<category><![CDATA[non-root]]></category>
		<category><![CDATA[vnStat]]></category>

		<guid isPermaLink="false">http://www.netmonitoring.org/vnstat-bandwidth-monitoring/install-and-run-vnstat-as-a-non-root-user/</guid>
		<description><![CDATA[One of the advantages of vnStat is that it can be installed and run as a Non-Root user. This can be of a great help to query vnStat of scripts or allow operators to run the vnStat utility. Download vnStat Download vnStat from here DebianSystem# wget http://humdi.net/vnstat/vnstat-1.6.tar.gz Unzip &#38; Untar the downloaded the file DebianSystem# <a href='http://www.netmonitoring.org/vnstat-bandwidth-monitoring/install-and-run-vnstat-as-a-non-root-user/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
One of the advantages of vnStat is that it can be installed and run as a Non-Root user. This can be of a great help to query vnStat of scripts or allow operators to run the vnStat utility.</p>
<p><span id="more-42"></span><u><strong>Download vnStat<br />
</strong></u><br />
Download vnStat from <a href="http://humdi.net/vnstat/vnstat-1.6.tar.gz" title="vnStat Network Traffic Monitor" target="_blank">here</a></p>
<blockquote><p><strong>DebianSystem# wget http://humdi.net/vnstat/vnstat-1.6.tar.gz</strong></p></blockquote>
<p><u><strong>Unzip &amp; Untar the downloaded the file</strong></u></p>
<blockquote><p><strong>DebianSystem# tar -zxvf vnstat-1.6.tar.gz</strong></p></blockquote>
<p><u><strong>ChangeDirectory &amp; Compile</strong></u></p>
<blockquote><p><strong>DebianSystem# cd vnstat-1.6</strong></p>
<p><strong>DebianSystem:/vnstat-1.6# make</strong></p></blockquote>
<p><u><strong>Create Database Directory</strong></u></p>
<p>If there was no errors, copy src/vnstat to some directory included in $PATH variable(say ~/bin/) and create the database directory.</p>
<blockquote><p><strong>DebianSystem# cp src/vnstat ~/bin/</strong><br />
<strong>DebianSystem# cp cfg/vnstat.conf ~/.vnstatrc</strong><br />
<strong>DebianSystem# mkdir ~/.vnstat</strong></p></blockquote>
<p><u><strong>Test Kernel compatibility</strong></u></p>
<blockquote><p><strong>DebianSystem# vnstat &#8211;testkernel</strong></p></blockquote>
<p><u><strong>Edit Config file &amp; Add Database Directory<br />
</strong></u></p>
<blockquote><p><strong>DebianSystem# vi ~/.vnstatrc</strong></p></blockquote>
<p>Locate</p>
<p><em><strong>DatabaseDir &#8220;/var/lib/vnstat&#8221;<br />
</strong></em><br />
and replace with</p>
<p><em><strong>DatabaseDir &#8220;/pathtoyourhomedir/.vnstat&#8221;<br />
</strong></em><br />
and save the file.</p>
<p>Next every interface that should be monitored needs to be added to vnStat. This creates a database for each of the interface.</p>
<blockquote><p><strong>DebianSystem# vnstat -u -i eth0</strong></p></blockquote>
<p>where eth0 is the interface name. Change it to the interface on your system.</p>
<p><u><strong>CRON Job</strong></u><br />
Add a crontab job entry for vnStat.</p>
<blockquote><p><strong>DebianSystem# crontab -e</strong></p></blockquote>
<p>and add the following line</p>
<blockquote><p><strong>*/5 * * * * ~/bin/vnstat -u</strong></p></blockquote>
<p>Allow it to collect enough traffic information after which run vnstat</p>
<blockquote><p><strong>DebianSystem# vnstat</strong></p></blockquote>
<p>Also, in any case you can check the config file <strong>~/.vnstatrc</strong> for interface and other settings.</p>
<p>For more options and examples for the command, <a href="http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-network-trafficbandwidth-monitoring-for-linux/" title="vnStat Network Traffic Monitor" target="_blank">click here</a></p>
<h3>Related Post</h3><ul class="related_post"><li><a href="http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-php-frontend-install-config-webinterface-for-vnstat/" title="vnStat PHP Frontend &#8211; Install &#038; Config Webinterface for vnStat">vnStat PHP Frontend &#8211; Install &#038; Config Webinterface for vnStat</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/darkstat-bandwidth-monitoring/darkstat-network-bandwidthtraffic-monitoring-for-linux-nix/" title="DarkStat &#8211; Network Bandwidth/Traffic monitoring for Linux *NIX">DarkStat &#8211; Network Bandwidth/Traffic monitoring for Linux *NIX</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/vnstat-bandwidth-monitoring/install-and-run-vnstat-as-a-non-root-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vnStat Network traffic/Bandwidth Monitoring for Linux</title>
		<link>http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-network-trafficbandwidth-monitoring-for-linux/</link>
		<comments>http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-network-trafficbandwidth-monitoring-for-linux/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 21:59:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[vnStat Bandwidth Monitoring]]></category>
		<category><![CDATA[Bandwidth-Monitoring]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[network-monitoring]]></category>
		<category><![CDATA[vnStat]]></category>

		<guid isPermaLink="false">http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-network-trafficbandwidth-monitoring-for-linux/</guid>
		<description><![CDATA[vnStat is a free OpenSource (GPL License) network traffic monitor for Linux that keeps a log of daily network traffic for the selected interface(s) on the system. Unlike other Network Traffic monitors, vnStat analyzes the traffic information from the /proc filesystem. And, vnStat can be used even without root permissions. vnStat maintains a database for <a href='http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-network-trafficbandwidth-monitoring-for-linux/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
vnStat is a free OpenSource (GPL License) network traffic monitor for Linux that keeps a log of daily network traffic for the selected interface(s) on the system. Unlike other Network Traffic monitors, vnStat analyzes the traffic information from the /proc filesystem. And, vnStat can be used even without root permissions.</p>
<p>vnStat maintains a database for every interface for which the network traffic analysed. We can watch the live Traffic status on the selected interface(s) or run reports on Hourly, Daily, Weekly and Monthly bandwidth statics for the selected network interfaces.</p>
<p><span id="more-41"></span><br />
To install vnStat, all you need is the required C compiler installed.</p>
<p>Here I install vnStat on a Debian 4.0R2 system</p>
<p><u><strong>Download vnStat</strong></u></p>
<p>Download the vnStat from <a href="http://humdi.net/vnstat/vnstat-1.6.tar.gz" title="vnStat Network Traffic Monitor" target="_blank">here</a></p>
<blockquote><p><strong>DebianSystem# wget http://humdi.net/vnstat/vnstat-1.6.tar.gz</strong></p></blockquote>
<p><u><strong>Unzip &amp; Untar the downloaded the file</strong></u></p>
<blockquote><p><strong>DebianSystem# tar -zxvf vnstat-1.6.tar.gz</strong></p></blockquote>
<p><u><strong>Install C Compilers</strong></u></p>
<p>Ensure that the required C compilers are installed in the system. In debian to install the required packages to compile</p>
<blockquote><p><strong>DebianSystem# aptitude install build-essentials</strong></p></blockquote>
<p><u><strong>ChangeDirectory &amp; Install<br />
</strong></u><strong><br />
</strong></p>
<blockquote><p><strong>DebianSystem# cd vnstat-1.6</strong></p>
<p><strong>DebianSystem:/vnstat-1.6# make</strong></p>
<p><strong>DebianSystem:/vnstat-1.6# make all</strong></p></blockquote>
<p>That installs the vnStat Bandwidth monitoring software.</p>
<p><u><strong>Test the Kernel</strong></u></p>
<blockquote><p><strong>DebianSystem# vnstat &#8211;testkernel</strong></p></blockquote>
<p><u><strong>Create Interface Database</strong></u></p>
<p>Run the following to create a database for each of the interfaces that you would want to monitor traffic bandwidth on.</p>
<blockquote><p><strong>DebianSystem# vnu -u -i eth0</strong></p></blockquote>
<p>This creates a database for the interface eth0</p>
<p>Now, give it a few minutes to collect enough data to provide useful statistics.</p>
<p>To show the summary simply type vnstat</p>
<blockquote><p><strong>DebianSystem# vnstat<br />
</strong>Database updated: Sun Dec  2 22:20:01 2007</p>
<p>inet (eth0)</p>
<p>received:     735.00 GB (48.9%)<br />
transmitted:     769.38 GB (51.1%)<br />
total:       1.47 TB</p>
<p>rx     |     tx     |  total<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;<br />
yesterday     23.35 MB |   20.25 MB |   43.60 MB<br />
today     27.47 MB |   21.37 MB |   48.84 MB<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;<br />
estimated        29 MB |      22 MB |      51 MB</p></blockquote>
<p><em><strong>To show hourly statistics<br />
</strong></em></p>
<blockquote><p><strong>DebianSystem# vnstat -h<br />
</strong> inet (eth0)                                                              22:15<br />
^                                                                 r<br />
|                                                                 rt r<br />
|                                                                 rt rt<br />
|                                                                 rt rt<br />
|                                                              r  rt rt<br />
|     rt                                                       r  rt rt<br />
|     rt                                                 rt    rt rt rt<br />
|  rt rt rt                                  r  r  rt r  rt r  rt rt rt<br />
|  rt rt rt                               r  rt rt rt rt rt rt rt rt rt<br />
|  rt rt rt rt r              r     r  r  r  rt rt rt rt rt rt rt rt rt rt<br />
-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&gt;<br />
|  23 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22</p>
<p>h   rx (kB)    tx (kB)      h   rx (kB)    tx (kB)      h   rx (kB)    tx (kB)<br />
23      1,352      1,219    07        277        151    15      1,352      1,165<br />
00      2,281      2,140    08        402        158    16      1,487        878<br />
01      1,485      1,261    09        290        155    17      1,752      1,559<br />
02        648        522    10        589        185    18      1,455      1,001<br />
03        392        261    11        650        202    19      2,332      1,835<br />
04        323        240    12        907        350    20      3,881      3,619<br />
05        311        179    13      1,234      1,044    21      3,695      3,237<br />
06        281        173    14      1,221        812    22        675        591</p></blockquote>
<p>Other options are</p>
<blockquote><p><strong>   -q,  &#8211;query         query database<br />
-h,  &#8211;hours         show hours<br />
-d,  &#8211;days         show days<br />
-m,  &#8211;months         show months<br />
-w,  &#8211;weeks         show weeks<br />
-t,  &#8211;top10         show top10<br />
-s,  &#8211;short         use short output<br />
-u,  &#8211;update         update database<br />
-i,  &#8211;iface         change interface (default: eth0)<br />
-?,  &#8211;help         short help<br />
-v,  &#8211;version         show version<br />
-tr, &#8211;traffic         calculate traffic<br />
-l,  &#8211;live         show transfer rate in real time<br />
</strong></p></blockquote>
<h3>Related Post</h3><ul class="related_post"><li><a href="http://www.netmonitoring.org/vnstat-bandwidth-monitoring/vnstat-php-frontend-install-config-webinterface-for-vnstat/" title="vnStat PHP Frontend &#8211; Install &#038; Config Webinterface for vnStat">vnStat PHP Frontend &#8211; Install &#038; Config Webinterface for vnStat</a></li><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/darkstat-bandwidth-monitoring/darkstat-network-bandwidthtraffic-monitoring-for-linux-nix/" title="DarkStat &#8211; Network Bandwidth/Traffic monitoring for Linux *NIX">DarkStat &#8211; Network Bandwidth/Traffic monitoring for Linux *NIX</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/vnstat-bandwidth-monitoring/vnstat-network-trafficbandwidth-monitoring-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

