diff --git a/agent/agent.go b/agent/agent.go index 11f343632..7909a4c8a 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -191,6 +191,12 @@ func (a *Agent) Test() error { }() for _, input := range a.Config.Inputs { + if _, ok := input.Input.(telegraf.ServiceInput); ok { + fmt.Printf("\nWARNING: skipping plugin [[%s]]: service inputs not supported in --test mode\n", + input.Name()) + continue + } + acc := NewAccumulator(input, metricC) acc.SetPrecision(a.Config.Agent.Precision.Duration, a.Config.Agent.Interval.Duration)