Commit graph

616 commits

Author SHA1 Message Date
Simone Mainardi
b052eeebee Reports engaged alerts in system status bar
Implements #4522
2020-10-06 11:11:11 +02:00
Simone Mainardi
83209ac402 Keeps alerted hosts in memory (fixes engaged alert counter out of sync)
Fixes #4506
2020-10-05 11:54:17 +02:00
gabryon99
437f78e94a fixed card footer for alert tables
fix #4509
2020-10-02 14:09:09 +02:00
Simone Mainardi
dac9b41a98 Additional alerts cleanup
Fixes #4504
2020-10-01 18:45:57 +02:00
Simone Mainardi
b7bdd1edaf Massive cleanup of alerts (disabled/suppressed)
Fixes #4504
2020-10-01 18:40:11 +02:00
gabryon99
77a9f83de8 fix print card footer for alert_utils 2020-09-25 18:01:28 +02:00
gabryon99
ea8e30bac0 unified tab style across the pages (#4471) 2020-09-23 21:49:35 +02:00
gabryon99
de1674080d unified tab style (#4471) 2020-09-23 16:16:03 +02:00
Alfredo Cardigliano
b35e0bcdd9 Fix access to getSavedDeviceName 2020-09-17 19:01:36 +02:00
gabryon99
a10f320918 improved alerts page looking 2020-09-17 15:00:40 +02:00
Luca Deri
a91bde8952 Reworked alert formatting adding new options and removing little redundancy
Tiny change in the discord plugin
2020-09-10 16:13:42 +02:00
Simone Mainardi
9e99fa1403 Uses new in-memory queues for alert recipients (avoid Redis) 2020-09-08 18:36:18 +02:00
Simone Mainardi
85f555a908 Removes intermediate alert queues - only leaves recipient queues
Implements #4366
2020-09-04 17:41:55 +02:00
Simone Mainardi
1a7ee97334 Reworks builtin SQLite alerts as a regular alert recipient 2020-09-04 10:33:10 +02:00
Simone Mainardi
e1aee48292 Adds budget in processAlertNotifications
Addresses comment 9fd8c20324 (commitcomment-41951949)
2020-09-02 10:12:46 +02:00
Simone Mainardi
a0097167f4 Fixes active monitoring alerts 2020-09-01 23:03:11 +02:00
Simone Mainardi
9fd8c20324 Fixes alerts possibly starving in the alerts notif. queue 2020-09-01 18:24:23 +02:00
Simone Mainardi
fd72b39302 Prevents unnecessary reads of host pools in alert/graph utils
Partially addresses #4271
2020-08-18 18:11:15 +02:00
Simone Mainardi
1ae2b2d932 Refactors NtopngUtils into NtopUtils 2020-08-18 15:10:04 +02:00
Simone Mainardi
e61f9ffe68 Refactor JS code into class NtopngUtils
Implements #3735
2020-08-18 14:13:48 +02:00
Luca Deri
9f5dd2022a Fixes error when testing syslog-based recipients 2020-08-04 10:24:29 +02:00
Simone Mainardi
32f33d4415 Improves notifications with IP/symbolic name, ifid, and ifname
Fixes #4236
2020-07-31 16:52:15 +02:00
Simone Mainardi
172e632395 Fixes UTC notification time (now using server TZ)
Fixes #4250
2020-07-31 16:16:19 +02:00
Simone Mainardi
946a41b773 Fixes syslog endpoint test 2020-07-30 18:57:54 +02:00
Alfredo Cardigliano
d55e4dc441 Remove alert_endpoints_utils (no longer required). Doc update. 2020-07-28 12:49:06 +02:00
Alfredo Cardigliano
2c6987db3c Enable new alert API/configuration 2020-07-28 10:29:03 +02:00
Alfredo Cardigliano
6db82d9d3f Enable new recipient based notification for the email endpoint (temporarily disabled) 2020-07-27 13:19:28 +02:00
Luca Deri
ab6455329a Alert improvements
- check areAlertsEnabled() result is now cached
- housekeeping.lua skips alerts when disabled
2020-07-23 17:53:59 +02:00
Alfredo Cardigliano
7ffb4df9a6 Handle host pool serialization (exception for backward compatibility).
Fix recipients add
Initial work for alerts dispatching to recipients
2020-07-23 06:22:17 +02:00
Simone Mainardi
ea1ab932ae Reworks alert_utils.lua to use the new lua host pools class 2020-07-16 17:23:45 +02:00
Simone Mainardi
97efebb0ba Fixes nil name in host pool alerts
Fixes #4083
2020-06-26 10:57:56 +02:00
Alfredo Cardigliano
97046a8a97 Add rest/v1/get/alert/severity/counters.lua REST API 2020-05-27 11:05:59 +02:00
Alfredo Cardigliano
9814c91bfb Add filters to rest/v1/get/alert/type/counters.lua REST API 2020-05-27 10:53:07 +02:00
Alfredo Cardigliano
7c977a3ebc Add rest/v1/get/alert/type/counters.lua API REST (implement #3948) 2020-05-27 10:47:33 +02:00
Simone Mainardi
49e49e0ed6 Unifies host_details.lua generation
Addresses #3977
2020-05-26 12:50:47 +02:00
Alfredo Cardigliano
21fe9aa490 Add v1/get/alert/ts.lua REST API (implement #3943 2020-05-26 12:28:33 +02:00
Alfredo Cardigliano
09ea665c9b Improve v1/get/alert/data.lua endpoint 2020-05-26 11:11:20 +02:00
emanuele-f
eea288dee9 Add on-off switch template
Addresses #3513
2020-05-21 17:22:00 +02:00
emanuele-f
610e632234 Add comments/remove table.clone when not needed 2020-05-21 11:10:47 +02:00
Simone Mainardi
18bf6fa3d5 Fixes alerted active monitoring hosts not reported as alerted
Fixes #3904
2020-05-08 17:47:33 +02:00
Simone Mainardi
290175b16f Refactors alrt builders into creators
Refactors builders into creators: calls
2020-04-27 15:53:56 +02:00
Simone Mainardi
2739aac076 Implements alert builders for each alert definition
[AlertsK] Implements alert consts builder

[AlertsK] alert_threshold_cross.lua

[AlertsK] too_many_drops.lua

[AlertsK] alert_test_failed.lua

[AlertsK] alert_flows_flood.lua alert_tcp_syn_flood.lua lert_tcp_syn_scan.lua

[AlertsK] alert_snmp_topology_changed.lua

[AlertsK] snmp_device_reset.lua

[AlertsK] alert_slow_periodic_activity.lua

[AlertsK] alert_port_status_change.lua

[AlertsK] alert_port_status_change.lua

[AlertsK] alert_port_load_threshold_exceeded.lua

[AlertsK] alert_port_errors.lua

[AlertsK] alert_port_duplexstatus_change.lua

[AlertsK] alert_periodic_activity_not_executed.lua

[AlertsK] alert_misbehaving_flows_ratio.lua

[AlertsK] alert_influxdb_error.lua

[AlertsK] alert_influxdb_dropped_points.lua

[AlertsK] alert_dropped_alerts.lua

[AlertsK] alert_am_threshold_cross.lua

[AlertsK] alert_broadcast_domain_too_large.lua

[AlertsK] alert_device_connection.lua

[AlertsK] alert_device_connection.lua

[AlertsK] alert_host_pool_connection.lua alert_host_pool_disconnection.lua

[AlertsK] alert_ghost_network.lua

[AlertsK] alert_ip_outsite_dhcp_range.lua

[AlertsK] alert_list_download_failed.lua

[AlertsK] alert_login_failed.lua

[AlertsK] alert_mac_ip_association_change.lua

[AlertsK] alert_slow_purge.lua

[AlertsK] alert_request_reply_ratio.lua

[AlertsK] alert_quota_exceeded.lua

[AlertsK] alert_process_notification.lua

[AlertsK] alert_nfq_flushed.lua

[AlertsK] alert_misconfigured_app.lua alert_new_device.lua

[AlertsK] alert_influxdb_export_failure.lua

[AlertsK] alert_unresponsive_device.lua

[AlertsK] alert_user_activity.lua

[AlertsK] alert_user_script_calls_drops.lua

[AlertsK] minor fix
2020-04-24 15:35:44 +02:00
emanuele-f
0be2da4f57 Cleanup remaining references to RTT 2020-04-20 12:21:39 +02:00
emanuele-f
b6d10f2d2a Rework formatAlertMessage json decoding 2020-04-15 15:49:27 +02:00
Simone Mainardi
0a9a7015e0 Unifies status_id and status_key 2020-04-15 14:29:03 +02:00
Simone Mainardi
1eb02b2c2b Unifies alert_id and alert_key 2020-04-15 14:29:03 +02:00
Simone Mainardi
577a82d2eb Changes active_monitoring_utils require
Fixes #3758
2020-04-14 22:14:13 +02:00
Simone Mainardi
3e14bc30f8 Refactors RTT to Active Monitoring
Addresses #3741

Refactors RTT: rtt_utils to active_monitoring_utils

Refactors RTT: rtt_host to am_host schema name

Refactors RTT: import_active_monitoring_config.lua

Refactors RTT: active_monitoring_stats.lua

Refactors RTT: active_monitoring_stats i18n

Refactors RTT: get_active_monitoring_config.lua

Refactors RTT: get_active_monitoring_hosts

Refactors RTT: edit_active_monitoring_host

Refactors RTT: active_monitoring.lua

Refactors RTT: active_monitor

Refactors RTT: active_monitoring_utils.js

Refactors RTT: get_active_monitoring_hosts.lua fixes

Refactors RTT: last_rtt

Refactors RTT: rtt_host to am_host
2020-04-13 21:34:10 +02:00
emanuele-f
05a4e3cf84 Change RTT to Active Monitoring 2020-04-10 18:21:41 +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