Re: [squid-users] how to obtain info about actual active downloads?

2015-01-09 Thread Rafael Akchurin
Hello Chris,

Perfect!!

I will see how this can be integrated in Surfing Now as it seems the squid 
manager interface make this info directly usable.
Added issue for this 
https://github.com/ra-at-diladele-com/qlproxy_external/issues/716.

Thanks a lot!

Best regards,
Rafael


From: Chris Bennett 
Sent: Friday, January 9, 2015 10:52 AM
To: Rafael Akchurin
Cc: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] how to obtain info about actual active downloads?

Hi Rafael,

> as if I am not mistaken the data get's written to the log
> *after* each session is completed

You are correct about squids access_log file, but sqtop uses squid's
manager interface to report on active HTTP(S) connections.  i.e for
the download of a large (1GB) file, sqtop will report that item,
attributed to the IP & user (if known) that originated the request,
for the whole duration of the download, including current and average
speed.  It answers the question "who is using proxy bandwidth *right
now*?" compared to other reports that analyse logs and report on
historical usage.

The screenshot on sqtop's page should give you an idea of what it
presents:
  http://sqtop.googlecode.com/svn/wiki/images/scr1_ui_big.png

Hopefully that makes it clearer?

Regards,

Chris
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2015-01-09 Thread Chris Bennett
Hi Rafael,

> as if I am not mistaken the data get's written to the log
> *after* each session is completed

You are correct about squids access_log file, but sqtop uses squid's
manager interface to report on active HTTP(S) connections.  i.e for
the download of a large (1GB) file, sqtop will report that item,
attributed to the IP & user (if known) that originated the request,
for the whole duration of the download, including current and average
speed.  It answers the question "who is using proxy bandwidth *right
now*?" compared to other reports that analyse logs and report on
historical usage.

The screenshot on sqtop's page should give you an idea of what it
presents:
  http://sqtop.googlecode.com/svn/wiki/images/scr1_ui_big.png

Hopefully that makes it clearer?

Regards,

Chris
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2015-01-09 Thread Rafael Akchurin
Hello Chris,

The ICAP session is happening inlined with HTTP(S) sessions (i.e. the proxy 
user will not get any bytes until ICAP server tells Squid to proceed). In this 
sense looking at sessions from ICAP is almost the same (or even better) as 
having this info from within Squid's logs (as if I am not mistaken the data 
get's written to the log *after* each session is completed).

The active sessions per client is already present (with some history back 
log).. from your description I see that the current and average throughput per 
client is missing. May I assume  that you'd like to see for each active proxy 
client the number of bytes retrieved during last 1, 5, 30 minutes/seconds or 
so? Sorry if I completely misunderstood your notice.

Raf.




From: Chris Bennett 
Sent: Friday, January 9, 2015 5:00 AM
To: Rafael Akchurin
Cc: squid-users@lists.squid-cache.org
Subject: Re: [squid-users] how to obtain info about actual active downloads?

Hi Rafael,

> If you'd dump your mindset on how you'd like to see it ideally I
> could take a look in qlproxy 4.2 when we redesign our reports
> subsystem.  Milestone is -
> https://github.com/ra-at-diladele-com/qlproxy_external/milestones/4.2

sqtop shows active sessions through the proxy per client, along with a
report of current and average throughput per client.  That is really
useful for knowing what's consuming data *right now* compared to any
historical report, since historical reports usually only acocunt for
data when a connection has ended.

Regards,

Chris
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2015-01-08 Thread Chris Bennett
Hi Rafael,

> If you'd dump your mindset on how you'd like to see it ideally I
> could take a look in qlproxy 4.2 when we redesign our reports
> subsystem.  Milestone is -
> https://github.com/ra-at-diladele-com/qlproxy_external/milestones/4.2

sqtop shows active sessions through the proxy per client, along with a
report of current and average throughput per client.  That is really
useful for knowing what's consuming data *right now* compared to any
historical report, since historical reports usually only acocunt for
data when a connection has ended.

