X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-nrpe-config%2Fdsa-check-hpacucli;h=1fd74e6f14ec3f60d34e30ec511924f6d74a5885;hb=a8361b7cfd0af303947fff58a20e7e0d40a80d80;hp=c04e9eab8884851a952c7080122c1b354d3d2057;hpb=794419c6add775885f249326f352e82fbc7ad590;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-nrpe-config/dsa-check-hpacucli b/dsa-nagios-nrpe-config/dsa-check-hpacucli index c04e9ea..1fd74e6 100755 --- a/dsa-nagios-nrpe-config/dsa-check-hpacucli +++ b/dsa-nagios-nrpe-config/dsa-check-hpacucli @@ -93,12 +93,13 @@ for my $slot (sort @controllers) { next if (/^\S.*in Slot $slot/); if (/^Error: The specified controller does not have any physical drives on it.$/) { $nodrives = 1; - } elsif (/^ *physicaldrive (\S+) .* (OK|Predictive Failure|Failed)(?:, spare)?\)$/) { + } elsif (/^ *physicaldrive (\S+) .* (OK|Predictive Failure|Failed|Rebuilding)(?:, spare)?\)$/) { my $drive = $1; my $status = $2; push @{$status{$status}}, $drive; if ($status eq 'OK') { - } elsif ($status eq 'Predictive Failure') { + } elsif ($status eq 'Predictive Failure' || + $status eq 'Rebuilding') { record('WARNING'); } elsif ($status eq 'Failed') { record('CRITICAL');