mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +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
|
|
@ -7,6 +7,7 @@ require "graph_utils"
|
|||
local os_utils = require "os_utils"
|
||||
local top_talkers_utils = require "top_talkers_utils"
|
||||
local ts_utils = require("ts_utils_core")
|
||||
local check_modules = require("check_modules")
|
||||
require("ts_minute")
|
||||
|
||||
local ts_custom
|
||||
|
|
@ -208,7 +209,10 @@ end
|
|||
|
||||
function ts_dump.run_min_dump(_ifname, ifstats, iface_ts, config, when, verbose)
|
||||
dumpTopTalkers(_ifname, ifstats, verbose)
|
||||
scanAlerts("min", ifstats)
|
||||
|
||||
check_modules.runPeriodicScripts("min")
|
||||
check_macs_alerts(ifstats.id)
|
||||
check_host_pools_alerts(ifstats.id)
|
||||
|
||||
local iface_rrd_creation_enabled = (ntop.getPref("ntopng.prefs.ifid_"..ifstats.id..".interface_rrd_creation") ~= "false")
|
||||
and (ntop.getPref("ntopng.prefs.interface_rrd_creation") ~= "0")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue