Koozali.org: home of the SME Server

Squid Usage by User Dept

Chris Mingay

Squid Usage by User Dept
« on: October 30, 2003, 02:05:20 PM »
Hi,

Anyone know if it is possible to summarise squid usage, grouped by user dept? I currently run SARG which is great, but limited to user/ip. Is it possible to pass the user name to a script that returns the relative dept?

Thanks!
-Chris

Chris Mingay

Re: Squid Usage by User Dept
« Reply #1 on: October 30, 2003, 02:46:10 PM »
worked out how to return the relative dept,
/sbin/e-smith/db accounts getprop user Dept
replacing user with the users name.

Chris Mingay

Re: Squid Usage by User Dept
« Reply #2 on: October 30, 2003, 05:04:12 PM »
totally solved, ignore :)

elspike

Re: Squid Usage by User Dept
« Reply #3 on: October 31, 2003, 03:00:50 AM »
Care to share?

A howto would be nice (c;

elSpike out.

Chris Mingay

Re: Squid Usage by User Dept
« Reply #4 on: October 31, 2003, 12:45:18 PM »
Hiya,

ya see, when I said totally solved, I was kinda jumping the gun. ;) I had found the awk command I needed to get the value returned from a shell command, system(), however, what I failed to notice is the fact the system() command only works properly in the BEGIN section of an awk script.

I don't suppose you, or anyone else has had experience with this?

Thanks
-Chris