Added delayed scripts that are executed with minimal time drift to avoid all scripts to be executed at the same time and thus cause load spikes

This commit is contained in:
Luca Deri 2022-01-03 18:54:50 +01:00
parent fc0e204803
commit fcaa071acb
27 changed files with 72 additions and 37 deletions

View file

@ -0,0 +1,21 @@
--
-- (C) 2013 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/alert_store/?.lua;" .. package.path
-- ########################################################
local alert_store_utils = require "alert_store_utils"
-- ########################################################
local ifid = interface.getId()
-- ########################################################
-- Checks cleanup
alert_store_utils.housekeeping(ifid)