mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Cleanup alert on score (lua)
This commit is contained in:
parent
77bd43765c
commit
fd977d4924
2 changed files with 0 additions and 104 deletions
|
|
@ -1,37 +0,0 @@
|
|||
--
|
||||
-- (C) 2019-21 - ntop.org
|
||||
--
|
||||
|
||||
local user_scripts = require ("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
local host_alert_keys = require "host_alert_keys"
|
||||
|
||||
-- #################################################################
|
||||
|
||||
local host_score = {
|
||||
-- Script category
|
||||
category = user_scripts.script_categories.security,
|
||||
|
||||
default_enabled = false,
|
||||
alert_id = host_alert_keys.host_alert_score,
|
||||
|
||||
default_value = {
|
||||
-- "> 1000"
|
||||
operator = "gt",
|
||||
threshold = 4096,
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
gui = {
|
||||
i18n_title = "score",
|
||||
i18n_description = "alerts_dashboard.host_score_description",
|
||||
input_builder = "threshold_cross",
|
||||
field_max = 65535,
|
||||
field_min = 0,
|
||||
field_operator = "gt",
|
||||
}
|
||||
}
|
||||
|
||||
-- #################################################################
|
||||
|
||||
return host_score
|
||||
Loading…
Add table
Add a link
Reference in a new issue