Am 11.06.2019 um 19:51 schrieb Paolo Lucente:
Hi Goran,

For 200 Mbps I may recommend: compile pmacct with ZeroMQ support (see
QUICKSTART, grep for 'zeromq') and select the 'large' or 'xlarge' queue
profiles (plugin_pipe_zmq_profile). Let me know how it goes with this.

Paolo

Hello Paolo,

I setup ZeroMQ with large profile and so far everything looks good.

 uacctd -V
Linux NetFilter NFLOG Accounting Daemon, uacctd 1.7.3-git (20190418-00+c4)

Arguments:
 '--prefix=/usr' '--build=x86_64-pc-linux-gnu'
'--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc'
'--localstatedir=/var/lib' '--disable-dependency-tracking'
'--disable-silent-rules' '--docdir=/usr/share/doc/pmacct-1.7.3'
'--htmldir=/usr/share/doc/pmacct-1.7.3/html' '--with-sysroot=/'
'--libdir=/usr/lib64' '--enable-64bit' '--enable-bgp-bins'
'--enable-bmp-bins' '--disable-geoip' '--disable-geoipv2'
'--disable-jansson' '--disable-kafka' '--enable-l2' '--disable-plabel'
'--disable-mongodb' '--enable-mysql' '--disable-ndpi' '--enable-nflog'
'--disable-pgsql' '--disable-rabbitmq' '--enable-sqlite3'
'--enable-st-bins' '--enable-traffic-bins' '--enable-zmq'
'--disable-debug' 'build_alias=x86_64-pc-linux-gnu'
'host_alias=x86_64-pc-linux-gnu' 'CC=x86_64-pc-linux-gnu-gcc'
'CFLAGS=-O2 -pipe -march=native -fomit-frame-pointer
-fno-stack-protector' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CPPFLAGS=
-DMYSQL_SERVER_VERSION=99999999' 'PKG_CONFIG_PATH=/usr/lib64/pkgconfig'

Libs:
libpcap version 1.8.1
MySQL 5.7.16
sqlite3 3.28.0
ZeroMQ 4.3.1
netfilter_log

System:
Linux 4.19.49-gentoo #1 SMP Mon Jun 10 12:58:38 CEST 2019 x86_64

Compiler:
gcc 8.3.0

For suggestions, critics, bugs, contact me: Paolo Lucente
<pa...@pmacct.net>.

 cat /etc/pmacctd/uacctd.conf
syslog: daemon
plugin_pipe_zmq: true
plugin_pipe_zmq_profile: large
plugins: mysql[in], mysql[out], memory[in1], memory[out1]
plugin_buffer_size[in]: 1048576
plugin_buffer_size[out]: 1048576
uacctd_group: 5
aggregate[in]: dst_host
aggregate[out]: src_host
aggregate_filter[in]: ( dst net 192.168.2.0/24 or dst net
192.168.222.0/24 or dst net 172.16.3.0/24 ) and not dst host 192.168.2.201
aggregate_filter[out]: ( src net 192.168.2.0/24 or src net
192.168.222.0/24 or src net 172.16.3.0/24 ) and not src host 192.168.2.201
sql_db: net_stats
sql_table[in]: traffic_wan_in
sql_table[out]: traffic_wan_out
sql_optimize_clauses: true
sql_passwd: xxxxxxx
sql_user: xxxxx
sql_refresh_time: 3600
sql_history: 1h
sql_history_roundoff: h
sql_cache_entries: 65537
aggregate[in1]: dst_host
aggregate[out1]: src_host
aggregate_filter[in1]: ( dst net 192.168.2.0/24 or dst net
192.168.222.0/24 or dst net 172.16.3.0/24 ) and not dst host 192.168.2.201
aggregate_filter[out1]: ( src net 192.168.2.0/24 or src net
192.168.222.0/24 or src net 172.16.3.0/24 ) and not src host 192.168.2.201
imt_path[in1]: /var/run/pmacct_wan_in.pipe
imt_path[out1]: /var/run/pmacct_wan_out.pipe

Göran


_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to