ntopng/scripts/callbacks/hourly-delayed/interface/interface_checks.lua
2025-02-17 15:35:40 +01:00

28 lines
775 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,
}
local granularity = "hour"
local do_trace = false
-- #################################################################
checks.interfaceChecks(granularity, checks_var, do_trace)
checks.hostChecks(granularity, checks_var, do_trace)