Rework host threshold alerts definition

This commit is contained in:
emanuele-f 2019-07-11 18:15:57 +02:00
parent 328c8a7084
commit b16136f5b4
13 changed files with 125 additions and 124 deletions

View file

@ -39,7 +39,13 @@ function checkHostAlerts(granularity)
local config = host_alert[check.key]
if config then
check.check_function(granularity, host_key, info, config)
check.check_function({
granularity = granularity,
alert_entity = alerts_api.hostAlertEntity(host_key),
entity_info = info,
alert_config = config,
check_module = check,
})
end
end
end