mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add support for external (REST) host alerts (#7170)
This commit is contained in:
parent
7ce510a914
commit
73af3fa521
17 changed files with 523 additions and 1 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue