Add support for external (REST) host alerts (#7170)

This commit is contained in:
Alfredo Cardigliano 2023-01-26 15:34:54 +01:00
parent 7ce510a914
commit 73af3fa521
17 changed files with 523 additions and 1 deletions

View file

@ -0,0 +1,30 @@
--
-- (C) 2019-23 - ntop.org
--
local checks = require("checks")
local host_alert_keys = require "host_alert_keys"
local alert_consts = require("alert_consts")
-- #################################################################
local p2p = {
-- Script category
category = checks.check_categories.network,
severity = alert_consts.get_printable_severities().error,
default_enabled = false,
alert_id = host_alert_keys.host_alert_external_script,
default_value = {
},
gui = {
i18n_title = "alerts_thresholds_config.external_host_script_title",
i18n_description = "alerts_thresholds_config.external_host_script_description",
},
}
-- #################################################################
return p2p