mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
29 lines
777 B
Lua
29 lines
777 B
Lua
--
|
|
-- (C) 2019-24 - ntop.org
|
|
--
|
|
|
|
local dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
local checks = require "checks"
|
|
|
|
-- #################################################################
|
|
-- Just like for local_network_checks.lua, here periodic interface
|
|
-- checks are executed with the right granularity
|
|
-- #################################################################
|
|
|
|
local checks_var = {
|
|
ifid = nil,
|
|
available_modules = nil,
|
|
iface_config = nil,
|
|
configset = nil,
|
|
do_benchmark = false,
|
|
do_print_benchmark = false
|
|
}
|
|
|
|
local granularity = "hour"
|
|
local do_trace = false
|
|
|
|
-- #################################################################
|
|
|
|
checks.interfaceChecks(granularity, checks_var, do_trace)
|