Commit graph

562 commits

Author SHA1 Message Date
emanuele-f
e4a67824c1 Migrate slow periodic activity to alerts queue 2019-07-29 18:38:02 +02:00
emanuele-f
62f754f7f9 Initial work towards unified alerts queue 2019-07-29 18:22:49 +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
Simone Mainardi
4155bd69b5 Shows VLANs in view interfaces hosts page when tags are present 2019-07-24 13:33:24 +02:00
Simone Mainardi
969c51fbe4 Implements time-based aggregated flows dump 2019-07-23 12:28:04 +02:00
Simone Mainardi
5f95d0727b Adds is_view flag to the NetworkInterface 2019-07-19 19:24:54 +02:00
emanuele-f
c9bf1e78cc Implement alerts release on shutdown 2019-07-19 13:58:10 +02:00
emanuele-f
3383ac0913 Implement dropped alerts per-interface counter 2019-07-18 17:29: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
f289ab4ddc Cleanups old ViewInterface unused functions 2019-07-17 20:01:55 +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
7680627842 Cleanups view interfaces code 2019-07-17 11:08:46 +02:00
Simone Mainardi
c13dc628de Moves view subinterfaces to class ViewInterface 2019-07-17 11:01:05 +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
Simone Mainardi
535b4438e3 Allows ntopng to work without AS instances and ASes HT 2019-07-16 23:21:08 +02:00
emanuele-f
c117f20e19 Initial rework for in-memory alerts 2019-07-16 19:25:09 +02:00
Simone Mainardi
7eae30e914 Allows ntopng to work without Host instances and hosts HT 2019-07-16 19:02:36 +02:00
Luca Deri
d04d5da466 Implemented --original-speed for reproducing pcaps at original pace 2019-07-15 17:29:07 +02:00
Alfredo Cardigliano
c63831bfa3 Computing L4 protocol statistics for flows 2019-07-12 16:27:34 +02:00
emanuele-f
a2d1e6eda4 Fix interface alert counters and bugged release 2019-07-12 16:08:26 +02:00
Alfredo Cardigliano
92c50fd8f6 Fixed host anomalous_flows counters for active flows when processing a pcap file 2019-07-11 16:46:23 +02:00
Simone Mainardi
11fa6b5212 Implements network alerts 2019-07-10 12:43:17 +02:00
Simone Mainardi
fbc74bf423 Initial implementation of network alerts (wip) 2019-07-09 19:33:27 +02:00
Simone Mainardi
ad5113cee0 Removes unused checkpoint_compression_buffer 2019-07-09 16:25:08 +02:00
Simone Mainardi
24624c8ed0 Implements new minute-by-minute top talkers 2019-07-09 15:43:09 +02:00
emanuele-f
8fc588ca00 Remove checkpointable
checkpointHostTalker and scanAlert must be fixed
2019-07-08 15:31:37 +02:00
Luca Deri
d77704fdd8 Interface alert handler (work in progress) 2019-07-07 23:13:14 +02:00
Luca
76ef993dfe Reworked alerts 2019-07-07 15:09:24 +02:00
Simone Mainardi
94f894454c Removes useless disablePurge and enablePurge 2019-07-05 16:08:51 +02:00
Simone Mainardi
ef4f98a5a5 Implements lock-free hash table additions 2019-07-05 16:00:43 +02:00
Simone Mainardi
54eb6bfe1f Adds flag is_inline_call to the getHost method 2019-07-05 11:44:41 +02:00
Simone Mainardi
5c3c2ae30c Removes unnecessary locks when accessing the mac addresses hash 2019-07-05 11:31:15 +02:00
Simone Mainardi
6248f8d62e Removes unnecessary locks when accessing the countries hash 2019-07-05 11:13:57 +02:00
Simone Mainardi
35c3771986 Adds flag is_inline_call used to lock/unlock when accessing the ASes hash 2019-07-05 11:07:46 +02:00
Simone Mainardi
bc1ecb758e Removes unnecessary locks when accessing the VlanHash 2019-07-05 10:49:28 +02:00
Simone Mainardi
a6e71bef42 Removes unnecessary locks when accessing the AutonomousSystemHash 2019-07-05 10:31:37 +02:00
Simone Mainardi
62a0a11c25 Removes unnecessary locks when accessing the HostsHash 2019-07-05 09:08:14 +02:00
emanuele-f
a9d3c78587 Alerts changes
NOTE: database schema changed. Existing alerts will be lost.

- Unified engaged and closed tables
- Simplified hosts engaged alert counters handling: periodically set by lua
- Removed alert engine and replaced with alert periodicity
- Now engage is implicitly derived from the alert end timestamp and periodicity
- New alerts_api.lua to easily emit alerts
- Removed past alerts counter aggregation by hash
- Alert notifications for non-flow alerts are now removed from C and triggered by lua
2019-06-28 10:47:17 +02:00
emanuele-f
c506ef6aeb Implement L7 num flows charts 2019-06-27 10:00:14 +02:00
Simone Mainardi
b4f7788dea Implements batched lua flows iterator 2019-06-25 12:52:38 +02:00
Simone Mainardi
26d4cc2223 Renames rawsize to len_on_wire 2019-06-05 15:27:57 +02:00