Reorganized periodic scripts

This commit is contained in:
MatteoBiscosi 2021-12-28 15:41:28 +01:00
parent 6bbe815b57
commit e92135e776
60 changed files with 1128 additions and 2377 deletions

View file

@ -812,15 +812,8 @@ end
-- ########################################################
-- This performs all the 5 minutes tasks execept the timeseries dump
function ts_dump.run_5min_tasks(_ifname, ifstats)
checks.schedulePeriodicScripts("5mins")
end
-- ########################################################
-- NOTE: this is executed every minute if ts_utils.hasHighResolutionTs() is true
function ts_dump.run_5min_dump(_ifname, ifstats, config, when)
function ts_dump.run_5min_dump(_ifname, ifstats, config, when, verbose)
local num_processed_hosts = 0
local min_instant = when - (when % 60) - 60