<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.6.2">
</HEAD>
<BODY>
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:<BR>
<BR>
<BR>
#!/bin/bash<BR>
cat /var/log/squid/access.log | /usr/local/calamaris/calamaris -a | less<BR>
<BR>
<BR>
<BR>
thanks heaps everyone for assistance rendered. 8-)<BR>
<BR>
David.<BR>
<BR>
On Sun, 2007-09-02 at 17:43 +0800, Richard Meyer wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Sun, 2007-09-02 at 17:28 +0800, David Buddrige wrote:</FONT>
<FONT COLOR="#000000">> hi all,</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> I own the house where I live, but since I had several spare bedrooms I</FONT>
<FONT COLOR="#000000">> thought I'd rent one out to a mate of mine. I have a broadband</FONT>
<FONT COLOR="#000000">> internet connection and so to allow my mate also to use the internet,</FONT>
<FONT COLOR="#000000">> I cranked up squid on my personal computer [running Fedora Core] and</FONT>
<FONT COLOR="#000000">> connected my mate's computer to my network hub, so now he is able to</FONT>
<FONT COLOR="#000000">> browse the net using my machine as a proxy - my machine has its own</FONT>
<FONT COLOR="#000000">> direct internet connection so I'm effectively sharing it with him.</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> However, I do have a limited [1GB] monthly download limit and it would</FONT>
<FONT COLOR="#000000">> be handy to see how much each of us uses it. I have set up my own</FONT>
<FONT COLOR="#000000">> web-browser to also connect via squid [on the same machine] - my</FONT>
<FONT COLOR="#000000">> question is this:</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Is there any way to get squid to tell me how much network traffic is</FONT>
<FONT COLOR="#000000">> going through squid based on individual ip addresses ? </FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> thanks</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> David. </FONT>
<FONT COLOR="#000000">Try Calamaris. According to <A HREF="http://cord.de/tools/squid/calamaris/">http://cord.de/tools/squid/calamaris/</A> It</FONT>
<FONT COLOR="#000000">appears to give all sorts of reports - I imagine that'll be one. RPMs at</FONT>
<FONT COLOR="#000000"><A HREF="http://rpmfind.net/linux/rpm2html/search.php?query=calamaris">http://rpmfind.net/linux/rpm2html/search.php?query=calamaris</A></FONT>
<FONT COLOR="#000000"><A HREF="http://www.howtoforge.com/monitoring_squid">http://www.howtoforge.com/monitoring_squid</A> has lots more on monitoring</FONT>
<FONT COLOR="#000000">Squid.</FONT>
<FONT COLOR="#000000">HTH</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>