mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +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
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -16,6 +17,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -16,6 +17,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -16,6 +17,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -16,6 +17,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -16,6 +17,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -16,6 +17,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -16,6 +17,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -16,6 +17,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -15,6 +16,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -15,6 +16,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -15,6 +16,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -15,6 +16,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -15,6 +16,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -15,6 +16,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -15,6 +16,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -15,6 +16,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -15,6 +16,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
local alerts_api = require("alerts_api")
|
||||
local alert_consts = require("alert_consts")
|
||||
local user_scripts = require("user_scripts")
|
||||
local alert_severities = require "alert_severities"
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
|
|
@ -15,6 +16,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue