diff --git a/scripts/locales/en.lua b/scripts/locales/en.lua index f08cd0a1d5..749a14885e 100644 --- a/scripts/locales/en.lua +++ b/scripts/locales/en.lua @@ -548,7 +548,7 @@ local lang = { ["host_pool_has_connected"] = "The host pool %{pool} has connected to the network.", ["host_pool_has_disconnected"] = "The host pool %{pool} has disconnected from the network.", ["host_remote_to_remote"] = "Remote host %{ip} %{mac} has contacted a remote host. Remote-to-remote flows available from the flow alerts page.", - ["http_download_failed"] = "Throughput check failed", + ["http_download_failed"] = "Host %{host} %{numeric_ip} throughput check failed.", ["iface_alerts_dropped"] = "Interface %{iface} is dropping alerts. Likely it is generating too many of them, or recipients are slow.", ["influxdb_dropped_points"] = "Points dropped. Could not send them to \"%{influxdb}\".", ["influxdb_migration_msg"] = "You have a lot of local hosts. Please consider moving from RRD to InfluxDB for timeseries storage to improve performance.", @@ -586,7 +586,7 @@ local lang = { ["shell_script_executed"] = "Shell script '%{script_exec_comm}' executed in response of an alert: '%{alert_type}'", ["slow_periodic_activity"] = "Periodic activity \"%{script}\" running for too long [more than %{max_duration}] or executed too late (blocked in queue).", ["slow_purge"] = "Hash table idle entries purging on %{iface} is too slow. This could lead to high memory utilization, data accuracy loss and missing alerts. [%{idle}%% > %{max_idle}%%]", - ["speedtest_failed"] = "Speedtest execution failed", + ["speedtest_failed"] = "Host %{host} %{numeric_ip} speedtest execution failed.", ["subject_quota_exceeded"] = "Host pool %{pool} exceeded %{subject} quota [%{value} > %{quota}]", ["suspicious_dga_domain"] = "Suspicious DGA Domain [%{domain}]", ["syn_flood_attacker"] = "%{entity} is a SYN flooder [%{value} > %{threshold} SYN/sec sent for ~3 sec]", diff --git a/scripts/lua/modules/alert_definitions/other/alert_am_threshold_cross.lua b/scripts/lua/modules/alert_definitions/other/alert_am_threshold_cross.lua index 2ebaf47247..32375e763f 100644 --- a/scripts/lua/modules/alert_definitions/other/alert_am_threshold_cross.lua +++ b/scripts/lua/modules/alert_definitions/other/alert_am_threshold_cross.lua @@ -56,7 +56,9 @@ function alert_am_threshold_cross.format(ifid, alert, alert_type_params) if(alert_type_params.value == 0) then -- host unreachable if(alert_type_params.alt_i18n) then -- The measurement may have defined a custom message via unreachable_alert_i18n - msg = i18n(alert_type_params.alt_i18n) or alert_type_params.alt_i18n + msg = i18n(alert_type_params.alt_i18n, + {host = ip_label, + numeric_ip = numeric_ip}) or alert_type_params.alt_i18n end -- Fallback