Skip to content

Commit

Permalink
fix(inputs.smartctl): Wrong device type
Browse files Browse the repository at this point in the history
use smartctl --scan-open instead of smartctl --scan, see
https://www.smartmontools.org/ticket/811
  • Loading branch information
TTTPOB committed Aug 9, 2024
1 parent ec1fc7f commit 0ce7795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/smartctl/smartctl_scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

// This is here so we can override it during testing
var scanArgs = []string{"--json", "--scan"}
var scanArgs = []string{"--json", "--scan-open"}

type scanDevice struct {
Name string
Expand Down

0 comments on commit 0ce7795

Please sign in to comment.