Commit graph

1039 commits

Author SHA1 Message Date
Simone Mainardi
c9223590d9 Workaround to handle \n forcefully set when decoding ZMQ tlv 2019-07-31 16:06:15 +02:00
emanuele-f
d38cd23615 Move C alerts to unified alerts_queue 2019-07-30 11:43:18 +02:00
emanuele-f
62f754f7f9 Initial work towards unified alerts queue 2019-07-29 18:22:49 +02:00
Alfredo Cardigliano
babab56394 Handling http ret code, dns query type and ret code from the ZMQ parser 2019-07-26 16:12:35 +00:00
Alfredo Cardigliano
289e787da7 Creating the flow additional fields json object only when required 2019-07-26 12:54:40 +00:00
Alfredo Cardigliano
d010bb9b47 ZMQ flow processing optimization (+20%) 2019-07-26 11:11:40 +00:00
Alfredo Cardigliano
b0d3260761 More profiling checkpoints 2019-07-26 09:47:27 +00:00
Alfredo Cardigliano
88ab5cfb3c Profiler fixes 2019-07-26 09:05:17 +00:00
Simone Mainardi
afe2e5111e Fixes disaggregated interfaces initialization
Possible fix for #2745 and #2743
2019-07-26 10:13:51 +02:00
Alfredo Cardigliano
7efc8dfcae flowProcess profiling 2019-07-25 16:33:41 +00:00
Simone Mainardi
f035d5c894 Reworks shutdown operations to properly terminate pool loops and periodic activites 2019-07-25 11:58:13 +02:00
emanuele-f
55405857cc Fix possibly idle GenericHashEntry due to deserialization 2019-07-25 11:43:49 +02:00
Luca Deri
0eb9407de4 Minor changes 2019-07-25 09:59:44 +02:00
Simone Mainardi
295862e3c4 Prevents double host allocation when cli and srv are equal in flow 2019-07-24 16:52:57 +02:00
Simone Mainardi
940bf0bde3 Minor code cleanup 2019-07-24 16:29:51 +02:00
emanuele-f
a3942831b8 Fix issues with engaged alert counters and other improvements 2019-07-24 15:40:43 +02:00
Simone Mainardi
25fc8da061 Implements host flows fetch for view interfaces 2019-07-24 13:04:22 +02:00
Simone Mainardi
b9ae314776 Compilation fixes 2019-07-24 11:51:20 +02:00
Luca Deri
cc5bb700bc Compilation fix 2019-07-24 11:31:09 +02:00
Simone Mainardi
a1f0c639c7 Prevents aggregated flows dump for view and viewed interfaces 2019-07-23 18:00:05 +02:00
Simone Mainardi
969c51fbe4 Implements time-based aggregated flows dump 2019-07-23 12:28:04 +02:00
Simone Mainardi
ed5c0d4d4c Implements proper shutdown with view interfaces 2019-07-22 18:43:30 +02:00
Simone Mainardi
c8fbfa8243 Uses walker() wrapper to navigate hash tables 2019-07-22 16:21:07 +02:00
Simone Mainardi
dd87bdb246 Uses hash entries finite states machine on view interfaces 2019-07-22 16:13:27 +02:00
Simone Mainardi
9b6714823a Implements hash entries lifecycle as a finite states machine
Fixes certain sporadic race conditions
2019-07-22 15:18:39 +02:00
Simone Mainardi
5f95d0727b Adds is_view flag to the NetworkInterface 2019-07-19 19:24:54 +02:00
Simone Mainardi
d9275ac166 Allows an extra runHousekeepingTasks before shutting down to do proper cleanup 2019-07-19 19:11:29 +02:00
Simone Mainardi
0d1b4c30a9 Prevents periodic flows hash walk for view interfaces 2019-07-19 17:17:38 +02:00
Simone Mainardi
302c7f673b Prevents flows db dump for viewed interfaces 2019-07-19 15:28:21 +02:00
emanuele-f
c9bf1e78cc Implement alerts release on shutdown 2019-07-19 13:58:10 +02:00
Simone Mainardi
3cd6a92efd Implements nDPI stats counters for views 2019-07-19 10:30:59 +02:00
Simone Mainardi
824027da2a Implements lua calls of idle hosts with triggered alerts 2019-07-18 18:15:23 +02:00
emanuele-f
3383ac0913 Implement dropped alerts per-interface counter 2019-07-18 17:29:05 +02:00
Simone Mainardi
a5bf74b2b6 Makes AlertCheckLuaEngine a subclass of LuaEngine 2019-07-18 17:27:57 +02:00
Simone Mainardi
54c1df4b4d Implements class AlertCheckLuaEngine and refactors code 2019-07-18 17:01:05 +02:00
Simone Mainardi
0fd3be6b79 Implements hosts purge mark algorithm 2019-07-18 15:19:36 +02:00
Simone Mainardi
be85b2ebc8 Implements algorithm to purge hosts only after checking their alerts 2019-07-18 13:34:45 +02:00
emanuele-f
585dba1d19 Implement alertable walker 2019-07-18 11:50:51 +02:00
Simone Mainardi
f18db066da Uses NetworkInterface::walker to check alerts on hosts 2019-07-18 11:43:39 +02:00
emanuele-f
6ea7055761 Fix engaged alerts on remote hosts 2019-07-17 18:46:19 +02:00
emanuele-f
991c4e2786 Implement engaged alerts pagination 2019-07-17 17:31:37 +02:00
Simone Mainardi
34f91bfd9f Implements new algorithm to allow flows purging control from interface views 2019-07-17 16:15:56 +02:00
emanuele-f
2e537a0c94 Alert changes after review 2019-07-17 12:51:47 +02:00
emanuele-f
279c29aeb7 Run purge and periodic scripts with original speed PCAP dump 2019-07-17 12:19:17 +02:00
Simone Mainardi
c984d33034 Prevents HTs allocation in viewed interfaces 2019-07-17 12:16:46 +02:00
Simone Mainardi
1c78421a8b Defers NetworkInterface HTs allocation to skip it in view interfaces 2019-07-17 11:54:57 +02:00
Simone Mainardi
c13dc628de Moves view subinterfaces to class ViewInterface 2019-07-17 11:01:05 +02:00
Simone Mainardi
46aed24a72 Allows ntopng to work without mac instances and macs HT 2019-07-17 10:50:48 +02:00
Simone Mainardi
006ccc4a97 Allows ntopng to work without vlan instances and vlans HT 2019-07-16 23:31:20 +02:00
Simone Mainardi
03af92eb36 Allows ntopng to work without countries instances and countries HT 2019-07-16 23:26:58 +02:00