telegraf/plugins/inputs/ethtool/ethtool_notlinux.go

24 lines
389 B
Go

// +build !linux
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
}
func (e *Ethtool) Gather(acc telegraf.Accumulator) error {
return nil
}
func init() {
inputs.Add(pluginName, func() telegraf.Input {
return &Ethtool{}
})
}