mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Generalize periodic and flows callbacks
Now periodic callbacks are properly called even when alerts are disabled The granularity filter and check_function has been replaced with a more generic hooks list
This commit is contained in:
parent
6bcb8b18a2
commit
ede9a7940a
47 changed files with 566 additions and 438 deletions
|
|
@ -8,6 +8,7 @@ package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|||
require "lua_utils"
|
||||
require "alert_utils"
|
||||
local callback_utils = require "callback_utils"
|
||||
local check_modules = require("check_modules")
|
||||
|
||||
if (ntop.isPro()) then
|
||||
package.path = dirs.installdir .. "/pro/scripts/callbacks/interface/?.lua;" .. package.path
|
||||
|
|
@ -22,4 +23,4 @@ local _ifname = ifstats.name
|
|||
|
||||
-- ########################################################
|
||||
|
||||
scanAlerts("hour", ifstats)
|
||||
check_modules.runPeriodicScripts("hour")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue