Commit graph

145 commits

Author SHA1 Message Date
Simone Mainardi
99366d6ee3 Optimizes execution of user scripts (avoids multiple hosts HT walks) 2020-07-29 14:45:52 +02:00
Simone Mainardi
09c69edb22 Major rework of user_scripts.lua to use new pools 2020-07-10 13:01:29 +02:00
Simone Mainardi
2230673eb3 Reworks user scripts UI with new host pools 2020-07-09 19:12:20 +02:00
Simone Mainardi
9e5e63e28f Avoids unnecessary executions of flow user script external_alert_check.lua
Fixes #4080
2020-06-26 12:08:10 +02:00
Simone Mainardi
62ec5e0262 Fixes User Script Configuration Clone Broken
Fixes #4068
2020-06-22 19:52:15 +02:00
emanuele-f
610e632234 Add comments/remove table.clone when not needed 2020-05-21 11:10:47 +02:00
Alfredo Cardigliano
2425134f05 Replace isEnterprise with isEnterpriseM 2020-04-02 12:36:34 +00:00
emanuele-f
15c013922d Improve plugins reload to avoid transient errors
A "shadow directory" is now populated when the reload occurs and then swapped as the active directory.
This avoids breaking the directory structure or changing files when other threads are possibly working
on them.

Fixes #3595
2020-03-26 14:21:11 +01:00
emanuele-f
ee17475cc5 Fix ntopng references for oem 2020-03-17 18:00:40 +01:00
emanuele-f
94f175194b Initial changes for MUD recording 2020-03-04 17:05:53 +01:00
Luca Deri
8811a076a6 Code cleanup 2020-02-27 08:19:17 +01:00
emanuele-f
a564a7a094 Scripts overview enhancements
- Add missing subdirs
- Add link to the scripts source
2020-02-10 11:51:00 +01:00
emanuele-f
6f68c77967 Fix script checks missing in loadModule and isSystemScriptEnabled 2020-02-10 10:54:24 +01:00
emanuele-f
628c9465eb Fix config not saved when script is disabled 2020-01-27 10:36:08 +01:00
Simone Mainardi
95061f331a Only returns available categories for a user script subdir 2020-01-25 18:38:52 +01:00
emanuele-f
50ca1b455a Changes to handle the DNS exclusion list 2020-01-24 15:17:42 +01:00
Simone Mainardi
b1b57dd64a Adds user script categories description
Implements #3311
2020-01-24 12:18:34 +01:00
emanuele-f
f8d09f7387 Add button to reset the user scripts configuration
Closes #3307
2020-01-24 11:11:01 +01:00
Simone Mainardi
e15fcf721c Implements User Script Categories
Implements #3280
2020-01-23 16:30:47 +01:00
emanuele-f
b689f15f79 User scripts templates fixes 2020-01-23 15:02:48 +01:00
emanuele-f
1c8c93ff6e Split user script template logic into separate script 2020-01-23 14:42:02 +01:00
emanuele-f
facfdae358 Fix for the user scripts enable action 2020-01-23 12:05:24 +01:00
emanuele-f
60b739ed5e Add api to enable/disable a user script 2020-01-23 10:52:35 +01:00
emanuele-f
aca088ea13 Add hyperlink to jump to the alert configuration
Closes #2936
2020-01-17 19:11:15 +01:00
Alfredo Cardigliano
228a129166 Handle special config id 0 (default) 2020-01-16 14:59:41 +01:00
Alfredo Cardigliano
3ce84b07cf Add button to export user script conf. New endpoint to set user scripts configuration. 2020-01-15 17:48:00 +01:00
emanuele-f
8dd446b948 Add missing variable 2020-01-13 22:23:04 +01:00
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