mbolli / nfsen-ng

Responsive NetFlow visualizer built on top of nfdump tools.
Apache License 2.0
232 stars 44 forks source link

Initialization failed with Option -I #26

Closed panaceya closed 4 years ago

panaceya commented 5 years ago

Option -I doesn’t have arguments:

   -I Print flow statistics from file specified by -r, or timeslot
      specified by -R/-M.

Error:

Jul  2 14:09:39 nfsen php[22888]: nfsen-ng: Exception: NfDump: Initialization failed. /usr/local/bin/nfdump -I '' -o 'csv' -M '/usr/local/var/nfsen/profiles-data/live/TEST' -r '2019/04/23/nfcapd.201904230345'  2>&1

Incorrect command

 /usr/local/bin/nfdump -I '' -o 'csv' -M '/usr/local/var/nfsen/profiles-data/live/TEST' -r '2019/04/23/nfcapd.201904230345' 

Correct command is:

 /usr/local/bin/nfdump -I -o 'csv' -M '/usr/local/var/nfsen/profiles-data/live/TEST' -r '2019/04/23/nfcapd.201904230345' 

Tested on:

% freebsd-version
12.0-RELEASE-p6
% nfdump -V
nfdump: Version: 1.6.17

nfsen-ng cloned from git e61013af5f19ef269aeb137048348c3437f99ab5.