[squid-users] how to obtain info about actual active downloads?
Amos Jeffries
squid3 at treenet.co.nz
Wed Oct 29 01:45:51 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 29/10/2014 1:56 p.m., Frantisek Hanzlik wrote:
> Amos Jeffries wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>
>> On 28/10/2014 5:37 a.m., Leonardo Rodrigues wrote:
>>> On 27/10/14 11:47, Antony Stone wrote:
>>>> On Monday 27 October 2014 at 14:32:39 (EU time), Frantisek
>>>> Hanzlik wrote:
>>>>
>>>>> Please, what is best way for determining who squid clients
>>>>> (their PC IP addresses) have which downloads active? I want
>>>>> it to determine which clients burden our slow internet
>>>>> line. Examining 'access.log' does not help much in this
>>>>> case, because users can download large files and it may
>>>>> take a few minutes or hours (e.g. in case of consuming some
>>>>> audio/video streams).
>>>> I would use the tool 'iptraf', either running on your squid
>>>> server, or on a machine which can sniff your internal
>>>> network traffic (possibly with the use of a spanning port on
>>>> the switch).from
>>>>
>>>> That can give you real-time bandwidth measurements per IP
>>>> address.
>>>>
>>>
>>> I use this script:
>>>
>>> http://samm.kiev.ua/sqstat/
>>>
>>> Set it to auto-update on 15/15 seconds, for example, and
>>> you'll have a great and easy way to evaluate active connections
>>> and high bandwidth use connections.
>>>
>>
>>
>> There is also the cachemgr interface for Squid. The
>> "active_requests" report lists the currently underway
>> transactions.
>>
>> Amos
>
> Amos, thanks for this information. From Leonardo recommended
> 'sqstat' PHP script from Alex Samorukov about doing what I need.
> I'm not a programmer, and I would have had a problem write such a
> program. And from my very quick view, I not found useful
> informations about cachemgr interface, searching for 'cachemgr' at
> http://www.squid-cache.org/ return nothing and searching at
> http://wiki.squid-cache.org/ return reference to
> http://wiki.squid-cache.org/ProgrammingGuide/CacheMgrApi , but it
> seems as there are only some basest informations. (which does not
> matter, I did not know how to program it anyway)
Ah sorry. The cachemgr.cgi is the Web UI to Squid. The squidclient
tool also has a way to access the reports in TXT format for command line.
http://wiki.squid-cache.org/Features/CacheManager
The doc there is still sparse, but setting it up and having an explore
should help cover the gaps as the reports are mostly supposed to be
self-explanatory.
Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJUUEbPAAoJELJo5wb/XPRjm30H/iTS2mfQCShaU6JBZSMGZRzi
0MzEKuEqj930zZv9vr1qawU+ap9yX/acM5aFqvhI8WYVp5O7uq6q65OOoqBojCMG
dJLNagpy6p/ozBimRIotGwgXZlwrcvMhr4uXxxtUEg/x8BjXXRJrBtemkwuE/BN+
iodwKx0LDH5Zzn+jxasBV+UrwRkwrY5ipivRtzx6I0RhpVWVa9C8n912JVjy2dFg
Vf9dEW/d4QIyy9BnLx6WyRd8ubz5Nj9cjLPuNOrH5iiHOqgLZ7rrRDYzea78vv63
4JV/HKjMqIZp3O3nW6a8ngVSLJFblYpDg41i5IT8WuOWSBMcJIMuUk16ZUeCQ5Q=
=9613
-----END PGP SIGNATURE-----
More information about the squid-users
mailing list