mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Moved vulnerability scan alert into active monitoring alerts (#7761)
This commit is contained in:
parent
49d51e7baa
commit
ad2e918f8d
5 changed files with 15 additions and 7 deletions
|
|
@ -21,7 +21,7 @@ alert_vulnerability_scan.meta = {
|
|||
i18n_title = "alerts_dashboard.vulnerability_scan_title",
|
||||
icon = "fas fa-fw fa-exclamation-triangle",
|
||||
entities = {
|
||||
alert_entities.system,
|
||||
alert_entities.am_host,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -32,6 +32,10 @@ function alert_vulnerability_scan:init(differences_list)
|
|||
self.super:init()
|
||||
|
||||
self.alert_type_params = differences_list
|
||||
-- Trick to set this alert as an active monitoring alert
|
||||
self.alert_type_params.threshold = 0
|
||||
self.alert_type_params.value = 0
|
||||
self.alert_type_params.measurement = 'vulnerability_scan'
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue