Reworks version of alert exclusions

This commit is contained in:
Simone Mainardi 2021-07-12 17:37:51 +02:00
parent ddc0a7f47a
commit 833fc3670b
25 changed files with 27 additions and 518 deletions

View file

@ -1,10 +0,0 @@
--
-- (C) 2019-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local alert_rest_utils = require "alert_rest_utils"
alert_rest_utils.delete_all_alert_exclusions(_POST["check_subdir"], _POST["host"])

View file

@ -1,10 +0,0 @@
--
-- (C) 2019-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local alert_rest_utils = require "alert_rest_utils"
alert_rest_utils.delete_alert_exclusions("flow", _POST["alert_addr"], _POST["alert_key"])

View file

@ -1,10 +0,0 @@
--
-- (C) 2019-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local alert_rest_utils = require "alert_rest_utils"
alert_rest_utils.delete_alert_exclusions("host", _POST["alert_addr"], _POST["alert_key"])

View file

@ -1,12 +0,0 @@
--
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local alert_rest_utils = require "alert_rest_utils"
if isAdministratorOrPrintErr(true) then
alert_rest_utils.exclude_alert()
end

View file

@ -1,10 +0,0 @@
--
-- (C) 2019-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local alert_rest_utils = require "alert_rest_utils"
alert_rest_utils.get_alert_exclusions("flow", _GET["host"])

View file

@ -1,10 +0,0 @@
--
-- (C) 2019-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local alert_rest_utils = require "alert_rest_utils"
alert_rest_utils.get_alert_exclusions("host", _GET["host"])