summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-05-09 12:54:12 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2008-05-09 12:54:12 +0000
commit09be493b7cf9e6fe8dee1aad6df97797c7e80db0 (patch)
treee17e51b520d2c552c6aa9edbcfb7afe500640517
parent36c25788dc7d1859b1efe716c1647f8a375934f2 (diff)
learn about Rebuilding
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@349 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xnagios-check-hpacucli5
1 files changed, 3 insertions, 2 deletions
diff --git a/nagios-check-hpacucli b/nagios-check-hpacucli
index c04e9ea..1fd74e6 100755
--- a/nagios-check-hpacucli
+++ b/nagios-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');