fix #1120: SCSI SMART health parsing

SCSI disks report their health as "SMART Health Status: OK"
This commit is contained in:
Fabian Grünbichler
2016-10-03 13:53:34 +02:00
committed by Dietmar Maurer
parent 7a98a62dbc
commit 5db2d529ed

View File

@ -96,7 +96,7 @@ sub get_smart_data {
$entry->{raw} = $8 if defined $8;
$entry->{id} = $1 if defined $1;
push @{$smartdata->{attributes}}, $entry;
} elsif ($line =~ m/self\-assessment test result: (.*)$/) {
} elsif ($line =~ m/(?:Health Status|self\-assessment test result): (.*)$/ ) {
$smartdata->{health} = $1;
} elsif ($line =~ m/Vendor Specific SMART Attributes with Thresholds:/) {
$datastarted = 1;