From 7c29e7bbe181dcaf32f6aff8a581e4aeae701dd4 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 20 Aug 2009 11:45:38 +0000 Subject: Warn on rebuilding - instead of saying unknown git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@409 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-raid-3ware | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nagios-check-raid-3ware') 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; -- cgit v1.2.3