Add ethtool input plugin (#5865)
This commit is contained in:
committed by
Daniel Nelson
parent
6cbaf890d9
commit
d9ddd95b3c
21
plugins/inputs/ethtool/ethtool_nonlinux.go
Normal file
21
plugins/inputs/ethtool/ethtool_nonlinux.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// +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{}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user