Disable flow dump on db interfaces. Hide historical flows and reports menu.

This commit is contained in:
Alfredo Cardigliano 2024-07-09 09:31:33 +00:00
parent 312f9ade07
commit b5d7d80265
5 changed files with 9 additions and 7 deletions

View file

@ -14,6 +14,7 @@ local os_utils = require("os_utils")
-- interface.select(ifname)
local ifid = interface.getId()
local ifstats = interface.getStats()
-- ######################################
@ -70,7 +71,7 @@ if ntop.isnEdge() then
end
else
if ntop.isEnterprise() then
if ntop.isClickHouseEnabled() and auth.has_capability(auth.capabilities.historical_flows) then
if ntop.isClickHouseEnabled() and auth.has_capability(auth.capabilities.historical_flows) and ifstats['type'] ~= 'db' then
default_template = "enterprise-with-db"
else
default_template = "enterprise"