mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Improved host policy alert
This commit is contained in:
parent
18d75b1450
commit
4b160de275
8 changed files with 23 additions and 16 deletions
|
|
@ -22,7 +22,7 @@ local flow_alert_host_policy = classes.class(alert)
|
|||
flow_alert_host_policy.meta = {
|
||||
alert_key = flow_alert_keys.flow_alert_host_policy,
|
||||
icon = "fas fa-fw fa-exclamation",
|
||||
i18n_title = "alerts_dashboard.access_control_list",
|
||||
i18n_title = "alerts_dashboard.host_policy",
|
||||
}
|
||||
|
||||
-- ##############################################
|
||||
|
|
@ -44,7 +44,9 @@ end
|
|||
function flow_alert_host_policy.format(ifid, alert, alert_type_params)
|
||||
-- Extracting info field
|
||||
local href = ntop.getHttpPrefix() .. '/lua/admin/network_configuration.lua?page=policy'
|
||||
return(i18n("alerts_dashboard.access_control_list_descr", { href = href }))
|
||||
local key = "alerts_dashboard.alert_host_policy_descr_"..alert_type_params.reason
|
||||
|
||||
return(i18n(key, { href = href }))
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue