ntopng/scripts/callbacks/hourly-delayed/interface/interface_checks.lua
2024-01-12 11:44:18 +01:00

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)