Commit graph

122 commits

Author SHA1 Message Date
Matteo Biscosi
76765da78b Implements #4984 core Internet resources misuse script 2021-01-29 18:15:06 +01:00
gabryon99
9e5c245d7d removed unecessary tprint 2021-01-28 10:08:34 +01:00
gabryon99
26de36685a add select severity to user scripts (#4919) 2021-01-28 10:08:06 +01:00
Matteo Biscosi
2512beb34f
Update user_scripts.lua 2021-01-27 16:02:56 +01:00
gabryon99
aa45a8d64e add severity select for scripts config modal (#4919) 2021-01-27 14:49:00 +01:00
Matteo Biscosi
10fb8bbecc Implements #4919 custom alert severity 2021-01-27 12:29:19 +01:00
Luca Deri
a1178a0791 Updated (C) 2021-01-02 12:08:23 +01:00
Simone Mainardi
5c0c23feb6 Fixes execution of periodicUpdate flow callback
Fixes #4687
2020-11-06 18:17:54 +01:00
gabryon99
cf16003826 add notification for unexpected plugins (#4659) 2020-11-02 11:42:30 +01:00
Simone Mainardi
c947265462 Avoids accessing empty configurations (new user scripts) 2020-10-30 08:52:40 +01:00
Simone Mainardi
0369ac5e72 Adds traces for Xv 2020-10-30 08:35:30 +01:00
Simone Mainardi
0361391646 Implements endpoint to toggle all user scripts
Implements #4500
2020-10-06 14:42:29 +02:00
Alfredo Cardigliano
b98ab627c4 Implement pool import with configset and recipient IDs remapping (#4475) 2020-10-02 16:00:12 +02:00
gabryon99
7c15ebd60b moved flow tab in scripts_config 2020-09-25 18:33:15 +02:00
Luca Deri
55d8e299fa Cleanued up code for flow score 2020-09-23 10:51:36 +02:00
Luca Deri
6589b1e9b3 Fixed startup error when ntopng starts from a clean configuration 2020-09-22 10:48:50 +02:00
Simone Mainardi
3ad4522e45 Implements additional plugin hooks
The following plugin hooks have been implemented

onEnable(hook, hook_config)
onDisable(hook, hook_config)
onUpdateConfig(hook, hook_config)
onLoad(hook, hook_config)
onUnload(hook, hook_config)

Documentation is part of the commit.

Implements #4451
Implements #4453
Implements #4454
Implements #4455
2020-09-21 18:25:14 +02:00
Alfredo Cardigliano
f83ccb70d5 Add external alert check on flow end event. Remove *if* preventing external alerts from being triggered. 2020-09-21 16:12:36 +02:00
Simone Mainardi
304c5404f2 Implement additional plugin hook script.onUpdateConfig
Implements #4451
2020-09-20 13:19:36 +02:00
Simone Mainardi
65484afb6c User script categories id assignment fixes 2020-09-18 19:23:15 +02:00
Simone Mainardi
9341a43809 Adds user scripts categories mapping in C 2020-09-16 16:47:09 +02:00
Simone Mainardi
09c33b57f7 Adds user script category ids 2020-09-15 18:41:02 +02:00
Simone Mainardi
77d458c632 Implements script values factory reset
Implements #4297
2020-08-31 17:52:17 +02:00
Simone Mainardi
34b53b8a9b Adds documentation for OO recipients and operator functions 2020-08-28 18:57:59 +02:00
Simone Mainardi
fa00119b56 Adds operator function to evaluate threshold-based alerts 2020-08-28 17:04:25 +02:00
Simone Mainardi
04431e853c Enables pools in host user scripts configuration 2020-07-30 09:52:12 +02:00
Simone Mainardi
4e96ae7e26 Refactors user_scripts method names 2020-07-29 15:17:31 +02:00
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