Implements active monitoring with the new scheduler

This commit is contained in:
Simone Mainardi 2022-01-21 13:05:01 +01:00
parent 3bf1d9b6eb
commit 823b4f5d91
12 changed files with 145 additions and 197 deletions

View file

@ -0,0 +1,12 @@
--
-- (C) 2013-22 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local ts_dump = require "ts_min_dump_utils"
local am_utils = require "am_utils"
local hosts = am_utils.getHosts(nil, "hour")
am_utils.run_am_check(os.time(), hosts, "hour")