Commit graph

649 commits

Author SHA1 Message Date
emanuele-f
9d59aa67be Add flow alerts score column 2020-02-10 11:51:00 +01:00
emanuele-f
b4fe14e38c Set the raw ip field also for non-flow alerts 2020-02-06 14:27:34 +01:00
emanuele-f
70b13aeb99 Split query filter and aggregation 2020-02-05 23:10:37 +01:00
Alfredo Cardigliano
6704ae5040 Fix 'Flush Alerts Data' to avoid breaking user scripts IDs 2020-01-30 11:46:43 +01:00
emanuele-f
4b5c7ee75a Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2020-01-30 09:04:44 +01:00
Alfredo Cardigliano
273e8879d8 Fix Flush Alerts Data 2020-01-29 18:27:00 +01:00
Luca
9a3083939f Fixed alert page 2020-01-29 16:09:09 +01:00
emanuele-f
9833a87cbc Implement alert on InfluxDB error messages 2020-01-28 15:09:24 +01:00
emanuele-f
6fa5f071e8 Add user script edit config icon into the flow details 2020-01-27 10:47:31 +01:00
Gabriele Pappalardo
a2f4a1a065 elephant flows (#3269)
* elephant flows
* fix for apply button after changes
* fix for refresh icons on index.lua page, scrollable dropdowns enabled
2020-01-21 16:32:14 +00:00
emanuele-f
aca088ea13 Add hyperlink to jump to the alert configuration
Closes #2936
2020-01-17 19:11:15 +01:00
Simone Mainardi
2b30fe80b2 Fixes unhandled VLAN in alerts explorer and dashboard
Fixes #3203
2020-01-10 18:56:36 +01:00
emanuele-f
5b05b06c96 Use extended icon classes.
Also fixes mining alert icon
2020-01-10 17:02:11 +01:00
Alfredo Cardigliano
b04ec43d99 Add revision to ntopng version in system alerts 2020-01-09 10:19:49 +01:00
Luca Deri
170bc60f19 Updated (C) 2020-01-08 23:52:51 +01:00
Alfredo Cardigliano
5e5d50d72a Alert on software update 2020-01-08 18:51:21 +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
3580ddbd02 Fix for possibly nil benchmarks table 2019-12-31 11:39:05 +01:00
Alfredo Cardigliano
2a3bef9d6c Replace JSON string with TLV for alerts generated by the datapath. This removes a JSON decode in housekeeping.lua (#3148) 2019-12-27 17:03:28 +01:00
Alfredo Cardigliano
8caed2a438 Comments 2019-12-27 15:22:59 +01:00
Alfredo Cardigliano
5a17736801 Remove double json encode 2019-12-27 11:25:28 +01:00
Alfredo Cardigliano
7199364854 Improved devices connection/disconnection detection to remove (too many) invalid messages (fix #3122) 2019-12-20 12:54:25 +01:00
Alfredo Cardigliano
1b5d4d38a0 Cleanup check macs alerts (see #3122) 2019-12-20 09:37:53 +01:00
Simone Mainardi
dacaa7e3db Migrates font-awesome 5 fa to fas 2019-12-18 11:50:02 +01:00
Simone Mainardi
0eb75bf884 Uses new localization for icmp types and codes 2019-12-18 10:49:38 +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
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
958fed3a54 Implemented script code editor 2019-12-10 17:58:16 +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
7402bbdd14 FontAwesome 5 migration 2019-12-09 15:11:37 +01:00
Alfredo Cardigliano
256f42bcf4 Fix alert delete 2019-12-05 17:19:35 +01:00
Simone Mainardi
1aa0546b85 Bootstrap migration dropdown style fixes 2019-12-05 09:27:48 +01:00
Simone Mainardi
a34a326d4c Bootstrap migration glyphicon filter to fa 2019-12-05 09:27:48 +01:00
Simone Mainardi
222be5ae10 Bootstrap migration host nav bar 2019-12-05 09:27:47 +01:00
Simone Mainardi
db272831e9 Bootstrap migration tabs 2019-12-05 09:27:47 +01:00
Simone Mainardi
6d36e7cb76 Bootstrap migration btn-default to btn-secondary 2019-12-05 09:27:47 +01:00
Simone Mainardi
2639d49e4a Bootstrap migration progress bars 2019-12-05 09:27:47 +01:00
emanuele-f
0d48bff069 Implement more flexible user_scripts api
NOTE: The existing alerts configuration of the users will be discarded.

Some code has been added to make the current gui on/off toggle work.
It is marked with the following comment:

-- TODO remove after implementing the new gui
2019-11-28 11:06:14 +01:00
Simone Mainardi
0f507dba1c Fixes alerts API error
Fixes #3002
2019-11-26 18:07:01 +01:00
Simone Mainardi
188ec66c25 Implements scriptable SNMP devices alerts 2019-11-22 18:00:31 +01:00
emanuele-f
1fd65ac44c Flow user scripts enhancements
- Add title label in hash table utilization gauges
- List Hash Tables charts and Periodic Activities charts in a single page
- Replace Periodic Activities max duration column with time utilization percentage
- Add api to add a straight line in the charts
- Show max duration time as a straight line in Periodic Activities charts
- Move dropped flow calls charts to the Peridic Activities page
- Fix expert view number of calls 0
- Fix interface/host/network trigger alert label
- Move chart icon to separate column in redis and influxdb pages
- Fix interface menu selection in Hash Tables and Periodic Activities
- Highlight issues with a warning triangle in Hash Tables and Periodic Activities
- Fix some page navigation issues with extra_params
- Fix wrong schema graph options passed to nv_graph_utils
2019-11-20 20:09:45 +01:00
emanuele-f
2df9b34201 Add flow user scripts drops alert 2019-11-19 17:37:58 +01:00
emanuele-f
227eef9d3e Fix entity specific settings defaults not populated 2019-11-19 17:37:31 +01:00
Alfredo Cardigliano
390a3e4141 Links to the scripts list (fix #3011) 2019-11-15 18:46:57 +01:00
emanuele-f
bea63668b8 Separate old benchmark from user scripts 2019-11-14 20:03:43 +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
emanuele-f
4d322c3c09 Add missing max devices check 2019-11-05 16:00:26 +01:00
Alfredo Cardigliano
acdab024da Enqueueing flow alerts to be stored/notified from Lua, removed DB select to notiy alert (using the alert object directly) 2019-11-05 15:53:10 +01:00