mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implements #3811 Implements #3812 Refactors builtin alerts Refactors builtin flow statuses
22 lines
594 B
Lua
22 lines
594 B
Lua
--
|
|
-- (C) 2019-20 - ntop.org
|
|
--
|
|
|
|
local alert_keys = require "alert_keys"
|
|
|
|
local function snmpDeviceResetFormatter(ifid, alert, info)
|
|
if ntop.isPro() then require "snmp_utils" end
|
|
|
|
return(i18n("alerts_dashboard.alert_snmp_device_reset_description",
|
|
{device = info.device,
|
|
url = snmpDeviceUrl(info.device)}))
|
|
end
|
|
|
|
-- #######################################################
|
|
|
|
return {
|
|
alert_key = alert_keys.ntopng.alert_snmp_device_reset,
|
|
i18n_title = "alerts_dashboard.alert_snmp_device_reset_title",
|
|
i18n_description = snmpDeviceResetFormatter,
|
|
icon = "fas fa-power-off",
|
|
}
|