Add removed time_threshold

This commit is contained in:
emanuele-f 2018-10-12 18:44:44 +02:00
parent e9149d8806
commit 5cd7eb13a8

View file

@ -251,7 +251,7 @@ function rrd_dump.run_5min_dump(_ifname, ifstats, config, when, time_threshold,
-- Save hosts stats (if enabled from the preferences)
if (is_rrd_creation_enabled and (config.host_rrd_creation ~= "0")) or are_alerts_enabled then
local in_time = callback_utils.foreachLocalRRDHost(_ifname, nil, is_rrd_creation_enabled, function (hostname, host_ts)
local in_time = callback_utils.foreachLocalRRDHost(_ifname, time_threshold, is_rrd_creation_enabled, function (hostname, host_ts)
if are_alerts_enabled then
-- Check alerts first
check_host_alerts(ifstats.id, working_status, hostname)