summaryrefslogtreecommitdiffstats
path: root/src/go/plugin/go.d/modules/smartctl/exec.go
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-07-14 23:01:07 +0300
committerGitHub <noreply@github.com>2024-07-14 23:01:07 +0300
commit7aeb251f5486706c1f553da4938cb66cc93268eb (patch)
tree33e2fb2b23c4ed38b9b51d7f6b5b76181b6f59a3 /src/go/plugin/go.d/modules/smartctl/exec.go
parentcb126dcdd3ca12023e15f727f8f312de3e096e9a (diff)
go.d smartctl: use scan-open when "no_check_power_mode" is "never" (#18146)
Diffstat (limited to 'src/go/plugin/go.d/modules/smartctl/exec.go')
-rw-r--r--src/go/plugin/go.d/modules/smartctl/exec.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/go/plugin/go.d/modules/smartctl/exec.go b/src/go/plugin/go.d/modules/smartctl/exec.go
index 48bd11d80e..289501f711 100644
--- a/src/go/plugin/go.d/modules/smartctl/exec.go
+++ b/src/go/plugin/go.d/modules/smartctl/exec.go
@@ -33,6 +33,10 @@ func (e *smartctlCliExec) scan() (*gjson.Result, error) {
return e.execute("smartctl-json-scan")
}
+func (e *smartctlCliExec) scanOpen() (*gjson.Result, error) {
+ return e.execute("smartctl-json-scan-open")
+}
+
func (e *smartctlCliExec) deviceInfo(deviceName, deviceType, powerMode string) (*gjson.Result, error) {
return e.execute("smartctl-json-device-info",
"--deviceName", deviceName,