mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
24 lines
714 B
Lua
24 lines
714 B
Lua
--
|
|
-- (C) 2013-24 - ntop.org
|
|
--
|
|
|
|
local dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
local lists_utils = require "lists_utils"
|
|
|
|
-- ########################################################
|
|
|
|
-- Check ntopng connectivity
|
|
-- If ntopng is in offline mode, retry checking connectivity
|
|
if ntop.isOffline() and not ntop.isForcedOffline() then
|
|
local connectivity_utils = require "connectivity_utils"
|
|
local online = connectivity_utils.checkConnectivity()
|
|
if online then
|
|
traceError(TRACE_NORMAL, TRACE_CONSOLE, "Connectivity restored, ntopng will now run in online mode")
|
|
ntop.setOnline()
|
|
end
|
|
end
|
|
|
|
-- Download lists
|
|
lists_utils.downloadLists()
|