LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-24-2012, 08:35 PM   #1
mrpurple
Member
 
Registered: May 2010
Posts: 50

Rep: Reputation: 1
monitor internet usage with simple setup


A popular (unanswered) question is "How can I monitor which computer on my network is using all my bandwidth?" Does anyone have a nice easy answer?

I thought I could build a box between my router and my switch and monitor which computers are using up all the bandwidth, but I cannot find a simple "install this version of linux onto said box with two nics and configure like so" answer.

So building up from components would require, I'm guessing, a transparent proxy based on squid with some kind of monitoring addon?

I did manage to get CACTI running on an Ubuntu/Squid box with a transparent proxy, but it was not simple, and the available graphs/SNMP didnt report the desired "who is using up my bandwidth" information anyhow.

I also thought about IPCOP but this doesnt seem to supply the required info either.

Heck, I wouldn't mind if i had to plug a screen into the box, log on, and go through logs which saved traffic against local ips, but alas I know of no such solution.

Seriously, after trying quite hard, I cant find a simple solution to this rather popular problem? So popular (based on the number of people requesting help on this very problem in various forums) I would have thought it had been solved a long time ago - I just cant find it, or havent asked google the right question.

TLDR:
Whos using up my internet bandwidth?
 
Old 05-24-2012, 08:42 PM   #2
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
Have a look at "ntop"
 
Old 05-24-2012, 09:15 PM   #3
mrpurple
Member
 
Registered: May 2010
Posts: 50

Original Poster
Rep: Reputation: 1
Looks very promising, now I have a thread to pull on.
I'm guessing ntop & squid. I'm sure what I need is a mear handfull on command lines.
Thanks again
I may write a nice how-to-forge when I have it sorted.
 
Old 10-23-2012, 09:56 PM   #4
mrpurple
Member
 
Registered: May 2010
Posts: 50

Original Poster
Rep: Reputation: 1
As a matter of fact if you have Squid installed with snmp and you can carry out an snmpwalk successfully you only need to do
Code:
snmpbulkwalk -v2c -Os -Cc -c communitystring hostname:3401 cacheClientHttpKb
Or
Code:
snmpbulkwalk -v2c -Os -Cc -c communitystring hostname:3401 cacheClientHTTPHitKb
To tell you exactly who's generating the most traffic (through the squid cache).
The first command lists all the cache clients and their total traffic from squid and the second lists all the cache clients and the cached traffic from squid.

NB all the OIDs (like cacheClientHTTPHitKb) available are listed here http://wiki.squid-cache.org/Features/Snmp

Instead of mucking about for hours and hours getting a massive tool like cacti to (fail to) generate the graphs I wanted I redirected the outputs of these commands to a file in a cron job and parsed the files in php and then used the php extension "libchart" to graph them. Took me about an hour, and I still may post that how to.

Last edited by mrpurple; 10-30-2012 at 08:56 PM. Reason: additional info
 
  


Reply

Tags
bandwidth, monitoring


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
script to monitor internet usage slac-in-the-box Programming 4 06-16-2011 03:03 PM
Need an application to monitor internet usage firewiz87 Linux - Desktop 4 06-04-2008 01:57 PM
Simple tool to monitor real-time bandwidth usage of all connected hosts on LAN? mattp52 Linux - Networking 5 02-13-2008 11:18 PM
gkrellm Internet Usage Monitor CrownAmbassador Linux - Networking 2 04-13-2007 01:59 PM
Need Help: How to monitor Internet Usage subratabera Linux - Security 2 09-30-2006 08:46 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration