From bdae6129a02d796d318c9b3f333d626df2c05202 Mon Sep 17 00:00:00 2001 From: Matteo Biscosi Date: Fri, 21 Nov 2025 12:46:34 +0100 Subject: [PATCH] Modified blacklisted flow alert description --- .../flow/alert_flow_blacklisted.lua | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scripts/lua/modules/alert_definitions/flow/alert_flow_blacklisted.lua b/scripts/lua/modules/alert_definitions/flow/alert_flow_blacklisted.lua index bdb2981cae..1d8cc25212 100644 --- a/scripts/lua/modules/alert_definitions/flow/alert_flow_blacklisted.lua +++ b/scripts/lua/modules/alert_definitions/flow/alert_flow_blacklisted.lua @@ -43,15 +43,13 @@ end -- @param alert_type_params Table `alert_type_params` as built in the `:init` method -- @return A human-readable string function alert_flow_blacklisted.format(ifid, alert, alert_type_params) - local blacklist = "" - if not isEmptyString(alert_type_params["custom_cat_file"]) then - blacklist = alert_type_params["custom_cat_file"] + local is_cat_blacklisted = alert_type_params["cat_blacklisted"] + + local res = "" + if is_cat_blacklisted then + local href = string.format("", ntop.getHttpPrefix()) + res = string.format("%s", i18n("blacklisted_category", { config_href = href })) end - -- This alert has been split into 3 alerts, this triggers only for the category - local res = i18n("flow_details.blacklisted_flow_detailed", { - who = i18n("category"), - blacklist = blacklist - }) return res end