Implement ghost networks alerts

This commit is contained in:
emanuele-f 2019-08-28 16:41:44 +02:00
parent a99f4ba171
commit a8cb972e7d
13 changed files with 183 additions and 29 deletions

View file

@ -887,6 +887,18 @@ end
-- ##############################################
function alerts_api.ghostNetworkType(network, granularity)
return({
alert_type = alert_consts.alert_types.ghost_network,
alert_subtype = network,
alert_granularity = alert_consts.alerts_granularities[granularity],
alert_severity = alert_consts.alert_severities.warning,
alert_type_params = {},
})
end
-- ##############################################
function alerts_api.load_check_modules(subdir, str_granularity)
local checks_dir = os_utils.fixPath(ALERT_CHECKS_MODULES_BASEDIR .. "/" .. subdir)
local available_modules = {}