mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-04 18:00:10 +00:00
- Add informative label - Add dropped alerts timeseries and chart - Generate a system alert whenever alerts are dropped on a network interface - Add a periodic activity warning when some alerts are dropped on that activity Closes #3025
19 lines
544 B
Lua
19 lines
544 B
Lua
--
|
|
-- (C) 2019-20 - ntop.org
|
|
--
|
|
|
|
local function formatDroppedAlerts(ifid, alert, alert_info)
|
|
return(i18n("alert_messages.iface_alerts_dropped", {
|
|
iface = getHumanReadableInterfaceName(alert_info.ifid),
|
|
num_dropped = alert_info.num_dropped,
|
|
url = ntop.getHttpPrefix() .. "/lua/if_stats.lua?ifid=" .. alert_info.ifid
|
|
}))
|
|
end
|
|
|
|
-- #######################################################
|
|
|
|
return {
|
|
i18n_title = i18n("show_alerts.dropped_alerts"),
|
|
icon = "fas fa-exclamation-triangle",
|
|
i18n_description = formatDroppedAlerts,
|
|
}
|