Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Chris Mingay on October 30, 2003, 02:05:20 PM

Title: Squid Usage by User Dept
Post by: Chris Mingay 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
Title: Re: Squid Usage by User Dept
Post by: Chris Mingay 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.
Title: Re: Squid Usage by User Dept
Post by: Chris Mingay on October 30, 2003, 05:04:12 PM
totally solved, ignore :)
Title: Re: Squid Usage by User Dept
Post by: elspike on October 31, 2003, 03:00:50 AM
Care to share?

A howto would be nice (c;

elSpike out.
Title: Re: Squid Usage by User Dept
Post by: Chris Mingay 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