mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Add support for the new nfcapd options.
This commit is contained in:
parent
b8d7331bb9
commit
f292568422
@ -283,9 +283,12 @@ sub pandora_start_netflow_daemon () {
|
|||||||
# Start nfcapd
|
# Start nfcapd
|
||||||
my $command = $Config{'netflow_daemon'} . ' -D -T all -w -t ' . $Config{'netflow_interval'} . ' -P ' . $pid_file . ' -l ' . $Config{'netflow_path'};
|
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) {
|
if (system ("$command >/dev/null 2>&1") != 0) {
|
||||||
logger (\%Config, " [E] Could not start nfcapd: $command", 1);
|
$command = $Config{'netflow_daemon'} . ' -D -t ' . $Config{'netflow_interval'} . ' -P ' . $pid_file . ' -w ' . $Config{'netflow_path'};
|
||||||
print_message (\%Config, " [E] Could not start nfcapd: $command", 1);
|
if (system ("$command >/dev/null 2>&1") != 0) {
|
||||||
return;
|
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);
|
logger (\%Config, "[*] NetFlow daemon started.", 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user