mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
17 lines
383 B
Lua
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")
|