From fd964bd4ebde7bebfe1565163b2ee6bd09faaf7b Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Fri, 8 Dec 2017 18:03:12 -0800 Subject: [PATCH] Use auto type detection for scanned devices in smart input (#3561) (cherry picked from commit 93d16a46036d27629c1f5e081681924f9e1d4d64) --- plugins/inputs/smart/smart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/smart/smart.go b/plugins/inputs/smart/smart.go index dda115d02..bc130363b 100644 --- a/plugins/inputs/smart/smart.go +++ b/plugins/inputs/smart/smart.go @@ -135,7 +135,7 @@ func (m *Smart) scan() ([]string, error) { devices := []string{} for _, line := range strings.Split(string(out), "\n") { - dev := strings.Split(line, "#") + dev := strings.Split(line, " ") if len(dev) > 1 && !excludedDev(m.Excludes, strings.TrimSpace(dev[0])) { devices = append(devices, strings.TrimSpace(dev[0])) }