mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Disable flow dump on db interfaces. Hide historical flows and reports menu.
This commit is contained in:
parent
312f9ade07
commit
b5d7d80265
5 changed files with 9 additions and 7 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue