diff --git a/scripts/locales/en.lua b/scripts/locales/en.lua index 96efd70c47db..62668007ee8f 100644 --- a/scripts/locales/en.lua +++ b/scripts/locales/en.lua @@ -1028,7 +1028,7 @@ local lang = { ["host_alert_dns_server_contacts"] = "Too many DNS servers contacted by %{entity} [%{value} > %{threshold} servers]", ["host_alert_domain_names_contacts"] = "Too many Domain Names contacted [Threshold: %{threshold}][Contacted: %{contacts}]", ["host_alert_score"] = "Score exceeded by %{entity} [%{value} %{op} %{threshold}]", - ["host_alert_server_ports_contacts"] = "%{entity} has been contacted on Port %{value} [Detected Protocol: %{threshold}]", + ["host_alert_server_ports_contacts"] = "Host contacted as a Server [Port: %{port}] [Protocol: %{protocol}]", ["host_alert_smtp_server_contacts"] = "Too many SMTP servers contacted by %{entity} [%{value} > %{threshold} servers]", ["host_entity"] = "host %{entity_value}", ["host_log"] = "Log from %{host} (%{facility}) %{line}", diff --git a/scripts/lua/modules/alert_definitions/host/host_alert_server_ports_contacts.lua b/scripts/lua/modules/alert_definitions/host/host_alert_server_ports_contacts.lua index ca179d7093c9..2c93e661aa89 100644 --- a/scripts/lua/modules/alert_definitions/host/host_alert_server_ports_contacts.lua +++ b/scripts/lua/modules/alert_definitions/host/host_alert_server_ports_contacts.lua @@ -56,13 +56,13 @@ end -- @return A human-readable string function host_alert_server_ports_contacts.format(ifid, alert, alert_type_params) local alert_consts = require("alert_consts") - local entity = alert_consts.formatHostAlert(ifid, alert["ip"], alert["vlan_id"]) - local value = alert_type_params.port or 0 + local host = alert_consts.formatHostAlert(ifid, alert["ip"], alert["vlan_id"]) + local port = alert_type_params.port or 0 + local protocol = interface.getnDPIFullProtoName(0, alert_type_params.app_protocol) return i18n("alert_messages.host_alert_server_ports_contacts", { - entity = entity, - value = value, - threshold = alert_type_params.app_protocol or 0, + port = port, + protocol = protocol, }) end