-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnfacctd.conf.tpl
37 lines (36 loc) · 921 Bytes
/
nfacctd.conf.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
! nfacctd configuration
!
!
!
daemonize: false
pidfile: /var/run/nfacctd.pid
! syslog: daemon
!
nfacctd_port: 2055
!
aggregate: src_host,src_port,dst_host,dst_port,proto,tos,post_nat_src_host,post_nat_src_port,post_nat_dst_host,post_nat_dst_port,nat_event
! interested in in and outbound traffic
!aggregate: src_host,dst_host
! on this network
!
! storage methods
plugins: pgsql
sql_table_version: 9
sql_db: pmacct
sql_host: localhost
sql_data: typed
sql_user: pmacct
sql_passwd: $POSTGRES_PMACCT_PW
sql_table: acct_v9
! refresh the db every minute
sql_refresh_time: 60
! reduce the size of the insert/update clause
sql_optimize_clauses: true
! accumulate values in each row for up to an hour
sql_history: 1h
! create new rows on the minute, hour, day boundaries
!sql_history_roundoff: mhd
! in case of emergency, log to this file
!sql_recovery_logfile: /var/lib/pmacct/nfacctd_recovery_log
sql_cache_entries: 9999991
!