Regards,

Chris
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2015-01-08 Thread Chris Bennett
> Solaris 10 u11. :) Yeah, it still using. :)

I can only suggest standard troubleshooting processes for when a
package isn't compiling - config.log should give you hints at what
could be wrong.  Feel free to send me config.log offlist if you want.
No guarantees on being able to help you :)

Regards,

Chris
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2015-01-08 Thread Yuri Voinov

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
No,

the same error with ncurses-dev.


08.01.2015 17:21, Chris Bennett ?:
>> Configure with errors:
>>
>> checking for cerrno... yes
>> checking climits usability... yes
>> checking climits presence... yes
>> checking for climits... yes
>> checking for gethostbyname... no
>> configure: error: Unable to find some C functions
>
> You probably need gcc-c++ installed.
>
> What distro are you using?  I've just successfully compiled it on
> clean CentOS 6 and 7 machines and the only requirements for
> compilation were gcc-c++ and ncurses-devel
>
>   ie. yum install gcc-c++ ncurses-devel
>
> Regards,
>
> Chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v2
 
iQEcBAEBAgAGBQJUrmtbAAoJENNXIZxhPexGLskH/RR2wgzthJyjAMiiCUSGVae4
LsNYsIFnsbSnBWctis/XN+peigChhaRuSYO/djxYsFkdv0sOLXUM8b+cBpuZqwb6
BdzX39PayNHr63J4sPocQ+GMVyONe8mpYkSj5Uxxh2z4n7kr1JQEOdW1jkdfz4ff
YT3xl/Gv7xjpqNZ+kVqHc/S3KZa7ErvtAjoEzIBnWvCduUeOQlcnJahed8HQgxds
XglApxuZWKDva/gzldMJlc16kfAFoJl+iWbpYTe3T7ntwAWTzdJjqi5VZ8dVqZ0N
FfShrC4r/ngqYETbFpLhCVU5lb3DmvoUR/eQNXcrgq9DFsMZOg4+7pxLOcIrywY=
=Pbhu
-END PGP SIGNATURE-

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2015-01-08 Thread Yuri Voinov

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 

08.01.2015 17:21, Chris Bennett ?:
>> Configure with errors:
>>
>> checking for cerrno... yes
>> checking climits usability... yes
>> checking climits presence... yes
>> checking for climits... yes
>> checking for gethostbyname... no
>> configure: error: Unable to find some C functions
>
> You probably need gcc-c++ installed.
I've installed it. :) I've compiled Squid in the past on this server :)

root @ ktulhu /var/adm # pkgutil -l CSWg++
CSWgawk
CSWgcc4core
CSWgcc4g++
CSWgcpio
CSWgd
CSWggettext-data
CSWggettextrt
CSWggrep
CSWgio-fam-backend
CSWglib2
CSWgm4
CSWgmake
CSWgnupg
CSWgsed
CSWgtar

>
>
> What distro are you using?  I've just successfully compiled it on
Solaris 10 u11. :) Yeah, it still using. :)

>
> clean CentOS 6 and 7 machines and the only requirements for
> compilation were gcc-c++ and ncurses-devel
>
>   ie. yum install gcc-c++ ncurses-devel
It installed:

root @ ktulhu /var/adm # pkgutil -l CSWncurse
CSWncurses

:)

>
>
> Regards,
>
> Chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v2
 
iQEcBAEBAgAGBQJUrmkQAAoJENNXIZxhPexGq/4H/R5cz79PPOPnEPMet7UjSr+N
z7WwwV5H0mXi5bPHlTIrlQcH6Qb4vcO4o9QBudrIU3bf9oZviNlWblV5tzB7ywia
pV09cs0Wbqlbtqa+18I4RIumQ5Q7aBqj0OswMoku3mg3MD8JvfIlcGzH58YIqcM5
aLI48cqJpxDuAywNRNs/VXlP8uQb0K+AsJuf2dJmQy9dj218L+LDzsHdLzzvX8NH
ZHrcSf/RMeeTFtelC+xS9U9iTbfF/30f5j1pN038DgD2yGOhuyyn0HuC/YGlFtmI
n7glkUdeestBik0xs1DSL1AfQEDxwXucl8qEjtofNnlfpBIzxX3oZD28mmU4NDY=
=kZg3
-END PGP SIGNATURE-

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2015-01-08 Thread Chris Bennett
> Configure with errors:
> 
> checking for cerrno... yes
> checking climits usability... yes
> checking climits presence... yes
> checking for climits... yes
> checking for gethostbyname... no
> configure: error: Unable to find some C functions

You probably need gcc-c++ installed.

What distro are you using?  I've just successfully compiled it on
clean CentOS 6 and 7 machines and the only requirements for
compilation were gcc-c++ and ncurses-devel 

  ie. yum install gcc-c++ ncurses-devel

Regards,

Chris
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2015-01-08 Thread Yuri Voinov

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Cool,

but could not compile.

Configure with errors:

checking for cerrno... yes
checking climits usability... yes
checking climits presence... yes
checking for climits... yes
checking for gethostbyname... no
configure: error: Unable to find some C functions


08.01.2015 10:47, Chris Bennett пишет:
> I am very late on this thread (christmas catchup :))
>
> But since it wasn't mentioned by others, and I find it very useful, I
> use sqtop [1].  Screenshot on main page gives you an indication of
> what it can tell you.
>
> Regards,
>
> Chris
>
> [1] http://code.google.com/p/sqtop/
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users

-BEGIN PGP SIGNATURE-
Version: GnuPG v2
 
iQEcBAEBAgAGBQJUrlaTAAoJENNXIZxhPexGwKEIALeV/DPRvjeOiiDy/jFeHkYK
F2HCgelCqSL1nUw0Mm2DpRuJ/5dgxJeBm5cOXJqgEoSZBymt0C9mjKQJsxzNeQ4E
X8rxxLr9iYhZoZjK5qiyAdU+6PJ7vaE0YkfVfsWlaW+CUi1ZVpAm+ijUaX+jSa0y
8r4HOH57onZdmXNWJKYX4DW/DO1r8e9nc0dUZUTC+4Am0DiED8upuNTVqtQM/uD3
wkqML+te6xixqj78jtIPBHeXunhpwzIrVG61RpKM6PCKZd/ScEAmyvZ8zPooRFxf
hcfjNHGNbhqtanA2vfn9/oTQnB3zZ9WsUJp+5MppEajPQF4uYZn01kfU5jS84tg=
=W05a
-END PGP SIGNATURE-

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2015-01-08 Thread Yuri Voinov

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Cool,

but could not compile.

Configure with errors:

checking for cerrno... yes
checking climits usability... yes
checking climits presence... yes
checking for climits... yes
checking for gethostbyname... no
configure: error: Unable to find some C functions


08.01.2015 10:47, Chris Bennett пишет:


-BEGIN PGP SIGNATURE-
Version: GnuPG v2
 
iQEcBAEBAgAGBQJUrlaPAAoJENNXIZxhPexGsdoH/2ngcCioJGxX/ugg1v3ifepx
64PVtht28nVdCUG04cXAiyJCEK5KDYJQ1vV1hPAFB8di7vWMuWHTyssPnvQeQlWI
XXQEF6CUpYZhtMrPgFy6ZMLDtQC74E/+/r2hCDjUWzgMqs0Phsmvx2VraFGid9tZ
2t/7rV9AgFX4DxIGkOZPOBDU+R2COTqDAOc38pQIUZ1N6qMnvCev1cpBiY6il5Rh
rrbfP0ggFp7WS2iDax1G2aH7BN+zvE23hBBfzX5Z22UwO0XqHtYZzsmD03Sb7sW+
CoxjfVnKmPAXdZCUmGnkcxoIoPk9phXRiIzqshOsHYf6MV6LJblc5aPWk2Hqc6s=
=wpXC
-END PGP SIGNATURE-

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2015-01-07 Thread Chris Bennett
I am very late on this thread (christmas catchup :))

