Commit graph

2500 commits

Author SHA1 Message Date
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
139a16ffe3 Fix protocol categories association lost after reboot
After the recent changes, there is only one global nDPI struct which
is share across all the interfaces. However, the struct can be swapped
during normal operating, so it's necessary to reload the associations
every time a new nDPI struct is allocated.

Fixes #3139
2019-12-19 15:11:21 +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
Simone Mainardi
7ed9698125 Fixes font-awesome 5 fa-warning 2019-12-19 11:50:19 +01:00
Simone Mainardi
f9b6921983 Fixes devices policies reload and alerts generation
Fixes #3102
2019-12-19 11:42:24 +01:00
emanuele-f
0c6f9c607e Fix get_user_scripts.lua enabled_hooks 2019-12-18 16:23:37 +01:00
Simone Mainardi
bf8bd2630d Fixes unassigned host pools members
Fixes #3117
2019-12-18 15:33:52 +01:00
Simone Mainardi
dacaa7e3db Migrates font-awesome 5 fa to fas 2019-12-18 11:50:02 +01:00
emanuele-f
e28d0ec755 Reduce the 1d aggregation visualization interface when 1h is disabled 2019-12-18 11:44:04 +01:00
emanuele-f
262fc931f6 Disable InfluxDB 1h data rollup to reduce db pressure 2019-12-18 11:31:31 +01:00
Simone Mainardi
0eb75bf884 Uses new localization for icmp types and codes 2019-12-18 10:49:38 +01:00
emanuele-f
26c80529aa Add example plugin with documentation 2019-12-17 16:23:15 +01:00
Simone Mainardi
fdba617b0d Fixes discovery for loopback interfaces 2019-12-17 14:27:35 +01:00
emanuele-f
d417160cc4 Implement plugins overview page 2019-12-17 11:33:15 +01:00
Simone Mainardi
f5b12acfdc Fixes font-awesome 5 fa-exchange 2019-12-16 18:50:18 +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
Alfredo Cardigliano
20f43d9707 More permissive parameter check when deleting items from pools to handle mistakes (fix #3118) 2019-12-16 11:36:43 +01:00
Simone Mainardi
d16f445cff Implements full ICMP v4 and v6 support 2019-12-14 21:59:24 +01:00
Simone Mainardi
539f82a153 Improves ICMPv6 types/codes support 2019-12-14 16:58:37 +01:00
emanuele-f
c1cb3b38ca Implement new user scripts configsets API 2019-12-13 17:19:08 +01:00
Alfredo Cardigliano
b16479603f Automatic updates preference 2019-12-13 13:05:58 +01:00
Simone Mainardi
0ce4ebad97 Dropbox code cleanup 2019-12-13 10:43:08 +01:00
Simone Mainardi
37f54a5090 Fixes font-awesome 5 external link
Fixes #3125
2019-12-13 10:18:20 +01:00
Alfredo Cardigliano
a45865914b Fix TCP_WIN_* information elements reporting 2019-12-13 09:51:50 +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
52df5b25dc Implement i18n lazy loading
Fixes #3096
2019-12-12 18:23:12 +01:00
emanuele-f
8883a5321a Fix plugins errors due to demo expiration 2019-12-12 17:26:56 +01:00
emanuele-f
f473a59460 Add user scripts getters 2019-12-12 16:00:21 +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
Alfredo Cardigliano
8f652cff71 Software update support 2019-12-11 13:14:15 +01:00
emanuele-f
e566444d43 Handle demo expiration to prevent user scripts failures 2019-12-11 08:50:51 +01:00
emanuele-f
114a5fafa3 Fix flow scripts editor path 2019-12-10 21:15:36 +01:00
emanuele-f
e6346c06eb Fix button alignment 2019-12-10 20:55:07 +01:00
Luca Deri
a0eff7ac59 Implemented script viewer integration 2019-12-10 20:45:15 +01:00
emanuele-f
15759c8db2 Add source path, plugin and edition in user scripts 2019-12-10 19:25:00 +01:00
Luca Deri
fbbec75c54 Disablede debugging code 2019-12-10 18:01:51 +01:00
Luca Deri
958fed3a54 Implemented script code editor 2019-12-10 17:58:16 +01:00
emanuele-f
3a6897bb84 Community plugins fixes 2019-12-10 11:48:03 +01:00
emanuele-f
fe9d5ee882 Fix plugins lua scripts runtime directory 2019-12-10 11:29:04 +01:00
emanuele-f
f998b7fafd Fix automatic alert release skipping some alerts 2019-12-10 09:27:01 +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
Simone Mainardi
df245fad3a Minor cosmetic fixes 2019-12-09 15:46:26 +01:00
Simone Mainardi
b5ba28d8d1 Cleanup old fontawesome 4 and bootstrap 3 2019-12-09 15:35:39 +01:00