RE: [squid-users] monitoring squid from my firewall

From: Angela Burrell <[email protected]>
Date: Tue, 23 Nov 2004 09:38:54 -0500

Normally your firewall activity is logged in the file /var/log/messages. You
could get a log analyser or parser to parse that log for you (it's huge).

If you simply want to view squid activity, it's located in the file
/var/log/squid/access.log

Here is a script that James Gray contributed to the mailing list, so you can
view squid activity in real-time.

----------------------------
Here's the "script" (all on one line, or put it into a file) :)

<<< START >>>

clear ; tail -F /var/log/squid/access.log | \
awk '{ \
     printf("%8.2f Kb\t%-16s %s\t%s - %s\n" \
     ,$5/1024,$8,$7,$10,substr($4,5,(match(4,/\//)-5))) \
}'

<<< END >>>
----------------------------

Hope this helps.

-----Original Message-----
From: Siew Wing Loon [mailto:wlsiew@yahoo.com]
Sent: November 22, 2004 7:50 PM
To: squid-users@squid-cache.org
Subject: [squid-users] monitoring squid from my firewall

Hi,

I am running transparent proxy to remote squid box
using the below commands in my firewall: -

$IPTABLES -t nat -A PREROUTING -i $cusif -s !
$squid_box -p tcp --dport 80 -j DNAT --to
$squid_box:3128
$IPTABLES -t nat -A POSTROUTING -o $cusif -s $cus_net
-d $squid_box -j SNAT --to $cus_ip
$IPTABLES -A FORWARD -s $cus_net -d $squid_box -i
$cusif -o $cusif -p tcp --dport 3128 -j ACCEPT

How can I monitor the squid health or availability
from the firewall?

Regards,
WL Siew

__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
Received on Tue Nov 23 2004 - 08:03:10 MST

This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:01 MST