Daily usage statistics for Netscape Proxy & Squid Cache - v1.4 961006
---------------------------------------------------------------------

I needed to know how much data was pumping through our combined Netscape
Proxy server (internal proxy) and Squid Internet Object server (external
proxy) so that I could better monitor our Internet connection and machine 
load. To that end I modified a set of perl scripts written by Duane Wessels
that originally gathered the relevant statistics from the Squid logfiles 
and presented them in an ascii format. I modified the scripts to generate 
HTML pages with a snazzy bargraph and sets of associated tables. Management 
just love to be presented with snazzy graphics.

Samples of the old ascii and new html proxy and squid formats are included
in proxy.19960930, squid.19960930, proxy.19960930.html, squid.19960930.html

The proxystats.sh & squidstats.sh shell scripts pretty much drive the whole 
generation with both scripts being run daily from cron at 23:55 so just edit 
them to suit your local site.

squid.conf options that should be changed are:

  emulate_httpd_log off
  logfile_rotate 1

The latest version is available from:

  ftp://ftp.sbs.de/pub/www/cache/cache-stats/cache-stats.tar.gz

Note: just don't say you wrote it and give credit where credit is due!

You'll also need the Perl5 available from CPAN sites or: 

  ftp://ftp.sbs.de/pub/tools/perl/cpan/src/5.0/latest.tar.gz

Comments, patches (context diff please)  and *useful* critic appreciated.

Enjoy

Iain Lea
iain@sbs.de
