mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Add historical_flows dashboard tempalte dep
This commit is contained in:
parent
bf93ebd29c
commit
6c707f05e7
3 changed files with 11 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue