From owner-freebsd-questions Fri Jan 26 2:47:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from simian.realtime.co.uk (simian.realtime.co.uk [194.205.134.131]) by hub.freebsd.org (Postfix) with ESMTP id E4DA537B401 for ; Fri, 26 Jan 2001 02:47:10 -0800 (PST) Received: from zaphod.realtime.co.uk (zaphod.realtime.co.uk [194.205.134.208]) by simian.realtime.co.uk (8.10.1/8.10.1) with ESMTP id f0QAl8T23114; Fri, 26 Jan 2001 10:47:08 GMT Received: from waynep by zaphod.realtime.co.uk with local (Exim 3.16 #1) id 14M6NN-0001Gm-00; Fri, 26 Jan 2001 10:45:05 +0000 From: Wayne Pascoe To: Gernot Hueber Cc: freebsd-questions@freebsd.org Subject: Re: virtual domains traffic accouting References: <3A715167.5A60A4FE@riic.uni-linz.ac.at> Reply-To: wayne.pascoe@realtime.co.uk Date: 26 Jan 2001 10:45:05 +0000 In-Reply-To: <3A715167.5A60A4FE@riic.uni-linz.ac.at> Message-ID: Lines: 28 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gernot Hueber writes: > Greetings, > > I want to gather traffic accounting informations of incoming and > outgoing traffic based on the virtual domains (apache, sendmail, ftp). > AFAIK trafd, mrtg, etc work on ip/port basis which is the same for all > domains. > > Is there a solution for this task? While not an ideal solution, I am currently doing the following : I have mrtg running and graphing traffic on the ports on the switch. Apache generates logs which I run through analog. This gives me a total amount of data transfered per virtual host. I add the traffic for all of the sites up, and then work out each virtualhosts traffic as a percentage of the total. This is then worked out as a percentage of the total traffic as reported by mrtg. It's not ideal because it doesn't take into account shell sessions used to maintain the box, but it's pretty close. -- - Wayne Pascoe E-mail: wayne.pascoe@realtime.co.uk Phone : +44 (0) 20 7544 4668 Mobile: +44 (0) 788 431 1675 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message