mbolli / nfsen-ng

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

Nfdump bad version when ./cli.php import #108

Open linhnt-hub opened 2 weeks ago

linhnt-hub commented 2 weeks ago

I had issue when try import data from nfdump with log below:

Processing 2 sources...                                                                                  50.0% 1096/2194 ETC: < 1 sec. Elapsed: < 1 sec [==============>                ]2024-07-09 04:57:32 Scanning path /data/live/router1/2024/07/09
Scanning /data/live/router1/2024/07/09...                                                                50.0% 1097/2194 ETC: < 1 sec. Elapsed: < 1 sec [===============>               ]2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091025: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091030: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091035: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091040: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091045: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091050: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091055: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091100: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091105: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091110: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091115: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091125: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091130: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091135: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091140: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091145: bad version: 2 
2024-07-09 04:57:32 Exception: NfDump: Internal error. <br><b>Output:</b> Open file /data/live/router1/2024/07/09/nfcapd.202407091150: bad version: 2 

Could you recommend , please?

mbolli commented 2 weeks ago

You're using the old nfcapd capture format, see also https://github.com/phaag/nfdump/issues/261