Mr. X <(E-Mail Removed)> wrote:
> You are both right .. but management is stupid and thay dont take "no"
> as an answer .. so YES .. they want to see how long time people spend
> visiting external sites ... no matter if they actually surfing or they
> only have their browsers open ..
The only way to achieve that requirement is to install an applet on
every workstation that measures the time for which the user's browser
is running.
I think you need to have the requirements defined more precisely, or else
be prepared to say that you can measure something different...
Once example might be to measure the total time a user is downloading web
pages (and other items via HTTP) from the first item to the last, such
that the timer is stopped whenever the interval between items exceeds,
say, 10 minutes.
Example:
Time Object Cumulative duration
---------- ------------------------------ ----------------------
10:00:00
http://blah.../blah.html (timer starts)
10:00:01
http://blah.../image1.jpg 00:00:01
10:00:02
http://blah.../image2.jpg 00:00:02
10:01:40
http://yadda.../yadda.html 00:01:40
No further activity (for now) so the timer stops
10:38:01
http://another.../ (timer continues)
10:38:02
http://another.../image.png 00:01:41
Total duration is 00:01:41, in two periods
Assuming you've got some way of tieing log entries to specific users,
I should imagine.a perl script could parse a squid cache log and provide
this sort of report fairly easily.
Chris