mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Enable am toggle. (#8225)
This commit is contained in:
parent
29a28ea203
commit
5842b14247
3 changed files with 18 additions and 1 deletions
|
|
@ -5,10 +5,15 @@
|
|||
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 ts_dump = require "ts_min_dump_utils"
|
||||
local am_utils = require "am_utils"
|
||||
|
||||
local hosts = am_utils.getHosts(nil, "min")
|
||||
|
||||
am_utils.run_am_check(os.time(), hosts, "min")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue