Commit graph

468 commits

Author SHA1 Message Date
Luca
6a5714a2d9 Traffic profiles crash fix 2016-12-28 22:08:02 +01:00
valentina
07e7f5958e Removed compilation warning 2016-12-27 16:35:51 +01:00
Luca
c44bfa8fdb Implemented #98
Ingress data can now be kept aggregated (default) or explored based on various criteria
- ZMQ interfaces: disaggregate based on probeIP or ingress interfaceId
- packet interfaces: disaggregate on VLANId
2016-12-27 11:03:52 +01:00
Simone Mainardi
eca2c41049 Reworks alert counters (WIP)
Alert counters are now kept in sync only for engaged alerts.
Each host will show the current number of engaged alerts.
This alleviates the complexity of constantly keep the numbers
synchronized with the database.

Todo: see how to handle counters for flow alerts and past alerts.
2016-12-24 16:21:50 +01:00
Simone Mainardi
06fea2cf18 Fixes issues with MAC addresses retrieval
Also cleans up unused code
2016-12-23 16:40:55 +01:00
Simone Mainardi
ea40dff6b7 Prevents host first/last seen to be reset on exit
Fixes #857
2016-12-22 12:49:07 +01:00
Simone Mainardi
ff7c61bb9d Fixes an issue when dumping flows already partially dumped
The final dump for flows partially dumped could be, under certain
conditions, skipped. This commit addresses the issue.

Fixes #846
2016-12-21 19:44:47 +01:00
Simone Mainardi
482c2ca834 Implements counter resets
This commits adds two reset buttons to the interface page.

One button allows the reset of all interface counters, namely,
packets and bytes received, packets dropped, and the number of
flows exported and dropped (when mysql or elasticsearch is enabled).

The other button allows the reset of only the drops.
2016-12-21 12:48:04 +01:00
Luca Deri
72d5208fb0 Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2016-12-20 19:16:46 +01:00
Luca Deri
9d4df13c1a Reworked AddressTree implementation 2016-12-20 19:16:34 +01:00
Simone Mainardi
4cef4e9782 Re-enables batched MySQL insertions 2016-12-20 14:55:02 +01:00
Luca Deri
f2800ae208 Added early check for view interfaces 2016-12-20 09:20:05 +01:00
Luca Deri
273aa3172e Disabled alert code when not necessary 2016-12-19 19:12:35 +01:00
Luca Deri
ee94021e39 Disabled alert refresh when not necessary 2016-12-19 18:46:27 +01:00
Luca Deri
ee400ef10f Added better handling of blacklisted hosts and alerts
Disabled MySQL DB for view interfaces
2016-12-19 16:57:14 +01:00
Luca Deri
5c5f2b1329 Disabled experimental MySQL improvements 2016-12-17 09:26:13 +01:00
Simone Mainardi
eb0c10a8dd Adds periodic MySQL flush method 2016-12-16 18:53:59 +01:00
Luca Deri
3436846a65 Compilation fix 449c718208 2016-12-16 08:07:37 +01:00
Luca
a16fc2800b Code cleanup 2016-12-16 01:46:07 +01:00
valentina
e3a1962997 Fix: the isPassVerdict is now called just when you have a bridge interface
Added check in order to drop the packets of blacklisted hosts in a bridge interface.
2016-12-16 00:31:36 +01:00
Simone Mainardi
5ded07f5a8 Adds code for batched mysql insertions 2016-12-15 22:53:23 +01:00
Luca
f56ea09247 Disabled specific operations for non-local hosts
Using #defines for strings
2016-12-15 19:00:58 +01:00
emanuele-f
ee23e14aed Remove unused parameters 2016-12-15 17:54:56 +01:00
Luca
44e0d1ef0c Modified slack alerts report (more work to do)
Num of engaged alerts is now read upon network interface startup
2016-12-13 16:13:54 +01:00
Luca
25185ce028 While the network interface has at least one engaged interface alert, expired flows are now triggering a flow alert 2016-12-13 01:19:50 +01:00
Luca Deri
ce5fbf2a8e Traffic shaping code cleanup and optimizations 2016-12-10 13:27:42 +01:00
valentina
c83bcdb887 Fix for shapers in bridge mode. 2016-12-10 01:19:29 +01:00
valentina
09056d0646 Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2016-12-09 03:04:27 +01:00
valentina
c0fbce98a5 Network and protocol shaping step 2: Implemented shaping engine 2016-12-09 03:02:34 +01:00
Simone Mainardi
9a61e069d5 Refresh alert counters upon host init 2016-12-08 21:37:02 +01:00
Simone Mainardi
282a289ef2 Fixes for alerts count consistency 2016-12-08 21:25:11 +01:00
valentina
961b9cbd63 Network and protocol shaping step 1: revert shaping and filtering engine
Code cleanup.
2016-12-08 00:51:21 +01:00
Simone Mainardi
a6d914d7ad Implements flow alerts cap and fixes several issues with counters 2016-12-07 18:45:50 +01:00
Simone Mainardi
84fe1e4f5f FIx for dynamic vlan creation 2016-12-07 10:27:26 +01:00
Simone Mainardi
3c410d605c Merges Flow::lua with Flow::print_peers 2016-12-06 18:32:42 +01:00
Luca Deri
8db35eb433 Minor code cleanup 2016-12-05 21:08:18 +01:00
Luca Deri
9e0673b8b4 Removed unused variable
Aded check to rpevent loop with invalid packets
2016-12-05 18:29:35 +01:00
Luca Deri
be136251d1 Restored periodic flow activities
Minor code cleanup
2016-12-05 15:41:35 +01:00
Luca Deri
5cee98a65c Shaper code cleanup 2016-12-05 13:00:02 +01:00
Luca Deri
ebf5462491 Implemented DHCP dissection for name resolution 2016-12-04 22:56:29 +01:00
Luca Deri
091378fd7b Implemented local hosts looking glass (more criteria to be added) 2016-11-30 16:26:17 +01:00
emanuele-f
d52dc77e36 Implement per-network protocol shaping 2016-11-27 01:50:31 +01:00
Alfredo Cardigliano
fecac12d50 max packet len safety check fix 2016-11-23 22:19:52 +01:00
Simone Mainardi
b00d028469 Moves policer init in PacketBridge 2016-11-24 12:57:49 +01:00
Simone Mainardi
61c134fb59 Prevents policer instantiation for non-bridge interfaces 2016-11-24 12:04:57 +01:00
emanuele-f
322390648a Create/delete traffic shapers at runtime 2016-11-23 12:40:21 +01:00
Simone Mainardi
156a39c645 Caches alerts counts to reduce queries 2016-11-21 15:41:07 +01:00
Luca Deri
7e46c02eb1 Fixed broken logic of interface packet drop reset 2016-11-21 10:12:12 +01:00
Simone Mainardi
a5674d1595 Implements interface packet drop reset 2016-11-20 12:21:42 +01:00
Simone Mainardi
262d3ec9ed Fixes segfault due to new dynamic interfaces 2016-11-19 17:31:20 +01:00