Page 1 of 1

How to monitor the trafic through squid server

Posted: Mon Oct 27, 2008 8:13 am
by smk08
Asslamu Alaikum


Dear brothers please tell me how to monitor the traffic through squid server.

Thanks & Regards.

Re: How to monitor the trafic through squid server

Posted: Mon Oct 27, 2008 8:56 am
by LinuxFreaK
Dear smk08,
Salam,

smk08 wrote:Dear brothers please tell me how to monitor the traffic through squid server.


FYI, http://squid.acmeconsulting.it/mrtg.html

Best Regards.

Posted: Thu Oct 30, 2008 9:16 am
by x2oxen
For a realtime monitoring you use following command.

Code: Select all

tail -f /path/to/your/access.log


and for a graphical view of your logs you can use Sarg or Squint.

squidview is also a good tool for monitoring realtime logs.

Posted: Sun Dec 07, 2008 8:02 pm
by imzee
wsalam,

for realtime monitoring you can use ommand

1)
tail -f /your/squid/logs/access.log
for selected IP
tail -f /your/squid/logs/access.log | grep IP-ADDRESS
but it is only for http monitoring. With use of tail only can monitor downloaded links.

2)
for realtime network monitor, use iptraf

3)
use sarg for for make graphicaly reports with detailed information.

4)
edit your crontab and add
@daily sarg
@daily /your/squid/deamon/squid -k rotate

this will generate daily basis report at 12:00AM to:
http://yourserver/squid-reports

Posted: Thu Dec 11, 2008 12:48 am
by x2oxen
Dear Imtiaz

Why u opening old closed threads

Posted: Sun Dec 14, 2008 2:09 pm
by imzee
May be, it can help other peoples..
sorry 4 that, I ignored posted dated before posting reply