mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fix interface timeseries being written even if the preference is disabled
This commit is contained in:
parent
b0c2278897
commit
019665c111
6 changed files with 14 additions and 69 deletions
|
|
@ -1,7 +1,6 @@
|
|||
require "lua_utils"
|
||||
require "graph_utils"
|
||||
require "alert_utils"
|
||||
require "rrd_utils"
|
||||
local host_pools_utils = require "host_pools_utils"
|
||||
local callback_utils = require "callback_utils"
|
||||
local os_utils = require "os_utils"
|
||||
|
|
@ -206,7 +205,7 @@ end
|
|||
|
||||
function rrd_dump.run_5min_dump(_ifname, ifstats, config, when, time_threshold, verbose)
|
||||
local working_status = nil
|
||||
local is_rrd_creation_enabled = interface_rrd_creation_enabled(ifstats.id)
|
||||
local is_rrd_creation_enabled = (ntop.getPref("ntopng.prefs.ifid_"..ifstats.id..".interface_rrd_creation") ~= "false")
|
||||
local are_alerts_enabled = mustScanAlerts(ifstats)
|
||||
|
||||
-- alerts stuff
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue