telegraf/plugins/inputs/ethtool/ethtool_nonlinux.go

22 lines
369 B
Go

// +build !linux
package ethtool
import (
"log"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
func (e *Ethtool) Gather(acc telegraf.Accumulator) error {
return nil
}
func init() {
inputs.Add(pluginName, func() telegraf.Input {
log.Print("W! [inputs.ethtool] Current platform is not supported")
return &Ethtool{}
})
}