Asslamu Alaikum
Dear brothers please tell me how to monitor the traffic through squid server.
Thanks & Regards.
How to monitor the trafic through squid server
How to monitor the trafic through squid server
Shahid Mahmood
0321-4538113
i am crazy to learn linux
0321-4538113
i am crazy to learn linux
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re: How to monitor the trafic through squid server
Dear smk08,
Salam,
Best Regards.
Salam,
FYI, http://squid.acmeconsulting.it/mrtg.htmlsmk08 wrote:Dear brothers please tell me how to monitor the traffic through squid server.
Best Regards.
Farrukh Ahmed
For a realtime monitoring you use following command.
and for a graphical view of your logs you can use Sarg or Squint.
squidview is also a good tool for monitoring realtime logs.
Code: Select all
tail -f /path/to/your/access.log
squidview is also a good tool for monitoring realtime logs.
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
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