mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added severity to ntopng checks table
This commit is contained in:
parent
933e8339ec
commit
eda4cfb088
48 changed files with 406 additions and 340 deletions
|
|
@ -9,7 +9,7 @@ local alert_consts = require("alert_consts")
|
|||
local script = {
|
||||
-- Script category
|
||||
category = checks.check_categories.internals,
|
||||
|
||||
severity = alert_consts.get_printable_severities().error,
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
|
@ -39,9 +39,8 @@ local function dropped_alerts_check(params)
|
|||
delta_drops
|
||||
)
|
||||
|
||||
alert:set_score_error()
|
||||
alert:set_granularity(params.granularity)
|
||||
|
||||
alert:set_info(params)
|
||||
|
||||
if(delta_drops > 0) then
|
||||
alert:trigger(params.alert_entity, nil, params.cur_alerts)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue