fix #1120: SCSI SMART health parsing
SCSI disks report their health as "SMART Health Status: OK"
This commit is contained in:
committed by
Dietmar Maurer
parent
7a98a62dbc
commit
5db2d529ed
@ -96,7 +96,7 @@ sub get_smart_data {
|
|||||||
$entry->{raw} = $8 if defined $8;
|
$entry->{raw} = $8 if defined $8;
|
||||||
$entry->{id} = $1 if defined $1;
|
$entry->{id} = $1 if defined $1;
|
||||||
push @{$smartdata->{attributes}}, $entry;
|
push @{$smartdata->{attributes}}, $entry;
|
||||||
} elsif ($line =~ m/self\-assessment test result: (.*)$/) {
|
} elsif ($line =~ m/(?:Health Status|self\-assessment test result): (.*)$/ ) {
|
||||||
$smartdata->{health} = $1;
|
$smartdata->{health} = $1;
|
||||||
} elsif ($line =~ m/Vendor Specific SMART Attributes with Thresholds:/) {
|
} elsif ($line =~ m/Vendor Specific SMART Attributes with Thresholds:/) {
|
||||||
$datastarted = 1;
|
$datastarted = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user