On Fri, 25 Mar 2005, pol loxx wrote:
> I'm looking for a way to measure the consumed volume for a given period for a
> given client.
> It it should be easy to use (web based) for a non-technical user.
> I think we can use squid in combination with some additional software.
> Any suggestions?
Squid collects this info in the internal clientdb statistics, readable via
SNMP.
The following returns the amount of data (in KB) sent to the client with
IP 192.168.54.3:
snmpget -v 1 -m ~/squid/lfs-2.5/share/mib.txt localhost:3401 public cacheClientEntry.cacheClientHttpKb.192.168.54.3
this can be graphed with mrtg / rrdtool / whatever graphing tool you
prefer.
The counter is updated on completetion of each request, at the same time
the access.log entry is written. So long running downloads does not show
up until the download has completed.
Regards
Henrik
Received on Fri Mar 25 2005 - 19:26:43 MST
This archive was generated by hypermail pre-2.1.9 : Fri Apr 01 2005 - 12:00:02 MST