Commit graph

365 commits

Author SHA1 Message Date
Simone Mainardi
a7ea7f76ed Implements detection of slow timeseries append 2020-02-19 18:45:36 +01:00
emanuele-f
7c534a557c Add the is_critical_ts flag to force timeseries write 2020-02-19 15:31:36 +01:00
emanuele-f
d1140ec9fd Avoid timeseries read operations to display the chart icon
Now the icon is displayed whenever the timeseries are enabled for the given context
2020-02-19 13:27:20 +01:00
Simone Mainardi
0e64fd94d6 Implements deadlines for periodic and user scripts 2020-02-18 18:44:41 +01:00
Simone Mainardi
156975afd5 Show periodic scripts stats in the system interface 2020-02-17 15:43:42 +01:00
Simone Mainardi
95bd9ace07 Implements duration stats for system periodic activities 2020-02-17 14:39:58 +01:00
Simone Mainardi
00158e8bc2 Implements error handling in line protocol generation 2020-02-16 14:30:08 +01:00
emanuele-f
7e6909b561 Add now timestamp in SNMP 2020-02-11 17:33:19 +01:00
Simone Mainardi
7f6e69653e Fixes reload of scripts upon license changes or expiration
Fixes #3213
2020-01-27 14:07:50 +01:00
emanuele-f
242a9c8632 Fix SNMP scripts invoked also when disabled 2020-01-22 18:33:49 +01:00
emanuele-f
eafa80da09 Fixes for the 'all' hook 2020-01-22 16:54:33 +01:00
emanuele-f
aca088ea13 Add hyperlink to jump to the alert configuration
Closes #2936
2020-01-17 19:11:15 +01:00
Luca Deri
170bc60f19 Updated (C) 2020-01-08 23:52:51 +01:00
emanuele-f
d037f9a9a4 Use new user scripts config and gui
The user scripts configuration can now be configured from the "User Scripts" entry under the cog
icon. It allows the creation of multiple configuration presets to be applied to hosts, networks and
interfaces.
2020-01-03 13:03:34 +01:00
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