From f2925684229d21eda6fe19691b3a8f118ec4828f Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Wed, 17 Apr 2024 18:11:15 +0200 Subject: [PATCH] Add support for the new nfcapd options. --- pandora_server/bin/pandora_server | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pandora_server/bin/pandora_server b/pandora_server/bin/pandora_server index 8f35ad96c9..321b5879b3 100755 --- a/pandora_server/bin/pandora_server +++ b/pandora_server/bin/pandora_server @@ -283,9 +283,12 @@ sub pandora_start_netflow_daemon () { # Start nfcapd my $command = $Config{'netflow_daemon'} . ' -D -T all -w -t ' . $Config{'netflow_interval'} . ' -P ' . $pid_file . ' -l ' . $Config{'netflow_path'}; if (system ("$command >/dev/null 2>&1") != 0) { - logger (\%Config, " [E] Could not start nfcapd: $command", 1); - print_message (\%Config, " [E] Could not start nfcapd: $command", 1); - return; + $command = $Config{'netflow_daemon'} . ' -D -t ' . $Config{'netflow_interval'} . ' -P ' . $pid_file . ' -w ' . $Config{'netflow_path'}; + if (system ("$command >/dev/null 2>&1") != 0) { + logger (\%Config, " [E] Could not start nfcapd: $command", 1); + print_message (\%Config, " [E] Could not start nfcapd: $command", 1); + return; + } } logger (\%Config, "[*] NetFlow daemon started.", 1);