From: Peter Palfrader Date: Fri, 17 Apr 2009 23:31:24 +0000 (+0200) Subject: dsa-check-hpacucli: Spares can be active X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=7c814b6b8bda6f5a331f5033b785431cb88bc988;p=mirror%2Fdsa-nagios.git dsa-check-hpacucli: Spares can be active --- diff --git a/dsa-nagios-checks/checks/dsa-check-hpacucli b/dsa-nagios-checks/checks/dsa-check-hpacucli index ac8c9b4..4942e92 100755 --- a/dsa-nagios-checks/checks/dsa-check-hpacucli +++ b/dsa-nagios-checks/checks/dsa-check-hpacucli @@ -97,7 +97,7 @@ for my $slot (sort @controllers) { push @{$status{'Failed'}}, $1; } elsif (/^Error: The specified controller does not have any physical drives on it.$/) { $nodrives = 1; - } elsif (/^ *physicaldrive (\S+) .* (OK|Predictive Failure|Failed|Rebuilding)(?:, spare)?\)$/) { + } elsif (/^ *physicaldrive (\S+) .* (OK|Predictive Failure|Failed|Rebuilding)(?:, (?:active )?spare)?\)$/) { my $drive = $1; my $status = $2; push @{$status{$status}}, $drive; diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 432888a..72be4cb 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -3,8 +3,9 @@ dsa-nagios-checks (70) XXstable; urgency=low * No longer check nrpe config in postinst - puppet fixes it for us anyway. * Only run weak keys check if there is no prior weak key status. * dsa-check-hpacucli: Slots need not be all numeric. + * dsa-check-hpacucli: Spares can be active. - -- Peter Palfrader Sat, 18 Apr 2009 01:26:37 +0200 + -- Peter Palfrader Sat, 18 Apr 2009 01:31:05 +0200 dsa-nagios-checks (69) unstable; urgency=low