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,6 +1,10 @@
local alert_consts = require("alert_consts")
local status_keys = require "flow_keys"
local function formatUnexpected(flowstatus_info)
return(i18n("unexpected_smtp.status_unexpected_smtp_description", { server=flowstatus_info.server_ip} ))
end
return {
status_key = status_keys.ntopng.status_unexpected_smtp_server,
alert_type = alert_consts.alert_types.alert_unexpected_smtp,