mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Implemented skeleton of CustomFlowLuaScriptAlert check
This commit is contained in:
parent
5f7bc4c542
commit
80db634bfe
15 changed files with 268 additions and 27 deletions
|
|
@ -0,0 +1,27 @@
|
|||
--
|
||||
-- (C) 2019-22 - ntop.org
|
||||
--
|
||||
|
||||
local checks = require("checks")
|
||||
local flow_consts = require("flow_consts")
|
||||
local alerts_api = require "alerts_api"
|
||||
local alert_consts = require("alert_consts")
|
||||
local flow_alert_keys = require "flow_alert_keys"
|
||||
|
||||
-- #################################################################
|
||||
|
||||
local script = {
|
||||
-- Script category
|
||||
category = checks.check_categories.security,
|
||||
|
||||
alert_id = flow_alert_keys.flow_alert_custom_lua_script,
|
||||
|
||||
gui = {
|
||||
i18n_title = "flow_checks_config.custom_lua_script",
|
||||
i18n_description = "flow_checks_config.custom_lua_script_description",
|
||||
}
|
||||
}
|
||||
|
||||
-- #################################################################
|
||||
|
||||
return script
|
||||
Loading…
Add table
Add a link
Reference in a new issue