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 08-14-2010, 01:51 PM   #1
coolest_2008
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
Bandwidth Monitoring Help!


Hey Guys,
I have recently purchased dedicated box for game servers, I just wanted to install bandwidth monitoring software, however i have read comments regarding it as it uses lot of cpu resources. There is another method to monitor bandwidth using iptables. But that article is too complex for me:
www.linux.com/archive/articles/50649]Linux.com
I just want to check my overall bandwidth not from any particular ports.
Can anyone help me in teaching commands to do that, as my new to Fedora. I use ssh to control my server.

THANKS
 
Old 08-14-2010, 10:22 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
ifconfig will show you the total number of bytes transmitted and received on each interface, e.g.
Code:
eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          ...
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44200768 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46769640 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:25349904345 (23.6 GiB)  TX bytes:32515615034 (30.2 GiB)
Subtracting the output from the previous time the command was run will
give you number of bytes received/transmitted in that period. Dividing
by the time period, you will have the bandwidth as well.

Last edited by Berhanie; 08-14-2010 at 10:42 PM.
 
1 members found this post helpful.
Old 08-15-2010, 02:24 AM   #3
coolest_2008
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
First of all thanks a lot for replying me.
I am just wondering I have already downloaded around 5GB of data(approximately) and this is what i get by running the command
RX bytes:24321584 (23.1 MiB) TX bytes:42002829 (40.0 MiB)

which is very less please help
thanks
 
Old 08-15-2010, 03:21 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
has the machine been rebooted since the download?

otherwise, it might have to do with the fact that yours
is a 32-bit machine (mine is 64-bit). you might have to do
a little research to find the max counter size (e.g. 2^32),
and do the subtraction modulo that number (and run ifconfig
often).

Last edited by Berhanie; 08-15-2010 at 03:38 AM.
 
1 members found this post helpful.
Old 08-15-2010, 07:26 AM   #5
LVsFINEST
Member
 
Registered: Aug 2006
Posts: 99

Rep: Reputation: 21
Another possible option is using SNMP. If by chance you have some old hardware lying around, you could install Apache+OpenNMS on it to offload most of the load from your game server. Then all your game server box would have to run is snmpd, which doesn't use alot of resources. This would give you visual graphs of bandwidth usage over time per interface, and if your switch/router/gateway supports SNMP, you could pull bandwidth stats from that too.
 
Old 08-16-2010, 11:08 AM   #6
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 23
http://bwmon.sourceforge.net/

bwmon is an opensource real-time bandwidth monitoring tool I use all over the place.

top shows is using 0% of everything all day long:

26642 root 16 0 15472 944 688 S 0.0 0.0 0:00.00 bwmon
 
Old 08-22-2010, 06:49 PM   #7
coolest_2008
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Hey
I would like to thanks all of you for replying me.
I am using ifconfig to check my bandwidth and i rebooted my machine thats why it didnt show up the previously downloaded bandwidth.
Once again thanks
 
  


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
bandwidth monitoring jone kim Linux - Networking 1 05-01-2010 10:07 AM
Bandwidth Monitoring bruceblacklaws Linux - Networking 4 05-12-2009 04:00 AM
Bandwidth Monitoring deathsfriend99 Linux - Networking 2 05-10-2009 06:20 AM
Monitoring Bandwidth RemusX2 Linux - Networking 4 10-15-2005 03:42 PM
Bandwidth Monitoring basketkase999 Linux - Software 2 01-13-2005 02:44 PM

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

All times are GMT -5. The time now is 10:24 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