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