LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-29-2010, 04:22 PM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
monitor bandwidth in squid?


Is there anyway to monitor the current bandwidth in use by a user (NCSA auth) on squid?
Occasionally we get a user downloading too many videos at once, which blocks bandwidth to other users on the network. As I have no idea which user it is until the end of the day (SARG reports), we just restart the squid server to disconnect their downloads - not ideal.
 
Old 01-29-2010, 04:47 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
I'd suggest giving iptraf, ntop, or vnstat a run.
 
Old 01-29-2010, 06:09 PM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by rweaver View Post
I'd suggest giving iptraf, ntop, or vnstat a run.
Does iptraf run on the command line? It seems to have a GUI in all their manuals.
 
Old 01-29-2010, 06:15 PM   #4
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Got it.
Ok, so currently my eth0 is at 4038kbits/sec.
Seems reasonable.
So, I just plug this up when there's a problem, find the IP address.
Then I have to bring up the squid log and cross check the IP?

What is promiscuous mode?
Is there a way to log the actual total bandwidth per hour or 10mins perhaps by IP or does this have to be done through the logging? ...or do I turn logging on and then have to use a log reading tool for iptraf?

Last edited by qwertyjjj; 01-29-2010 at 06:24 PM.
 
Old 01-29-2010, 06:51 PM   #5
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
I lost the SSH link while IPTRAF was running.
Now when I try to go into detailed statistics it says: detailed interface stats alreday monitoring eth0.
How do I stop that so I can view it again?
I tried kill and the process id which I found using pidof iptraf but it won;t stop the program.

Last edited by qwertyjjj; 01-29-2010 at 06:56 PM.
 
Old 01-29-2010, 06:55 PM   #6
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by qwertyjjj View Post
What is promiscuous mode?
?
promiscuous mode, at least as it relates to network cards & is as much as I understand it, is a mode in which the card listens to all packets, not just those destined for the machine itself.

It is pretty much compulsory for a packet sniffing type of utility to use it, otherwise you'd be ignoring some of the traffic on the wire.
 
Old 02-01-2010, 03:52 PM   #7
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
I would suggest running the application in 'screen' if you get disconnected then you can always reconnect to the screen.

screen (will go back to prompt)
ctrl a-d (will disconnect the screen returning you to original prompt)
screen -r (will resume an existing screen, may have to specify the pid)

I wrote a blog article about screen on our company blog a while back and I'm not going to c&p it here if you want more details on how screen works check out the blog.
 
  


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
How Much Bandwidth Can I Save On Squid ? debloxie Linux - Networking 3 07-13-2009 06:32 AM
Help with Squid Bandwidth andybrr Linux - Networking 1 02-03-2007 11:48 PM
Can i allocate bandwidth through Squid ??? winxandlinx Linux - Networking 3 06-23-2006 01:05 AM
single user bandwidth monitor via squid mohsin-mm Linux - Networking 1 11-17-2005 04:28 AM
Squid Bandwidth Limit acompw Linux - Software 2 09-12-2004 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:06 PM.

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