mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
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:
parent
fc0e204803
commit
fcaa071acb
27 changed files with 72 additions and 37 deletions
|
|
@ -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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue