Commit graph

29 commits

Author SHA1 Message Date
Luca Deri
a1178a0791 Updated (C) 2021-01-02 12:08:23 +01:00
Simone Mainardi
1a71ba4f5f Removes remote assistance
Fixes #4785
2020-12-17 19:41:37 +01:00
Alfredo Cardigliano
8e62a71eee Rename system_utils.lua -> cpu_utils.lua to avoid confusion 2020-11-17 12:41:06 +01:00
Simone Mainardi
3258fa074e Additional fixes for interface validation 2020-05-18 13:02:56 +02:00
Luca Deri
ccf76ca54d Added "real" intefaceId validation
Initial work towards REST API
2020-05-17 20:47:46 +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
Simone Mainardi
794cd523c6 Fixes data.lua interface selection using ids 2020-03-20 12:00:57 +01:00
Simone Mainardi
b4e6af047a Reworks maintenance expired message
Fixes #3535
2020-03-18 11:55:43 +01:00
Simone Mainardi
ef06f9e1d3 Refactors system stats in a module system_utils.lua 2020-02-27 12:24:23 +01:00
Simone Mainardi
5276de4ca8 Implements degraded performance badge 2020-02-21 17:14:15 +01:00
Alfredo Cardigliano
30ff92d472 Fix user reset for ZMQ counters 2020-01-23 17:04:52 +01:00
Luca Deri
170bc60f19 Updated (C) 2020-01-08 23:52:51 +01:00
Simone Mainardi
b44de6e18d Implements discarded probing traffic counters and timeseries 2019-12-31 16:01:24 +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
emanuele-f
10aa5542f8 Rework alertEntity functions to avoid modules circular dependencies
Fixes #2975
2019-10-23 13:01:57 +02:00
Simone Mainardi
7f150ef407 Implements alerted flows counters and shows them in the footer
Implements #2863
2019-09-19 15:15:32 +02:00
Simone Mainardi
72ebd961c9 Adds ZMQ total message and avg flows/msg counters 2019-09-09 12:57:04 +02:00
Simone Mainardi
ca56f94cef Implements per-interface updateStats variable frequency 2019-09-04 19:27:55 +02:00
Simone Mainardi
b86378bca3 Implements ul/dl thpts in C and reworks the footer to use them 2019-09-03 18:56:23 +02:00
Simone Mainardi
a5b5510290 Adds bytes and packets throughput to NetworkInterface 2019-09-03 17:16:47 +02:00
emanuele-f
3383ac0913 Implement dropped alerts per-interface counter 2019-07-18 17:29:05 +02:00
Alfredo Cardigliano
a76059bb11 Added ifid to rest/get/interface/data.lua 2019-07-16 10:22:10 +02:00
Alfredo Cardigliano
9687f6f5f1 Fix footer stats 2019-07-15 19:20:58 +02:00
Alfredo Cardigliano
1a23ccb07f Using interface name in 'ifname', fixes #2719 #2720 2019-07-15 17:40:56 +02:00
Simone Mainardi
28d869f481 Fixes interface selection in rest/get/interface/data under Windows 2019-07-03 17:30:03 +02:00
emanuele-f
a9d3c78587 Alerts changes
NOTE: database schema changed. Existing alerts will be lost.

- Unified engaged and closed tables
- Simplified hosts engaged alert counters handling: periodically set by lua
- Removed alert engine and replaced with alert periodicity
- Now engage is implicitly derived from the alert end timestamp and periodicity
- New alerts_api.lua to easily emit alerts
- Removed past alerts counter aggregation by hash
- Alert notifications for non-flow alerts are now removed from C and triggered by lua
2019-06-28 10:47:17 +02:00
Simone Mainardi
2200453862 Adds badge upon influxdb export errors 2019-06-26 16:29:08 +02:00
emanuele-f
ee236edcd2 Add badge color for l2 devices
Fixes #2398
2019-02-19 10:47:36 +01:00
Alfredo Cardigliano
3381ddbcf5 REST endpoints update
get_alerts_data.lua -> rest/get/alert/data.lua, host_get_json.lua -> rest/get/host/data.lua, get_interface_data.lua -> rest/get/interface/data.lua, live_traffic_extraction.lua -> rest/get/pcap/live_extraction.lua
2019-01-30 14:18:45 +01:00
Renamed from scripts/lua/get_interface_data.lua (Browse further)