Commit graph

84 commits

Author SHA1 Message Date
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
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