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

@ -5,6 +5,7 @@ local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local checks = require("checks")
local alert_consts = require "alert_consts"
-- #################################################################
@ -19,6 +20,7 @@ end
local script = {
-- Script category
category = checks.check_categories.network,
severity = alert_consts.get_printable_severities().warning,
-- Off by default
default_enabled = false,