Skip to content

Commit

Permalink
skip if mdadm binary is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
d10v committed Aug 5, 2016
1 parent e7d1a1b commit 90beb82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/scollector/collectors/disk_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 90beb82

Please sign in to comment.