mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Implements #4919 custom alert severity
This commit is contained in:
parent
89b21df6f6
commit
10fb8bbecc
64 changed files with 317 additions and 49 deletions
|
|
@ -34,7 +34,7 @@ local function check_interface_idle(params)
|
|||
threshold
|
||||
)
|
||||
|
||||
alert:set_severity(alert_severities.warning)
|
||||
alert:set_severity(params.user_script_config.severity)
|
||||
alert:set_granularity(params.granularity)
|
||||
|
||||
if max_idle_perc > threshold then
|
||||
|
|
@ -55,6 +55,7 @@ local script = {
|
|||
-- "> 50%"
|
||||
operator = "gt",
|
||||
threshold = 50,
|
||||
severity = alert_severities.warning,
|
||||
},
|
||||
|
||||
-- This script is only for alerts generation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue