mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add driver:deleteOldData and delete old RRDs
This commit is contained in:
parent
773df632b4
commit
95713ddfc6
13 changed files with 125 additions and 89 deletions
|
|
@ -251,16 +251,6 @@ end
|
|||
|
||||
-- ########################################################
|
||||
|
||||
function callback_utils.harverstOldRRDFiles(ifname)
|
||||
-- currently this is only implemented for old devices files. It should actually be implemented for other rrds as well
|
||||
local rrd_max_days = ntop.getPref("ntopng.prefs.rrd_files_retention")
|
||||
if isEmptyString(rrd_max_days) then rrd_max_days = 30 end
|
||||
|
||||
ntop.deleteOldRRDs(getInterfaceId(ifname), tonumber(rrd_max_days) * 60 * 60 * 24)
|
||||
end
|
||||
|
||||
-- ########################################################
|
||||
|
||||
function callback_utils.uploadTSdata()
|
||||
local ts_utils = require("ts_utils_core")
|
||||
local drivers = ts_utils.listActiveDrivers()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue