ntopng/scripts/callbacks/system/5min.lua

14 lines
370 B
Lua

--
-- (C) 2013-18 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local system_scripts = require("system_scripts_utils")
if ntop.isPro() then
package.path = dirs.installdir .. "/pro/scripts/callbacks/system/?.lua;" .. package.path
require "5min"
end
system_scripts.runTask("5min", when)