mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +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
|
|
@ -18,6 +18,7 @@ local script = {
|
|||
threshold = 80,
|
||||
},
|
||||
|
||||
severity = alert_consts.get_printable_severities().error,
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
@ -54,9 +55,7 @@ function script.hooks.min(params)
|
|||
threshold
|
||||
)
|
||||
|
||||
alert:set_score_error()
|
||||
alert:set_subtype(params.entity_info["name"])
|
||||
alert:set_granularity(params.granularity)
|
||||
alert:set_info(params)
|
||||
|
||||
if(value > threshold) then
|
||||
alert:trigger(params.alert_entity, nil, params.cur_alerts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue