[plug] determining network usage by ip-address

David Buddrige dbuddrige at bigpond.com
Sun Sep 2 18:27:41 WST 2007


I have installed calamaris into /usr/local/calamaris and then written
the following bash script "/usr/bin/squid-report.sh" which does
everything I need:


#!/bin/bash
cat /var/log/squid/access.log | /usr/local/calamaris/calamaris -a | less



thanks heaps everyone for assistance rendered. 8-)

David.

On Sun, 2007-09-02 at 17:43 +0800, Richard Meyer wrote:

> On Sun, 2007-09-02 at 17:28 +0800, David Buddrige wrote:
> > hi all,
> > 
> > I own the house where I live, but since I had several spare bedrooms I
> > thought I'd rent one out to a mate of mine.  I have a broadband
> > internet connection and so to allow my mate also to use the internet,
> > I cranked up squid on my personal computer [running Fedora Core] and
> > connected my mate's computer to my network hub, so now he is able to
> > browse the net using my machine as a proxy - my machine has its own
> > direct internet connection so I'm effectively sharing it with him.
> > 
> > However, I do have a limited [1GB] monthly download limit and it would
> > be handy to see how much each of us uses it.  I have set up my own
> > web-browser to also connect via squid [on the same machine] - my
> > question is this:
> > 
> > Is there any way to get squid to tell me how much network traffic is
> > going through squid based on individual ip addresses ? 
> > 
> > thanks
> > 
> > David. 
> 
> Try Calamaris. According to http://cord.de/tools/squid/calamaris/ It
> appears to give all sorts of reports - I imagine that'll be one. RPMs at
> http://rpmfind.net/linux/rpm2html/search.php?query=calamaris
> 
> http://www.howtoforge.com/monitoring_squid has lots more on monitoring
> Squid.
> 
> HTH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20070902/b41dbb6c/attachment.html>


More information about the plug mailing list