Skip to content

Commit

Permalink
Fix ipmi_sensor config is shared between all plugin instances
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Apr 18, 2017
1 parent 2542ef6 commit e651e8a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/inputs/ipmi_sensor/ipmi.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ func transform(s string) string {
}

func init() {
m := Ipmi{}
path, _ := exec.LookPath("ipmitool")
if len(path) > 0 {
m.Path = path
}
inputs.Add("ipmi_sensor", func() telegraf.Input {
m := Ipmi{}
path, _ := exec.LookPath("ipmitool")
if len(path) > 0 {
m.Path = path
}
return &m
})
}

0 comments on commit e651e8a

Please sign in to comment.