Answer the question
In order to leave comments, you need to log in
How to set up the nfdump (nfcapd) service?
Installed nfdump 1.6.18-2
on Ubuntu 20.04 (don't remember if it was out of the box or manually). The nfcapd utility included in it for collecting netflow traffic is launched automatically at the behest of systemd.
Contents of /etc/systemd/system/multi-user.target.wants/nfdump.service :
[Unit]
Description=netflow capture daemon
Documentation=man:nfcapd(1)
Documentation=man:softflowd(8)
[Service]
Type=oneshot
ExecStart=/bin/true
ExecReload=/bin/true
RemainAfterExit=on
[Install]
WantedBy=multi-user.target
Answer the question
In order to leave comments, you need to log in
The issue was resolved. I called systemctl status nfdump , in the output I saw the line
Loaded: loaded (/lib/systemd/system/nfdump.service; enabled; vendor preset: enabled) .
I followed this path, found the file /usr/lib/systemd/system/[email protected] , there is a line EnvironmentFile=/etc/nfdump/%I.conf .
The /etc/nfdump/default.conf file contains the line options='-l /var/cache/nfdump -p 2055' , and wrote down the necessary parameters there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question