An important and necessary change in Netflow configuration for Vyatta routers after each reboot

Every time Vyatta routers are rebooted the following change has to be done in the file /etc/pmacct/uacctd.conf in order to prevent the netflow service from consuming much memory and overloading the server.

After reboot and before change we have:

————————————————————————————-

vyatta@router1:~$ cat /etc/pmacct/uacctd.conf
!
! autogenerated by /opt/vyatta/sbin/vyatta-netflow.pl
!
daemonize: true
promisc:   false
pidfile:   /var/run/uacctd.pid
imt_path:  /tmp/uacctd.pipe
imt_mem_pools_number: 169
uacctd_group: 2
uacctd_nl_size: 2097152
snaplen: 32768
refresh_maps: true
pre_tag_map: /etc/pmacct/int_map
aggregate: tag,src_mac,dst_mac,vlan,src_host,dst_host,src_port,dst_port,proto,tos,flows
plugin_pipe_size: 10485760
plugin_buffer_size: 10240
syslog: daemon
plugins: memory,nfprobe[208.x.x.x-9996]
nfprobe_receiver[208.x.x.x-9996]: 208.x.x.x:9996
nfprobe_version[208.x.x.x-9996]: 5
nfprobe_engine[208.x.x.x-9996]: 0:0
sampling_rate[208.x.x.x-9996]: 500

————————————————————————-

memory” must be removed from the directive plugins: memory,nfprobe[208.x.x.x-9996]
————————————————————————-

Vyatta# sudo nano /etc/pmacct/uacctd.conf
!
! autogenerated by /opt/vyatta/sbin/vyatta-netflow.pl
!
daemonize: true
promisc:   false
pidfile:   /var/run/uacctd.pid
imt_path:  /tmp/uacctd.pipe
imt_mem_pools_number: 169
uacctd_group: 2
uacctd_nl_size: 2097152
snaplen: 32768
refresh_maps: true
pre_tag_map: /etc/pmacct/int_map
aggregate: tag,src_mac,dst_mac,vlan,src_host,dst_host,src_port,dst_port,proto,tos,flows
plugin_pipe_size: 10485760
plugin_buffer_size: 10240
syslog: daemon
plugins: nfprobe[208.x.x.x-9996]
nfprobe_receiver[208.x.x.x-9996]: 208.x.x.x:9996
nfprobe_version[208.x.x.x-9996]: 5
nfprobe_engine[208.x.x.x-9996]: 0:0
sampling_rate[208.x.x.x-9996]: 500


And then we restart the Netflow service

Vyatta# restart flow-accounting