Fixes issues with unexpected XXX alerts where impacted server was not reported

Added Lua getFlowProtoClientIP/getFlowProtoServerIP calls in flows
This commit is contained in:
Luca Deri 2020-11-25 15:51:08 +01:00
parent fbbbe4f4ad
commit 06161556ac
19 changed files with 143 additions and 44 deletions

View file

@ -1,9 +1,13 @@
local alert_consts = require("alert_consts")
local status_keys = require "flow_keys"
local function formatUnexpected(flowstatus_info)
return(i18n("unexpected_dhcp.status_unexpected_dhcp_description", { server=flowstatus_info.server_ip} ))
end
return {
status_key = status_keys.ntopng.status_unexpected_dhcp_server,
alert_type = alert_consts.alert_types.alert_unexpected_dhcp,
i18n_title = "unexpected_dhcp.unexpected_dhcp_title",
i18n_description = "unexpected_dhcp.status_unexpected_dhcp_description",
i18n_description = formatUnexpected
}