ntopng/scripts/plugins/alerts_drops/alert_definitions/alert_dropped_alerts.lua
emanuele-f a6dab125d5 Improve dropped alerts information
- 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
2020-02-26 16:05:19 +01:00

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,
}