summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2009-08-20 11:45:38 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2009-08-20 11:45:38 +0000
commit7c29e7bbe181dcaf32f6aff8a581e4aeae701dd4 (patch)
tree655701347f7c5a3ac4ebbf53b6b809cbbf663d58
parentf88d5d44d7b9493dee9da570fefe1babc5983871 (diff)
Warn on rebuilding - instead of saying unknown
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@409 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xnagios-check-raid-3ware3
1 files changed, 3 insertions, 0 deletions
diff --git a/nagios-check-raid-3ware b/nagios-check-raid-3ware
index b5b84f8..be956bc 100755
--- a/nagios-check-raid-3ware
+++ b/nagios-check-raid-3ware
@@ -110,6 +110,9 @@ for my $line (@tw) {
$status eq 'VERIFYING') {
$msg .= ($msg eq '' ? '' : '; '). "$device: $status";
$exit = $exit > $OK ? $exit : $OK;
+ } elsif ($status eq 'REBUILDING') {
+ $msg .= ($msg eq '' ? '' : '; '). "$device: $status";
+ $exit = $exit > $WARNING ? $exit : $WARNING;
} elsif ($status eq 'DEGRADED') {
$msg .= ($msg eq '' ? '' : '; '). "$device: $status";
$exit = $exit > $CRITICAL ? $exit : $CRITICAL;