[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.