Commit graph

401 commits

Author SHA1 Message Date
Simone Mainardi
b44de6e18d Implements discarded probing traffic counters and timeseries 2019-12-31 16:01:24 +01:00
Alfredo Cardigliano
8caed2a438 Comments 2019-12-27 15:22:59 +01:00
Simone Mainardi
c873aee41b Implement counter and chart for new flows per second 2019-12-27 12:29:55 +01:00
emanuele-f
c665bc78d7 Make configsets global 2019-12-23 13:25:35 +01:00
emanuele-f
c6c6c46132 Implement configsets target hosts CIDR match 2019-12-20 14:27:38 +01:00
emanuele-f
f62aa15117 Load new configsets while loading user scripts
Hosts/SNMP devices will be handled separately
2019-12-20 12:19:49 +01:00
emanuele-f
61ddcd9730 Fix syslog script subdir 2019-12-19 16:40:09 +01:00
emanuele-f
4c370de8cf Fix missing suricata user scripts 2019-12-19 16:36:51 +01:00
emanuele-f
139a16ffe3 Fix protocol categories association lost after reboot
After the recent changes, there is only one global nDPI struct which
is share across all the interfaces. However, the struct can be swapped
during normal operating, so it's necessary to reload the associations
every time a new nDPI struct is allocated.

Fixes #3139
2019-12-19 15:11:21 +01:00
Simone Mainardi
f9b6921983 Fixes devices policies reload and alerts generation
Fixes #3102
2019-12-19 11:42:24 +01:00
Simone Mainardi
692463fbc9 Fixes initial misdetection of flows with custom protocols 2019-12-19 10:38:51 +01:00
emanuele-f
b5197ba452 Integrate configsets with user scripts configurations 2019-12-16 17:36:30 +01:00
emanuele-f
c95473d659 Add snmpDevice hook and improve SNMP user scripts API
Closes #3097
2019-12-16 15:30:15 +01:00
emanuele-f
b10520e264 Rename checkAlerts callback to runScripts 2019-12-16 09:31:24 +01:00
emanuele-f
3a6897bb84 Community plugins fixes 2019-12-10 11:48:03 +01:00
emanuele-f
a3432e00e8 Implement ntopng plugins
Plugins are a convenient way to group together related lua scripts.
Their primary use case is to group user scripts and their alert/status
definition.
The builtin ntopng user scripts and definitions are now
packed into plugins directories. In future, we will support loading of
user created plugins.
Plugins are loaded at startup into some runtime directories and then
used. Other changes provided by this commit include:

- Add sample flow logger plugin
- Initial support for system user scripts
- Rename edge to threshold
- Migrate system probes to user scripts/plugins
- Migrate scripts to more explicit alerts_api.checkThresholdAlert api
2019-12-10 09:25:57 +01:00
emanuele-f
0d48bff069 Implement more flexible user_scripts api
NOTE: The existing alerts configuration of the users will be discarded.

Some code has been added to make the current gui on/off toggle work.
It is marked with the following comment:

-- TODO remove after implementing the new gui
2019-11-28 11:06:14 +01:00
Simone Mainardi
188ec66c25 Implements scriptable SNMP devices alerts 2019-11-22 18:00:31 +01:00
Simone Mainardi
4cde74af2b Allows system probes timeseries to be enabled/disabled
Fixes #3069
2019-11-20 16:05:14 +01:00
Simone Mainardi
68ce38d0ae Generalizes memory usage monitor with a system probe 2019-11-20 16:05:10 +01:00
Simone Mainardi
d3995e36a2 Fixes accesses to possibly nil discovered data 2019-11-19 18:12:56 +01:00
Alfredo Cardigliano
d2b7cea9c8 Keeping track of resident memory only (fix #3040) 2019-11-15 09:42:08 +01:00
emanuele-f
6585364186 Account internal alerts queue drops 2019-11-14 12:30:12 +01:00
emanuele-f
74ce0562d7 Rework datatableRefreshRows for easier and more robust usage 2019-11-07 11:19:40 +01:00
emanuele-f
58d88d161e Implement redis num calls charts 2019-11-06 18:12:17 +01:00
Luca
aad44a5bca Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2019-11-04 17:58:26 +01:00
Luca
71532321b5 Implemented redis stats 2019-11-04 17:58:12 +01:00
emanuele-f
191e530f6f Clean category lists error status on startup and remove debug prints 2019-11-04 13:07:24 +01:00
emanuele-f
0d04eb2d5c Stop writing points if InfluxDB export is failing.
The dropped points are accounted and shown in the gui. Dropped points alert are generated as usual.

Fixes #2998
2019-10-24 16:09:01 +02:00
Simone Mainardi
15e17a801a Implements per-state hash entry counters and writes them to ts 2019-10-23 13:09:02 +02:00
emanuele-f
373118f4cc Fix missing systemd interface cleanup on startup
This caused the timeseries export directory to fill up as reported in #2985
2019-10-23 10:54:54 +02:00
Simone Mainardi
3950c3ddc8 Support for 5-min timeseries resolution in InfluxDB 2019-10-15 15:06:20 +02:00
Simone Mainardi
ca5bcd86bf Deprecates sticky hosts
Fixes #2907
2019-10-14 18:50:18 +02:00
emanuele-f
246b18838d Fix nEdge active flows blocking 2019-09-30 16:12:26 +02:00
Simone Mainardi
3ea092093f Adds generic probes tab to the alerts pages 2019-09-23 18:50:43 +02:00
Simone Mainardi
b3f50c6b21 Fixes DNS resolution leaks and wrong ping addresses 2019-09-23 14:54:19 +02:00
emanuele-f
b090594027 Add missing home button in RTT stats
Fixes #2849
2019-09-17 16:09:30 +02:00
Simone Mainardi
165a53d18e Adds timeseries of ZMQ messages received and dropped 2019-09-10 19:49:16 +02:00
emanuele-f
8e6cd5962a Fix blacklisted host alerts not generated when reading from PCAP dump 2019-09-03 17:50:08 +02:00
Simone Mainardi
2e67a69cb7 Implements redis health and keys used monitoring 2019-08-30 16:19:33 +02:00
Simone Mainardi
24cf71a70d Parses and charts UDP socket drops from nProbe 2019-08-30 12:54:41 +02:00
Simone Mainardi
6ae30f0604 Initial implementation of the Redis monitoring probe 2019-08-28 19:30:52 +02:00
emanuele-f
7893c1f78a Implement RTT host engage/release alert 2019-08-20 19:02:58 +02:00
Alfredo Cardigliano
e14ab5c2fc Avoid cehcking extracton jobs on redis when recording is not available (#2767) 2019-08-16 12:32:07 +02:00
emanuele-f
ee9e5ec9de Unify alerts and alerts notifications format 2019-07-30 18:12:58 +02:00
emanuele-f
93a3cb9b7e Migrate lua alerts to unified alerts queue 2019-07-30 12:22:00 +02:00
emanuele-f
d38cd23615 Move C alerts to unified alerts_queue 2019-07-30 11:43:18 +02:00
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
emanuele-f
c183a577be Alerts API cleanup and JSON migration 2019-07-29 15:17:22 +02:00