Solved

Linux(CENTOS) Bandwidth usage monitoring by ip

Posted on 2009-07-05
15
1,348 Views
Last Modified: 2013-12-07
Say, My friend an I are sharing the same server. We each run our traffic via seperate IP's. What software an you suggest to monitor our bandwidth usage. We require our individual usage from 22nd to 21st of the next months.
0
Comment
Question by:shaunwingin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 5
15 Comments
 
LVL 14

Expert Comment

by:Roachy1979
ID: 24780072
I'd use ntop to do this....If you are proxying all protocols on the same server this will make it easier....it'll give you a breakdown by protocol too...
0
 

Author Comment

by:shaunwingin
ID: 24780509
Tx, but how will I know the usage over a month period?
0
 

Author Comment

by:shaunwingin
ID: 24781440
I was mistaken as to what ntop waas. Trying to install ntop - 3.3.9 on CENTOS5.2 64 bit
install goes through untill make install but returns error when run make install-data-as
make: *** No rule to make target `install-data-as'.  Stop.

and if I run it with
/usr/local/bin/ntop -d -L -u ntop -P /usr/local/var/ntop --skip-version-check --use-syslog=daemon
I get
Sun Jul  5 23:56:16 2009  NOTE: Interface merge enabled by default
Sun Jul  5 23:56:16 2009  Initializing gdbm databases
[root@messaging ntop-3.3.9]# Error Opening file ./GeoLiteCity.dat
Error Opening file ./GeoIPASNum.dat

Please help
0
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

 

Author Comment

by:shaunwingin
ID: 24781442
0
 

Author Comment

by:shaunwingin
ID: 24781465
By the way ntop is running even though we getting above errors.
How can I run a command line veriosn to display utp traffic to a specific ip for example and sum this over a specific period?
0
 
LVL 14

Accepted Solution

by:
Roachy1979 earned 500 total points
ID: 24783439
The error you are getting relates to the GeoIP reporting area of ntop...you should be fine using for your purposes without (it just allows ntop to report on the countries you are connecting to/from). If you want to fix these errors though, download these files and recompile:

http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
http://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz

If you go to All Protocols within the web interface you should be able to see traffic to and from specific hosts for a given period (either UDP or TCP)
0
 

Author Comment

by:shaunwingin
ID: 24783567
Tx. Is there a way to get this info from the command line. I can't get web access from the outside to the server. I used lynx to see the web stats but it is very hard to figure out whats going on with it.
0
 
LVL 14

Expert Comment

by:Roachy1979
ID: 24784007
if you can ssh to the box you can set it up as a socks proxy.  Just ssh to the Centos box with the

ssh -D 9999 username@ipaddress

Then set your browser to use localhost port 9999 as the proxy address.....you will then be browsing using the Centos box as a proxy....so you'll be able to browse to http://serverip:3000 to see ntop graphs....

Unfortunately there used to be a module called intop for ntop that allowed command line output but that doesn't seem to exist any more....



0
 

Author Comment

by:shaunwingin
ID: 24785269
Tx. Can you tell me how to setup the Tunnel in Putty as I login from a Windows box.
0
 
LVL 14

Expert Comment

by:Roachy1979
ID: 24785321
No problem  - have a look at:

http://vectrosecurity.com/content/view/67/26/

Obviously it doesn't matter what port you use (as long as it's not used by something else or allocated to another service) the guide above uses 9853, I generally use 9999 but it's your call...

Hope this helps

0
 

Author Comment

by:shaunwingin
ID: 24908374
Still trying to ssh in...Will get back to you.
0
 

Author Comment

by:shaunwingin
ID: 25339360
Still to test
0
 

Author Comment

by:shaunwingin
ID: 25382256
Still to test...
0
 
LVL 14

Expert Comment

by:Roachy1979
ID: 25382454
No worries !
0
 

Author Comment

by:shaunwingin
ID: 25417031
"If you go to All Protocols within the web interface you should be able to see traffic to and from specific hosts for a given period (either UDP or TCP)" Can I specify the period I wish to see?
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Jquery Bold 3 specific words in a paragraph 5 41
compare date to getdate() 8 34
Getting robots.txt Error 9 57
grep command usage 10 34
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question