Add historical_flows dashboard tempalte dep

This commit is contained in:
Alfredo Cardigliano 2023-09-26 17:40:28 +02:00
parent bf93ebd29c
commit 6c707f05e7
3 changed files with 11 additions and 5 deletions

View file

@ -14,12 +14,18 @@ local lua_path_utils = require "lua_path_utils"
local file_utils = require "file_utils"
local json = require "dkjson"
local vs_utils = require "vs_utils"
local prefs = ntop.getPrefs()
local dashboard_utils = {}
-- ##############################################
local function is_clickhouse_available()
return prefs.is_dump_flows_to_clickhouse_enabled
end
dashboard_utils.module_available = {
['historical_flows'] = is_clickhouse_available,
['vulnerability_scan'] = vs_utils.is_available
}