Fixes incomplete active monitoring messages upon check failures

Fixes #5420
This commit is contained in:
Simone Mainardi 2021-06-01 10:13:26 +02:00
parent e6c41782d9
commit f242b94b6d
2 changed files with 5 additions and 3 deletions

View file

@ -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