How to monitor the trafic through squid server

Discussion regarding the installation and configuration of Linux distributions.
smk08
Naik
Posts: 56
Joined: Fri Aug 08, 2008 1:44 pm
Location: Sheikhupura, Pakistan

How to monitor the trafic through squid server

Postby smk08 » Mon Oct 27, 2008 8:13 am

Shahid Mahmood
0321-4538113
i am crazy to learn linux

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: How to monitor the trafic through squid server

Postby LinuxFreaK » Mon Oct 27, 2008 8:56 am

Farrukh Ahmed

x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Postby x2oxen » Thu Oct 30, 2008 9:16 am

Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com

imzee
Lance Naik
Posts: 17
Joined: Fri Sep 14, 2007 2:30 pm
Location: Saddar
Contact:

Postby imzee » Sun Dec 07, 2008 8:02 pm

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
Imtiaz Mustafa
CCENT, CCNA, JNCIA
Cell : +923452828799
e-mail : imtiazmustafa@hotmail.com

x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Postby x2oxen » Thu Dec 11, 2008 12:48 am

Dear Imtiaz

Why u opening old closed threads
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com

imzee
Lance Naik
Posts: 17
Joined: Fri Sep 14, 2007 2:30 pm
Location: Saddar
Contact:

Postby imzee » Sun Dec 14, 2008 2:09 pm

Imtiaz Mustafa

CCENT, CCNA, JNCIA

Cell : +923452828799

e-mail : imtiazmustafa@hotmail.com


Return to “Installation”

Who is online

Users browsing this forum: No registered users and 1 guest