diff --git a/cmd/scollector/collectors/disk_linux.go b/cmd/scollector/collectors/disk_linux.go index 85aec5ef34..4e06adbb9b 100644 --- a/cmd/scollector/collectors/disk_linux.go +++ b/cmd/scollector/collectors/disk_linux.go @@ -169,6 +169,9 @@ func examineMdadmVolume(volumeName string) (volumeDetail, error) { // We don't use --test because it has failed us in the past. // Maybe we should use it sometime in the future output, err := util.Command(tmout, nil, "mdadm", "--detail", volumeName) + if err != nil { + return volumeDetail{}, err + } detail := parseExamineMdadm(output) return detail, err }