summaryrefslogtreecommitdiff
path: root/nagios-check-raid-3ware
diff options
context:
space:
mode:
Diffstat (limited to 'nagios-check-raid-3ware')
-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;