From 906c71481bdf9741069f8193bab35b331b0599c5 Mon Sep 17 00:00:00 2001 From: Thomas Casteleyn Date: Tue, 22 Feb 2022 17:28:22 +0100 Subject: [PATCH] fix: Set NextCheckTime to LastCheckTime to avoid GroundWork to invent a value (#10623) --- plugins/outputs/groundwork/groundwork.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/outputs/groundwork/groundwork.go b/plugins/outputs/groundwork/groundwork.go index 721da2002..739cdf941 100644 --- a/plugins/outputs/groundwork/groundwork.go +++ b/plugins/outputs/groundwork/groundwork.go @@ -280,6 +280,7 @@ func (g *Groundwork) parseMetric(metric telegraf.Metric) (metricMeta, *transit.M MonitoredInfo: transit.MonitoredInfo{ Status: transit.MonitorStatus(status), LastCheckTime: lastCheckTime, + NextCheckTime: lastCheckTime, // if not added, GW will make this as LastCheckTime + 5 mins LastPluginOutput: message, }, Metrics: nil,