record('UNKNOWN');
}
}
+ if (/^ *LD Acceleration Method: (.*)$/) {
+ my $status = $1;
+ # can at least be "Controller Cache" or HP SSD Smart Path", both OK
+ if ($status eq 'All disabled') {
+ push @{$status{'Acceleration method'}}, "LD$logicaldrive disabled";
+ record('WARNING');
+ }
+ }
}
}
} elsif ($type eq 'SAS' || $type eq 'SAS+') {
$key = 'PHY Transfer Rate';
if ($value{'Interface Type'} eq 'SATA') {
- $expected = [ '1.5Gbps', '3.0Gbps' ];
+ $expected = [ '1.5Gbps', '3.0Gbps', '6.0Gbps' ];
} elsif ($value{'PHY Count'} eq '2') {
if (defined($value{'Redundant Path(s)'})) {
$expected = [ '3.0GBPS, 3.0GBPS', '6.0GBPS, 6.0GBPS',
if (/^ *(.*) Status: (.*)$/) {
my $system = $1;
my $status = $2;
+
+ if ($system eq 'Cache') {
+ # Can be:
+ # - 'OK'
+ # - 'Not Configured' (for e.g. HP SSD Smart Path)
+ # - 'Permanently Disabled'
+ # - ...?
+ next if $status =~ /^(OK|Not Configured)$/;
+ }
+
push @{$status{$status}}, $system;
if ($status ne 'OK') {
- next if ($params->{'no-battery'} && $system eq 'Cache');
next if ($params->{'no-battery'} && $system eq 'Battery/Capacitor');
record('WARNING');
};