emanuele-f
7191f3e1a5
Add checks to avoid startup failures when plugins metadata does not exist
2020-04-27 12:25:48 +02:00
Simone Mainardi
78b334e4eb
Refactors alerts and flow statuses in builtin and plugins
...
Implements #3811
Implements #3812
Refactors builtin alerts
Refactors builtin flow statuses
2020-04-21 22:27:49 +02:00
Simone Mainardi
6ea50fb004
Implements the Elasticsearch alerts endpoint
...
Implements #3105
Initial work to add elastisearch alerts
Initial implementation of ES alerts
Implements version check
Implements flow alerts format
Changes Elasticsearch index name
Comments the Elasticsearch alert endpoint
2020-04-18 16:35:14 +02:00
Simone Mainardi
4177ee61ab
Implements constant flow and alert ids
...
Enlarges AlertType size
Changes alerts database
2020-04-14 22:20:44 +02:00
emanuele-f
0ad1b65512
Add plugins support for httpdocs, HTML templates and Lua modules
...
Such resources can be placed into the following plugin subdirs:
- ./httpdocs: javascript, css and similar, see plugins_utils.getHttpdocsDir
- ./modules: Lua modules, see plugins_utils.loadModule
- ./templates: HTML templates, see plugins_utils.renderTemplate
2020-04-14 17:53:25 +02:00
Simone Mainardi
e487427aab
Refactors alert_utils and enterprise_alert_utils
...
Addresses #3720
Alerts Refactor: alert_utils as module
Alerts Refactor: notify_ntopng_start and notify_ntopng_stop
Alerts Refactor: processAlertNotifications
Alerts Refactor: checkStoreAlertsFromC
Alerts Refactor: formatAlertNotification
Alerts Refactor: notification_timestamp_rev
Alerts Refactor: formatAlertMessage
Alerts Refactor: getConfigsetAlertLink
Alerts Refactor: alertNotificationActionToLabel
Alerts Refactor: flushAlertsData
Alerts Refactor: disableAlertsGeneration
Alerts Refactor: newAlertsWorkingStatus and other
Alerts Refactor: drawAlerts
Alerts Refactor: drawAlertTables
Alerts Refactor: printAlertTables
Alerts Refactor: checkDeleteStoredAlerts
Alerts Refactor: getUnpagedAlertOptions
Alerts Refactor: getTabParameters
Alerts Refactor: getAlerts
Alerts Refactor: getNumAlerts
Alerts Refactor: performAlertsQuery
Alerts Refactor: sec2granularity
Alerts Refactor: granularity2id
Alerts Refactor: granularity2sec
Alerts Refactor: alertEngineLabel
Alerts Refactor: alertEngine
Alerts Refactor: alertEngineRaw
Alerts Refactor: alertTypeDescription
Alerts Refactor: alertType
Alerts Refactor: alertTypeLabel
Alerts Refactor: alertTypeRaw
Alerts Refactor: alertSeverity
Alerts Refactor: alertSeverityLabel
Alerts Refactor: alertSeverityRaw
Alerts Refactor: get_make_room_keys
Alerts Refactor: enterprise_alert_utils
2020-04-10 14:03:20 +02:00
emanuele-f
306a253693
Implement extensible RTT modules
2020-04-10 13:09:30 +02:00
emanuele-f
121c2ef0dd
Add support for Enterprise L plugins
2020-04-02 15:23:11 +02:00
Alfredo Cardigliano
2425134f05
Replace isEnterprise with isEnterpriseM
2020-04-02 12:36:34 +00:00
emanuele-f
61ab06fcd7
Fix SyslogParserInterface plugins loading
2020-03-26 14:47:51 +01: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
d1140ec9fd
Avoid timeseries read operations to display the chart icon
...
Now the icon is displayed whenever the timeseries are enabled for the given context
2020-02-19 13:27:20 +01:00
emanuele-f
d339c81e5c
Remove unused version field form the plugins
2020-02-10 11:55:12 +01:00
emanuele-f
6f68c77967
Fix script checks missing in loadModule and isSystemScriptEnabled
2020-02-10 10:54:24 +01:00
emanuele-f
4f6788fb58
New page_utils api to handle sidebar subitems selection
2020-01-30 11:53:13 +01:00
Simone Mainardi
7f6e69653e
Fixes reload of scripts upon license changes or expiration
...
Fixes #3213
2020-01-27 14:07:50 +01:00
Simone Mainardi
26c7906744
Moves plugin description to manifest.lua
2020-01-21 16:05:38 +01:00
Simone Mainardi
48910b9f87
Implements auto assignment of user script alert and status ids
2020-01-15 13:08:58 +01:00
Luca Deri
170bc60f19
Updated (C)
2020-01-08 23:52:51 +01:00
emanuele-f
4621a8f409
Reload the periodic scripts when the configuration changes
2019-12-31 19:31:03 +01:00
Luca Deri
fb260271d7
File copy fix for non-Unix platforms
2019-12-26 20:54:54 +01:00
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