emanuele-f
7679da4d21
Implement blacklisted country alert
2020-01-13 18:15:27 +01:00
Simone Mainardi
0c0e38c23e
Hides viewed interfaces from flow script config
2020-01-09 11:26:13 +01:00
Luca Deri
170bc60f19
Updated (C)
2020-01-08 23:52:51 +01:00
emanuele-f
481a00a2ad
Add missing user scripts gui labels
2020-01-07 19:04:11 +01:00
emanuele-f
cf527f9b22
Fix configset delete
2020-01-05 12:21:35 +01:00
emanuele-f
ad9c386bb3
Move user scripts gui config to admin, cleanup
2020-01-03 15:16:46 +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
emanuele-f
538ebc741a
Differentiate global from per-hook config scripts
2020-01-03 13:03:34 +01:00
emanuele-f
c57399c060
Nil table fix
2020-01-02 12:29:50 +01:00
emanuele-f
94e717d604
Move configsets to redis hash
2020-01-02 12:21:22 +01:00
emanuele-f
4621a8f409
Reload the periodic scripts when the configuration changes
2019-12-31 19:31:03 +01:00
emanuele-f
3580ddbd02
Fix for possibly nil benchmarks table
2019-12-31 11:39:05 +01:00
emanuele-f
63e270313e
Fix configset targets validation
2019-12-30 15:56:45 +01:00
emanuele-f
3111b4a6e7
Fix nested values in the default configset growing the JSON
2019-12-30 15:12:08 +01:00
emanuele-f
a237231fe3
Add nil check
2019-12-24 11:50:48 +01:00
emanuele-f
fc0206327e
Add configsets targets labels
2019-12-23 14:26:41 +01:00
emanuele-f
c665bc78d7
Make configsets global
2019-12-23 13:25:35 +01:00
emanuele-f
6d4a1fda21
Add user_scripts subdir listing function
2019-12-23 10:28:07 +01:00
emanuele-f
b106c57728
Configsets targets validation
2019-12-20 15:57:56 +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
528cfe3221
Initial support for configsets targets
2019-12-19 18:03:27 +01:00
emanuele-f
17f86d162b
Split configsets in multiple sections, based on the subdir
2019-12-19 17:35:56 +01:00
emanuele-f
4c370de8cf
Fix missing suricata user scripts
2019-12-19 16:36:51 +01:00
emanuele-f
0c6f9c607e
Fix get_user_scripts.lua enabled_hooks
2019-12-18 16:23:37 +01:00
emanuele-f
26c80529aa
Add example plugin with documentation
2019-12-17 16:23:15 +01:00
emanuele-f
9fd1ced9fd
Implement API to update the user scripts configuration
2019-12-16 18:38:28 +01:00
emanuele-f
b5197ba452
Integrate configsets with user scripts configurations
2019-12-16 17:36:30 +01:00
emanuele-f
633608a119
Return the enabled hooks in get_user_scripts.lua
2019-12-16 15:45:50 +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
c1cb3b38ca
Implement new user scripts configsets API
2019-12-13 17:19:08 +01:00
emanuele-f
e3052f4b63
Mark alerts-only user scripts
...
Such scripts are not even loaded when alerts are disabled
2019-12-12 18:36:41 +01:00
emanuele-f
f473a59460
Add user scripts getters
2019-12-12 16:00:21 +01:00
emanuele-f
e9a081903c
More robust plugins loading and error reporting
...
This prevents malformed scripts in plugins from breaking ntopng
2019-12-11 13:20:11 +01:00
emanuele-f
e566444d43
Handle demo expiration to prevent user scripts failures
2019-12-11 08:50:51 +01:00
emanuele-f
15759c8db2
Add source path, plugin and edition in user scripts
2019-12-10 19:25:00 +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
Simone Mainardi
6d36e7cb76
Bootstrap migration btn-default to btn-secondary
2019-12-05 09:27:47 +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
emanuele-f
60fc7e0cfb
Improve flow.lua and add statistics
2019-11-15 10:51:19 +01:00
emanuele-f
bea63668b8
Separate old benchmark from user scripts
2019-11-14 20:03:43 +01:00
emanuele-f
bde0a51f9c
Add periodic_update_seconds parameter
2019-11-14 16:10:45 +01:00
emanuele-f
9b5be79b1d
Remove redundant script key
...
The script file name is used as the key
2019-10-31 18:24:58 +01:00
emanuele-f
33949d31fd
Rework benchmark stats and charts
2019-10-31 17:48:53 +01:00
emanuele-f
e978a83151
Improve user scripts charts
...
Fixes #3020
2019-10-31 13:30:24 +01:00
Simone Mainardi
64b3892909
Counts user scripts execution time using clock ticks
2019-10-30 17:52:59 +01:00
emanuele-f
63660b59f4
Add stacked top user scripts chart
2019-10-29 16:36:00 +01:00
emanuele-f
58a12f1241
Add user scripts benchmark charts
...
Implements #2999
2019-10-24 20:24:13 +02:00
emanuele-f
8747af5f2b
Reduce max queue length
2019-10-24 17:00:03 +02:00