Re: On-line monitoring

From: Daryl Lim <dlim@dont-contact.us>
Date: Fri, 20 Feb 1998 22:59:48 +0000

> Date: Fri, 20 Feb 1998 02:40:00 -0300
> From: David Mauro Pendenza <cholo@caspa.frlp.utn.edu.ar>
> To: squid-users@nlanr.net
> Subject: On-line monitoring

> Hi:
>
> We have an installation with 4 squids running as parents and siblings. I'm
>interested on have a tool for monitoring the activity on each workstation
>accesing the proxy-cache... I mean... a sort of 'l> Is there an application
>like this?... or somebody trying to implement it?

We'll I use a simple shell script . I've posted this before a little while back
but here goes ..

----
I have created a special user . His .profile contains a shell script (Assuming
you use bash or sh) 
---------------<snip>----------------- 
#!/bin/sh # clear
tail -f /usr/local/squid/logs/access.log | awk '{ print "  "$3"  "$7"  "}'
exit
---------------<snip>-------------------
This is a rather crude method which parse the access log (Just learnt how to 
use that function of awk) and returns something like 
 pc.domain.com	http://www.microsoft.com/
Everytime they access a site the urls is displayed . scrolling up .. When you
are finish Cntrl C and it will automatically exit and logout
Probably someone else could make a better script :)
----
Of course this is very very crude and probably won't give you as much 
information as you probably wanted . But it gives you a idea of current 
usage by how fast the URL's scroll :)
Daryl,
  
                 | email : dlim@ihug.co.nz     (Use This First)               
-=>Daryl Lim<=- -| email : daryl@genesis.pakuranga.school.nz                  
                 | WWW   : http://homepages.ihug.co.nz/~dlim/                 
Received on Fri Feb 20 1998 - 02:03:54 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:38:55 MST