Added severity to ntopng checks table

This commit is contained in:
MatteoBiscosi 2022-10-20 10:34:23 +02:00
parent 933e8339ec
commit eda4cfb088
48 changed files with 406 additions and 340 deletions

View file

@ -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