mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Implement ghost networks alerts
This commit is contained in:
parent
a99f4ba171
commit
a8cb972e7d
13 changed files with 183 additions and 29 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue