WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] can one do traffic accounting on bridged domU's?

To: Rudi Ahlers <rudiahlers@xxxxxxxxx>
Subject: Re: [Xen-users] can one do traffic accounting on bridged domU's?
From: Fabian Zimmermann <xen-users@xxxxxxxxxxxxxxxxx>
Date: Thu, 21 May 2009 20:59:19 +0200
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 21 May 2009 11:56:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <695200da0905191520g1ae79579ie6ae41a93e478822@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <695200da0905151451g7f5ac147s4afb14a42fd929bc@xxxxxxxxxxxxxx> <4A100FAE.8070600@xxxxxxxxxxxxxxxxx> <695200da0905191520g1ae79579ie6ae41a93e478822@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)
Hi Rudi Ahlers,
Fabian, on what OS did you install pmacct? Seeing as there'e no rpm, and I'm using CentOS, I'm a bit precautious about installing it.
Debian Etch. I compiled it from source.

If you followed my advice and read FAQ5 you may also compile libpcap-mmap from source.

Just to support you a bit:

pmacct.conf
--
daemonize: true
pidfile: /var/run/pmacctd.pid
syslog: daemon
aggregate[out]: src_host
aggregate[in]: dst_host
aggregate_filter[out]: src net 212.X.Y.0/24 or src net 212.X.Y.0/24
aggregate_filter[in]: dst net 212.X.Y.0/24 or dst net 212.X.Y.0/24
pcap_filter: net 212.X.Y.0/24 or net 212.X.Y.0/24
interface: eth1
plugins: mysql[in], mysql[out]
sql_host: 192.168.100.X
sql_passwd: x
sql_refresh_time: 300
sql_optimize_clauses: true
sql_history: 5m
sql_dont_try_update: true
sql_history_roundoff: m
sql_recovery_logfile[in]: /var/lib/pmacct/recovery_log_in
sql_recovery_logfile[out]: /var/lib/pmacct/recovery_log_out

with libpcap-mmap installed I start pmacct with:

PCAP_MEMORY=10000 PCAP_VERBOSE=1 PCAP_TO_MS=0 pmacctd -f pmacctd.conf

Cu,
Fabian

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users