@cryptotaxi247 / netdata-1 / commits / a5480091a

go.d smartctl: undo extra_devices skip from #18269 (#18270)

Ilya Mashchenko committed Aug 6, 2024 at 23:49 UTC a5480091a33ea6f92f905847923f1256d06ed5d3
1 file changed -6
src/go/plugin/go.d/modules/smartctl/scan.go
-6
@@ -5,7 +5,6 @@ package smartctl
5 import (
6 "errors"
7 "fmt"
8 - "slices"
8 "strings"
9 )
10
@@ -57,11 +56,6 @@ func (s *Smartctl) scanDevices() (map[string]*scanDevice, error) {
56 continue
57 }
58
60 - if i := slices.IndexFunc(s.ExtraDevices, func(d ConfigExtraDevice) bool { return d.Name == dev.name }); i >= 0 {
61 - s.Debugf("device %s exists in extra devices", dev.infoName)
62 - continue
63 - }
64 -
59 if !scanOpen && dev.typ == "scsi" {
60 // `smartctl --scan` attempts to guess the device type based on the path, but this can be unreliable.
61 // Accurate device type information is crucial because we use the `--device` option to gather data.