Re: [squid-users] How to use MRTG of Multiple httpd-accelerator mode ?

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Tue, 17 Apr 2007 08:47:10 +0200

tis 2007-04-17 klockan 11:28 +0900 skrev Seonkyu Park:
> Hello Everyone
> I'm using squid for reverse proxy of several domains.
>
> My squid.conf is below.
>
> cache_peer 1.1.1.1 parent 80 0 no-query originserver no-digest
> cache_peer 2.2.2.2 parent 80 0 no-query originserver no-digest
> cache_peer 3.3.3.3 parent 80 0 no-query originserver no-digest
>
> cache_peer_domain 1.1.1.1 www.abc.com
> cache_peer_domain 2.2.2.2 www.def.com
> cache_peer_domain 3.3.3.3 www.ghi.com
>
>
> I want mrtg graph each domains.
>
> eg. 1.1.1.1 cache traffic graph
> 2.2.2.2 cache traffic graph
> 3.3.3.3 cache traffic graph
>
> How can do this ?..

You can graph cache misses from the peer statistics. But there is no
per-domain hit statistics kept by Squid (only global).

Another option is to write a small script doing monitoring the
access.log online and feeding the results into mrtg/rrdtool.

Regards
Henrik

Received on Tue Apr 17 2007 - 00:47:16 MDT

This archive was generated by hypermail pre-2.1.9 : Tue May 01 2007 - 12:00:01 MDT