Re: [squid-users] Program for realtime monitoring

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 11 Apr 2012 17:57:55 +1200

On 11/04/2012 5:08 p.m., CyberSoul wrote:
> Hi all, could anyone give me suggestion for utilite or script realtime monitoring for Squid, which can do the following requirements:
>
> 1) work through web-inteface
> 2) show current connection speed and username ( or ip)
> 3) show the full path of the file that is currently downloaded or browsing
>
> For example, I open browser and go to the address
> http://ip-address-squid/program-for-realtime-monitoring
>
> and I can see about the following columns (for example)
>
> ¹ Username (or IP) Current connection speed URL
>
> 1 user1 (192.168.1.17) 145 KB/s http://uk.download.nvidia.com/XFree86/Linux-x86/295.33/NVIDIA-Linux-x86-295.33.run
> 2 user2 (192.168.1.53) 89 KB/s http://www.centos.org/modules/tinycontent/index.php?id=2
>
> Any ideas?

NP: You can't get connection speed out of Squid as such. Just average
delivery speed, based on request duration so far and bytes sent over
that time.

The cache manager active_requests report contains the info you want, but
in a slightly different format. A script which pulls that report and
processes it for display should be all you need.

Amos
Received on Wed Apr 11 2012 - 05:58:00 MDT

This archive was generated by hypermail 2.2.0 : Wed Apr 11 2012 - 12:00:03 MDT