Add connectivity check at startup. If offline, check hourly.

This commit is contained in:
Alfredo Cardigliano 2021-07-09 15:45:04 +02:00
parent a3b9792df8
commit bb297048c7
5 changed files with 91 additions and 17 deletions

View file

@ -740,6 +740,11 @@ end
-- This is run in housekeeping.lua
function lists_utils.checkReloadLists()
if ntop.isOffline() then
return
end
local forced_reload = (ntop.getCache("ntopng.cache.reload_lists_utils") == "1")
local reload_now = false