But since it wasn't mentioned by others, and I find it very useful, I
use sqtop [1].  Screenshot on main page gives you an indication of
what it can tell you.

Regards,

Chris

[1] http://code.google.com/p/sqtop/
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2014-10-28 Thread Amm


On Wednesday 29 October 2014 07:15 AM, Amos Jeffries wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/10/2014 1:56 p.m., Frantisek Hanzlik wrote:


Amos, thanks for this information. From Leonardo recommended
'sqstat' PHP script from Alex Samorukov about doing what I need.


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


Amos


This command should help:

squidclient -h 127.0.0.1 mgr:active_requests

You may have to replace 127.0.0.1 with localhost

Amm.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2014-10-28 Thread Amos Jeffries
-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-
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2014-10-28 Thread Frantisek Hanzlik
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)

Thanks, Franta Hanzlik
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2014-10-28 Thread Frantisek Hanzlik
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).
>>
>> That can give you real-time bandwidth measurements per IP address.

Hi Antony,
thanks for reply. I know and use iptraf[-ng], but in this case it
isn't ideal:
- I want to use it as well as non-IT people with windos PCs, thus I
 prefer something like www interface.
- To decide whether it is legal working download or something
 inappropriate is very useful to know what URL download is.

First point could be met with something like ntop/ntopng, but for
 the second is probably necessary to inquire directly squid.


> 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.

Leonardo, thanks for this info and link - it is presumably exactly
what I wanted. I tried sqstat-1.20, but unfortunately last version
1.20 is ~8 years old and probably works with some older squid version
 - according to squid log, sqstat makes inquiries
"GET cache_object://localhost/active_requests"
and want "HTTP/1.0 200 OK" reply - but squid-3.3.13 now return
"HTTP/1.1 200 OK".
And even I correct this, there is still some bad, all my hosts have
IP 0.0.0.0 (on IPv4-only LAN). Maybe from squid-3.3 returned data are
different than these from older squids for what was sqstat then written.
But I'll try to play with it even more.

Franta Hanzlik

___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2014-10-27 Thread Amos Jeffries
-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).
>> 
>> 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
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUTtNmAAoJELJo5wb/XPRjgRMH/iBjkuYP/8Ri3sULxNMtQfNz
bEoOVL45ts2PwS3tLpo5p6zXeQRBy+wMpH6urjRIbObw0NP2aGQzlG4dowk/WSeE
4TA4+4f+u5f2roY4Lx+Jt0e5ndDvCb/XP7afcyO3kMhCN26Ns+OmKCj3CndHzUHT
H4OLhOzsSOXqv2rLzje0+NttgjveLG+7AsxOVzBsRUQWUduq4Z09igqn/UolfkPn
lK/6E6a3J5/4n9/mAamxep6vc2SIihBQ2NP4jnzsSLuoblqRnGBgaGRr+7/q0+uB
Mx8BY4g/lPSNa5arTRoyniGe/Q3LmlXk/fv1tWGnsSQdgh2WK5kVNVyPZI3ZV1E=
=iy8M
-END PGP SIGNATURE-
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2014-10-27 Thread Leonardo Rodrigues

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).

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.


--


Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br

Minha armadilha de SPAM, NÃO mandem email
gertru...@solutti.com.br
My SPAMTRAP, do not email it



___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] how to obtain info about actual active downloads?

2014-10-27 Thread Antony Stone
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).

That can give you real-time bandwidth measurements per IP address.

Regards,


Antony.

-- 
Anything that improbable is effectively impossible.

 - Murray Gell-Mann, Nobel Prizewinner in Physics

   Please reply to the list;
 please *don't* CC me.
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users