ntopng/scripts/lua/modules/alert_definitions/alert_unexpected_smtp.lua
Luca Deri 06161556ac Fixes issues with unexpected XXX alerts where impacted server was not reported
Added Lua getFlowProtoClientIP/getFlowProtoServerIP calls in flows
2020-11-25 15:52:03 +01:00

23 lines
560 B
Lua

local alert_keys = require "alert_keys"
-- #################################################
local function createUnexpectedSMTP(client_ip, server_ip)
local built = {
alert_type_params = {
client_ip = client_ip,
server_ip = server_ip
}
}
return built
end
-- #################################################
return {
alert_key = alert_keys.ntopng.alert_unexpected_smtp_server,
i18n_title = "unexpected_smtp.alert_unexpected_smtp_title",
icon = "fas fa-exclamation",
creator = createUnexpectedSMTP,
}