Commit graph

12 commits

Author SHA1 Message Date
emanuele-f
818a21d9ee Add ability to hide a plugin menu entry 2019-12-20 11:04:18 +01:00
emanuele-f
4c370de8cf Fix missing suricata user scripts 2019-12-19 16:36:51 +01:00
emanuele-f
2047386431 Implement alert_endpoints and http_lint plugin extensions
Alert endpoints can now be loaded via custom plugins.
It's now possible to extend the http_lint parameters with custom parameters and validators.
2019-12-19 12:44:39 +01:00
emanuele-f
26c80529aa Add example plugin with documentation 2019-12-17 16:23:15 +01:00
emanuele-f
d417160cc4 Implement plugins overview page 2019-12-17 11:33:15 +01:00
emanuele-f
8883a5321a Fix plugins errors due to demo expiration 2019-12-12 17:26:56 +01:00
emanuele-f
5587e73b02 Fix script errors in plugins while switching to community mode
Fixes #3127
2019-12-12 08:29:10 +01:00
emanuele-f
bb0974a645 Ensure that permissions on plugins files are correct 2019-12-11 18:38:42 +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
15759c8db2 Add source path, plugin and edition in user scripts 2019-12-10 19:25:00 +01:00
emanuele-f
fe9d5ee882 Fix plugins lua scripts runtime directory 2019-12-10 11:29:04 +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