mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
42 lines
1.1 KiB
Lua
42 lines
1.1 KiB
Lua
--
|
|
-- (C) 2019-21 - ntop.org
|
|
--
|
|
|
|
-- ##############################################
|
|
|
|
local alert_keys = require "alert_keys"
|
|
-- Import the classes library.
|
|
local classes = require "classes"
|
|
-- Make sure to import the Superclass!
|
|
local alert = require "alert"
|
|
|
|
-- ##############################################
|
|
|
|
local alert_unexpected_smtp_server = classes.class(alert)
|
|
|
|
-- ##############################################
|
|
|
|
alert_unexpected_smtp_server.meta = {
|
|
alert_key = alert_keys.ntopng.alert_unexpected_smtp_server,
|
|
i18n_title = "unexpected_smtp.alert_unexpected_smtp_title",
|
|
icon = "fas fa-exclamation",
|
|
has_victim = true,
|
|
has_attacker = true,
|
|
}
|
|
|
|
-- ##############################################
|
|
|
|
function alert_unexpected_smtp_server:init()
|
|
-- Call the parent constructor
|
|
self.super:init()
|
|
end
|
|
|
|
-- #######################################################
|
|
|
|
function alert_unexpected_smtp_server.format(ifid, alert, alert_type_params)
|
|
return(i18n("unexpected_smtp.status_unexpected_smtp_description", { server=alert_type_params.server_ip} ))
|
|
end
|
|
|
|
-- #######################################################
|
|
|
|
return alert_unexpected_smtp_server
|