RE: [SQU] Bandwidth Usage Notification

From: Robert Collins <robert.collins@dont-contact.us>
Date: Tue, 12 Dec 2000 11:37:14 +1100

AFAIK squid can't do that. You could
a) use SNMP or the cachemgr to poll squid.
b) group all the requests into an unlimited delay pool and write some
additional code in squid to send an alert (perhaps an snmp trap?) when
added traffic spikes the delay pool past your threshold.

Rob

> -----Original Message-----
> From: William Wishon [mailto:bill.wishon@pictureiq.com]
> Sent: Tuesday, 12 December 2000 10:20 AM
> To: squid-users@ircache.net
> Subject: [SQU] Bandwidth Usage Notification
>
>
> Hi,
> Is there any way to have squid notify an external
> program when it's
> bandwidth usage crosses certain boundaries?
>
> My problem,
> I want to use squid as an httpd accelerator where the
> server it is
> accelerating wants to know about the current bandwidth usage.
> The delay
> pools seem almost like what I want, but instead of delaying the users
> request when the bucket is empty I would just like squid to
> tell my program
> about the fact that the bucket is now empty. That way if I
> were to set up
> buckets with the limits of 128K 256K and 512K I would get
> notified when
> bandwidth usage crosses those boundaries. I'm about to dive
> into the source
> to find the place to hook myself in, but I just wanted to see
> if anyone had
> any ideas on this.
> I had thought of putting a little bandwidth monitoring
> tool in front of
> squid that measures bandwidth on the interface and port that squid is
> listening on, but I thought that would have too much negative
> impact on
> performance. And since squid with delay-pools on is already
> keeping track
> of bandwidth I thought I would start there.
>
> Thanks for any advice / thoughts,
> Bill Wishon
>
> --
> To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
>
>

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Mon Dec 11 2000 - 17:42:40 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:56:55 MST