mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
28 lines
765 B
Lua
28 lines
765 B
Lua
--
|
|
-- (C) 2013 - ntop.org
|
|
--
|
|
|
|
dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
-- keep calling this before including modules to avoid that the
|
|
-- current interface is changed by (unexpected) interface.select() calls
|
|
local ifstats = interface.getStats()
|
|
|
|
require "lua_utils"
|
|
require "alert_utils"
|
|
local callback_utils = require "callback_utils"
|
|
|
|
if (ntop.isPro()) then
|
|
package.path = dirs.installdir .. "/pro/scripts/callbacks/interface/?.lua;" .. package.path
|
|
pcall(require, 'hourly')
|
|
end
|
|
|
|
-- ########################################################
|
|
|
|
local verbose = ntop.verboseTrace()
|
|
local _ifname = ifstats.name
|
|
|
|
-- ########################################################
|
|
|
|
scanAlerts("hour", ifstats)
|