Added critical and emergency status to alerts

This commit is contained in:
MatteoBiscosi 2022-10-19 10:18:36 +02:00
parent fb7da8667e
commit 692ae0bfcc
27 changed files with 178 additions and 76 deletions

View file

@ -758,6 +758,7 @@ function am_utils.triggerAlert(numeric_ip, ip_label, current_value, upper_thresh
-- Unreachable
local host, measurement = key2amhost(ip_label)
local info = am_utils.getMeasurementInfo(measurement)
type_info:set_score_critical()
if info and info.unreachable_alert_i18n then
-- The measurement provides an alternative message for the alert