]> git.proxmox.com Git - pve-storage.git/commitdiff
fix #1120: SCSI SMART health parsing
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 3 Oct 2016 11:53:34 +0000 (13:53 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 4 Oct 2016 08:34:06 +0000 (10:34 +0200)
SCSI disks report their health as "SMART Health Status: OK"

PVE/Diskmanage.pm

index 5530233407469cdf4d3ef1ed0d7d007f579d3aed..4cae46bec73a77585c668e828f2acccb4ce4a11c 100644 (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;