{"id":253,"date":"2011-03-01T16:14:02","date_gmt":"2011-03-01T21:14:02","guid":{"rendered":"http:\/\/www.serverprontouniversity.com\/?p=253"},"modified":"2018-08-21T10:58:20","modified_gmt":"2018-08-21T15:58:20","slug":"support-of-the-day-track-traffic-usage-in-linux","status":"publish","type":"post","link":"https:\/\/www.serverpronto.com\/spu\/2011\/03\/support-of-the-day-track-traffic-usage-in-linux\/","title":{"rendered":"Track traffic usage in Linux"},"content":{"rendered":"<p>We recommend installing a software on your server to keep track of how much bandwidth you are using. There are many open source solutions available one of them is vnStat.<\/p>\n<p><strong>vnStat<\/strong>:<\/p>\n<p style=\"padding-left: 30px;\"><em>vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface. It uses the network interface statistics provided by the kernel as the information source. This means that vnStat won&#8217;t actually be sniffing any traffic and also ensures light use of system resources.<\/em><\/p>\n<p><strong>Install<\/strong>:<\/p>\n<p>Ubuntu\/ Debian:<\/p>\n<pre style=\"padding-left: 30px;\"><strong>cd<\/strong> <strong>\/<\/strong>usr<strong>\/<\/strong>local<strong>\/<\/strong>src<strong>\r\nwget<\/strong> <code>http:\/\/humdi.net\/vnstat\/vnstat-1.10.tar.gz<\/code><strong> tar<\/strong> -zxvf vnstat-1.10.tar.gz<strong> cd<\/strong> vnstat-1.10<strong> make<\/strong> <strong>&amp;&amp;<\/strong> <strong>make<\/strong> <strong>install<\/strong> vnstat -u -i eth0<strong> chmod<\/strong> 700 <strong>\/<\/strong>usr<strong>\/<\/strong>bin<strong>\/<\/strong>vnstat<strong> chmod<\/strong> 700 <strong>\/<\/strong>var<strong>\/<\/strong>lib<strong>\/<\/strong>vnstat<strong>\/<\/strong> -R<\/pre>\n<p><a href=\"http:\/\/www.dotcomunderground.com\/blogs\/2010\/03\/05\/install-vnstat-network-traffic-monitor-linux\/\">http:\/\/www.dotcomunderground.com\/blogs\/2010\/03\/05\/install-vnstat-network-traffic-monitor-linux\/<\/a><\/p>\n<p>CentOS:<\/p>\n<p><a href=\"http:\/\/forums.serverbeach.com\/showthread.php?7193-CentOS-Bandwidth-tool-vnstat-installation-walk-through\">http:\/\/forums.serverbeach.com\/showthread.php?7193-CentOS-Bandwidth-tool-vnstat-installation-walk-through<\/a><\/p>\n<p><strong>For more information on vnStat visit:<\/strong> <a href=\"http:\/\/humdi.net\/vnstat\/\">http:\/\/humdi.net\/vnstat\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.serverpronto.com\">ServerPronto<\/a> offers the best affordable and secure hosting service in all dedicated server packages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We recommend installing a software on your server to keep track of how much bandwidth you are using. There are many open source solutions available one of them is vnStat. vnStat: vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface. It uses<\/p>\n","protected":false},"author":2,"featured_media":1716,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[123,17,112,27,22,332,18],"class_list":["post-253","post","type-post","status-publish","format-standard","has-post-thumbnail","category-support-of-the-day","tag-cloud","tag-dedicated-server","tag-hosting","tag-linux","tag-server","tag-traffic","tag-web-hosting"],"_links":{"self":[{"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/posts\/253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/comments?post=253"}],"version-history":[{"count":8,"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"predecessor-version":[{"id":2690,"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/posts\/253\/revisions\/2690"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/media\/1716"}],"wp:attachment":[{"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serverpronto.com\/spu\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}