LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-13-2007, 06:23 PM   #1
Jubalint
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 35

Rep: Reputation: 15
Monitoring bandwidth use


Is there a program or a service I can run that will monitor my total bandwidth use over a period of a time?

My problem is that I rent a dedicated server, and I have a limited amount of total bandwidth I'm allowed to use per month. The company doesn't provide me with information on how much bandwidth I'm using in a control panel, so want to find a way to monitor it myself. Mainly because if I go over the allowed bandwidth amount they'll slap me with a hefty fee, and lately I know I've been coming pretty close to using it all.
 
Old 01-13-2007, 06:52 PM   #2
galle
Member
 
Registered: Sep 2003
Location: Bergen, Norway
Distribution: Debian testing
Posts: 69

Rep: Reputation: 16
I use gkrellm. It's not the most fancy looking applet, but it can monitor pretty much anything. I've never tried, but it's probably possible to get it to shut down your network connection when you reach a certain limit.
 
Old 01-13-2007, 07:13 PM   #3
Jubalint
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 35

Original Poster
Rep: Reputation: 15
Oh my mistake, I should have specified that the program needs to either be viewable from the CLI or via a webpage. The server isn't running X at all.
 
Old 01-13-2007, 07:21 PM   #4
chadl
Member
 
Registered: Sep 2005
Location: US
Distribution: Gentoo AMD64 Testing
Posts: 129

Rep: Reputation: 16
Although this is not ideal, I have found it to work:
If you run ifconfig, you will notice that it gives you the amount of data transfered (in two parts, RX and TX, for received data and transmitted data, respectively) since the last reboot. If you were to write this value down at the end of every month, and subtract the current value from the recorded value, it would tell you the amount of data transfered during that month.
 
Old 01-13-2007, 07:50 PM   #5
galle
Member
 
Registered: Sep 2003
Location: Bergen, Norway
Distribution: Debian testing
Posts: 69

Rep: Reputation: 16
So you want to monitor the server from another computer? I think perhaps gkrellm can do that to. Or you could try ntop. There everything is displayed and configured through a web interface, although it might be a bit bloated for your needs.

EDIT: Found an article regarding gkrellm-server here: http://www.stearns.org/doc/network-m...ng.v0.1.1.html

Last edited by galle; 01-13-2007 at 07:54 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitoring Bandwidth RemusX2 Linux - Networking 4 10-15-2005 03:42 PM
Bandwidth Monitoring basketkase999 Linux - Software 2 01-13-2005 02:44 PM
Bandwidth monitoring vinhhv Linux - Networking 8 07-21-2003 04:12 AM
Bandwidth Monitoring syntac Linux - Networking 2 04-08-2003 02:17 AM
Bandwidth Monitoring allandire Linux - Networking 1 06-25-2002 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration