telegraf/plugins/inputs/ethtool/ethtool_nonlinux.go

22 lines
369 B
Go
Raw Normal View History

2019-11-08 19:55:37 +00:00
// +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{}
})
}