From 7c814b6b8bda6f5a331f5033b785431cb88bc988 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 18 Apr 2009 01:31:24 +0200 Subject: [PATCH] dsa-check-hpacucli: Spares can be active --- dsa-nagios-checks/checks/dsa-check-hpacucli | 2 +- dsa-nagios-checks/debian/changelog | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.20.1