ntopng/scripts/callbacks/hourly-delayed/system/active_monitoring.lua
2025-02-18 19:11:00 +01:00

17 lines
383 B
Lua

--
-- (C) 2013-24 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local do_am = ntop.getPrefs().active_monitoring
if (not do_am) then
-- exit if am is disabled
return
end
local am_utils = require "am_utils"
local hosts = am_utils.getHosts(nil, "hour")
am_utils.run_am_check(os.time(), hosts, "hour")