emanuele-f
8b7d711a36
Add option to disable flow user scripts invocation
2019-12-23 18:03:19 +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
Luca Deri
fb990bf038
Merge branch 'dev' of https://github.com/ntop/ntopng into dev
2019-12-20 12:07:11 +01:00
Luca Deri
941c017ac1
Compilation fixes
2019-12-20 12:06:57 +01:00
emanuele-f
d44061f529
Expose ndpi_ssl_version2str to Lua
2019-12-20 10:25:54 +01:00
Alfredo Cardigliano
65da842176
Add ntopng service restart to the menu
2019-12-19 18:08:22 +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
Simone Mainardi
08f6c29aa6
Fixes patricia tree initialization
2019-12-17 18:52:50 +01:00
Simone Mainardi
bebaee1446
Minor cleanup
2019-12-17 17:33:47 +01:00
Simone Mainardi
34387c4121
Fixes os detection and set in network discovery
2019-12-17 17:29:21 +01:00
Simone Mainardi
fdba617b0d
Fixes discovery for loopback interfaces
2019-12-17 14:27:35 +01:00
Alfredo Cardigliano
e1bc445961
Checking if current version is < available version (to handle manual updates)
2019-12-17 11:09:05 +01:00
Alfredo Cardigliano
eed2601a1e
Warning fix
2019-12-17 10:10:46 +01:00
Simone Mainardi
9b72f134cc
Fixes switch interface for nologin users
2019-12-16 19:50:17 +01:00
emanuele-f
cdc154f700
Fix for missing error messages in loaded scripts
2019-12-16 12:25:27 +01:00
emanuele-f
b6cef08bea
Fix spurious configuration save requests due to interface switching
...
Switching the active network interface triggered a POST request, which
was interpreted by the active lua script as a configuration save request.
Now in case of interface switching a 302 redirection is performed to clear
the page state.
Fixes #3126
2019-12-13 14:53:44 +01:00
Simone Mainardi
0ce4ebad97
Dropbox code cleanup
2019-12-13 10:43:08 +01:00
Alfredo Cardigliano
0ef242feb1
Show updates menu when installing from packages only
2019-12-12 10:17:15 +01:00
emanuele-f
bb0974a645
Ensure that permissions on plugins files are correct
2019-12-11 18:38:42 +01:00
Simone Mainardi
f71194a062
Minor cleanup
2019-12-10 14:33:21 +01:00
Simone Mainardi
4afa348f89
Fixes possibly invalid icmp echo id
2019-12-10 14:26:27 +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
4bac6dfd85
DNS queries pie chart fix
2019-12-05 17:14:02 +01:00
Alfredo Cardigliano
d69276396f
Replace Interfaces dropdown with Interface stats link and interface selector
2019-11-27 17:28:48 +01:00
Simone Mainardi
188ec66c25
Implements scriptable SNMP devices alerts
2019-11-22 18:00:31 +01:00
Alfredo Cardigliano
88a2c9c36f
Email Notification improvements: add smtps support, add username/password configuration
2019-11-22 11:34:22 +01:00
Simone Mainardi
5b81a3ab9e
Implements low goodput calculation in lua
2019-11-21 16:37:33 +01:00
Simone Mainardi
a893e0a2c0
Implements IP addresses retrieval by Mac address
2019-11-20 18:44:01 +01:00
Simone Mainardi
9cb566ed41
Computes lua scripts deadlines in C to prevent missing scheduled activities
2019-11-19 13:02:13 +01:00
emanuele-f
3dd7d2215d
Remove matchesL7 call
2019-11-15 16:58:59 +01:00
emanuele-f
7d0888d302
Flow user scripts optimizations
2019-11-15 15:52:36 +01:00
Alfredo Cardigliano
e38835a603
Rename SSL to TLS ( fix #3013 )
2019-11-15 12:40:01 +01:00
emanuele-f
60fc7e0cfb
Improve flow.lua and add statistics
2019-11-15 10:51:19 +01:00
emanuele-f
c19bda5425
Move internal alerts queue from redis to C
2019-11-14 12:07:29 +01:00
emanuele-f
df0556cb87
Optimize flow alerts generation
...
This provides a ~10x speedup by performing the JSON serialization work in C
(and thus avoiding Lua->C overhead). This also implements two in-memory alerts
queues (one for sqlite and one for the notifications) in order to reduce Redis load.
Alerts queue are now global instead of per-interface as there is only 1 dequeing thread.
2019-11-14 11:54:13 +01:00
Simone Mainardi
05e6dc1677
Implements bi- and mono-directional flow callbacks filter
...
Implements #3055
2019-11-13 18:14:49 +01:00
Simone Mainardi
7b7b7f9eec
Fixes use of THW information to detect probing
2019-11-13 16:49:31 +01:00
emanuele-f
739c87a52d
Initial flow user scripts optimization
2019-11-11 18:04:48 +01:00
emanuele-f
26abe5e958
Split flow.getDurationInfo in smaller functions
2019-11-08 20:14:02 +01:00
Luca
5f72aa0c2e
nDPI cleanup
2019-11-08 11:38:03 +00:00
Luca
f3d207a840
Disabled category cleanup
2019-11-07 06:55:02 +00:00
Luca
1fb32a0795
Unified nDPI struct across interfaces
2019-11-06 23:02:35 +00:00
Luca
077d112392
Merge branch 'dev' of https://github.com/ntop/ntopng into dev
2019-11-06 09:18:19 +00:00
Luca
0e523a4308
Changes to minimize the risk of categories reload
2019-11-06 09:17:53 +00:00
Alfredo Cardigliano
cb2f37529e
Reworked storeFlowAlert (using Lua table instead of many params now)
2019-11-06 10:02:15 +01:00
emanuele-f
54140b6f1a
Migrate alertable disabled alerts preference to lua
...
This avoids performing multiple hget on redis, thus increasing performance
2019-11-05 14:59:38 +01:00
Luca
aad44a5bca
Merge branch 'dev' of https://github.com/ntop/ntopng into dev
2019-11-04 17:58:26 +01:00
Luca
71532321b5
Implemented redis stats
2019-11-04 17:58:12 +01:00
emanuele-f
675adcf90e
Migrate hosts disabled flow status preference to lua
...
By loading all the preferences at once in flow.lua setup() the
redis load is reduced and design is simpler.
2019-11-04 16:50:26 +01:00