mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
34 lines
901 B
Lua
34 lines
901 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 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,
|
|
}
|
|
|
|
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
|