telegraf/plugins/inputs/ethtool/ethtool_notlinux.go

24 lines
390 B
Go
Raw Normal View History

//go:build !linux
2019-11-09 03:55:37 +08:00
package ethtool
import (
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
func (e *Ethtool) Init() error {
e.Log.Warn("Current platform is not supported")
return nil
}
2019-11-09 03:55:37 +08:00
func (e *Ethtool) Gather(acc telegraf.Accumulator) error {
return nil
}
func init() {
inputs.Add(pluginName, func() telegraf.Input {
return &Ethtool{}
})
}