X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-hpssacli;h=959198e314fbd8e6e18b28767c635927518448bf;hb=1415ce3f22f293e001aa5dcf468f16c25ecbfc70;hp=4f97a5206a4c6bbfd7a1ca63825a2189343ead03;hpb=93c841674698e3947832ae962679e1149619cdb1;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-hpssacli b/dsa-nagios-checks/checks/dsa-check-hpssacli index 4f97a52..959198e 100755 --- a/dsa-nagios-checks/checks/dsa-check-hpssacli +++ b/dsa-nagios-checks/checks/dsa-check-hpssacli @@ -149,6 +149,14 @@ for my $slot (sort @controllers) { 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'); + } + } } } @@ -300,9 +308,12 @@ for my $slot (sort @controllers) { if (/^ *(.*) Status: (.*)$/) { my $system = $1; my $status = $2; + + # skip the cache check, we track the LD Acceleration Method above + next if ($system eq 'Cache'); + 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'); };