1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
--
-- (C) 2019-22 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
local checks = require "checks"
-- #################################################################
-- Just like for interface_checks.lua, here periodic local network
-- checks are executed with the right granularity
-- #################################################################
local checks_var = {
ifid = nil,
pools_instance = nil,
network_entity = nil,
configset = nil,
available_modules = nil,
do_benchmark = false,
do_print_benchmark = false
}
local granularity = "min"
local do_trace = false
-- #################################################################
local local_networks = interface.getNetworksStats()
for _, net_stats in pairs(local_networks) do
network.select(net_stats.network_id)
checks.localNetworkChecks(granularity, checks_var, do_trace)
end
|