Click to Play

CES: Samsung's Upcoming...
New from Samsung in 2009 is a line of LED TVs that is sure to set a new standard for quality and energy efficiency. The crown jewels of this line are the LED...

Recent Articles

Is Linux Truly Ready For The Main Stream?
Is just being free and open source the reason for increase in its user share as compared to its competitors? May be a better reason can be its competitive...

Linux Beta Implementation Of Silverlight
If I were to inquire Linux users about how would they scrutinize various applications on the Web if the...

RedHat Releases Fedora 10
Let's talk history! Fedora was created in late 2003 as a Linux based Operating System which gives the users an admittance from anywhere in the world to the most...


01.30.09

How To Monitor Your Linux Network Bandwidth Usage

By Pete Freitag

Did you ever wonder how much bandwidth your linux server is using each month, or each day?

There are a number of tools that can give you this information, but many of them are packet sniffers, and can effect performance.

I recently came across a really nice lightweight tool that monitors your network bandwidth utilization on Linux (actually I just learned that it also works on BSD operating systems as well, eg. Mac OSX , so I am running it on my desktop now as well) called vnstat. It works by analyzing the /proc stats on Linux (at regular intervals using a cron job), and then stores summaries in a really small database.

You can then access these stats whenever using the vnstat command line utility.

For example if you run vnstat -m it will generate a nice plain text summary report:



That particular server is only being used for backups right now, so the numbers are kind of low.

Smart IT For Tough Times - Click here

Highly recommend this tool if you are looking for a simple and lightweight way to monitor network bandwidth.

Here's a full list of command line options:



Comments


About the Author:
Pete Freitag (http://www.petefreitag.com/) is a software engineer, and web developer located in central new york.

Pete specializes in the HTTP protocol, web services, xml, java, and coldfusion. In 2003 Pete published the ColdFusion MX Developers Cookbook with SAMs Publishing.

Pete owns a Firm called Foundeo (http://foundeo.com/) that specializes in Web Consulting, and Products for Web Developers.
LinuxProNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com DevWebPro.com


About LinuxProNews
LinuxProNews is a collection of news and commentary designed to keep you in step with the ever evolving landscape of Linux environments. Opensource News and Advice for Linux Professionals




-- LinuxProNews is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2009 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article



Opensource News and Advice for Linux Professionals LinuxProNews News Archives About Us Feedback LinuxProNews Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact