From owner-freebsd-isp@FreeBSD.ORG Mon Feb 12 09:43:50 2007 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 246FA16A407 for ; Mon, 12 Feb 2007 09:43:50 +0000 (UTC) (envelope-from anders@FreeBSD.org) Received: from fupp.net (totem.fix.no [80.91.36.20]) by mx1.freebsd.org (Postfix) with ESMTP id DA73013C471 for ; Mon, 12 Feb 2007 09:43:49 +0000 (UTC) (envelope-from anders@FreeBSD.org) Received: from localhost (totem.fix.no [80.91.36.20]) by fupp.net (Postfix) with ESMTP id 3862C8D9866; Mon, 12 Feb 2007 10:17:17 +0100 (CET) Received: from fupp.net ([80.91.36.20]) by localhost (totem.fix.no [80.91.36.20]) (amavisd-new, port 10024) with LMTP id 22111-01-3; Mon, 12 Feb 2007 10:17:16 +0100 (CET) Received: by fupp.net (Postfix, from userid 1000) id C5CE48D9864; Mon, 12 Feb 2007 10:17:16 +0100 (CET) Date: Mon, 12 Feb 2007 10:17:16 +0100 From: Anders Nordby To: John Nielsen Message-ID: <20070212091716.GA8025@fupp.net> References: <20070207130614.GA15328@fupp.net> <200702070934.34074.lists@jnielsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200702070934.34074.lists@jnielsen.net> X-PGP-Key: http://anders.fix.no/pgp/ X-PGP-Key-FingerPrint: 1E0F C53C D8DF 6A8F EAAD 19C5 D12A BC9F 0083 5956 User-Agent: Mutt/1.5.11 Cc: freebsd-isp@freebsd.org Subject: Re: Per virtualhost bandwidth/hitrate statistics for Apache X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Feb 2007 09:43:50 -0000 Hi, On Wed, Feb 07, 2007 at 09:34:33AM -0500, John Nielsen wrote: >> I just wonder if anyone has any good hints about software to use (Apache >> module?) for fetching per-virtualhost statistics about bandwidth usage >> and hitrates (hits per second) from Apache. I've been using mod_watch >> for a while, to graph this with MRTG, but it's discontinued it seems. >> >> What do people use to measure statistics per virtualhost? > I use Apache's logrotate and a separate log directory for each virtualhost. I > have a script that runs from cron every day that runs the logs through > webalizer and then cleans up logs older than a specified number of days. In > fact (since I'm feeling like sharing), here it is: > (..) I guess I should have been more specific. I am looking for *realtime* statistics/data, which means (for me) not to use the logs. Especially what I look for is: - hitrate (number of hits per second). - bandwidth usage per virtual host (how much data is that site pushing NOW). - service time (if possible). Squid does it. :-) Then again it has an integrated snmp daemon, which unfortunately Apache does not. mod_watch works, but it is not supported by its author anymore, and I had some trouble with it. Thanks anyway. Cheers, -- Anders.