Author: glen                         Date: Mon Jan  2 15:37:16 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- mpt: report CRITICAL for FAILED drives
  patch by Dave Love <d.love#liverpool.ac.uk>

---- Files affected:
packages/nagios-plugin-check_raid:
   check_raid (1.101 -> 1.102) 

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_raid/check_raid
diff -u packages/nagios-plugin-check_raid/check_raid:1.101 
packages/nagios-plugin-check_raid/check_raid:1.102
--- packages/nagios-plugin-check_raid/check_raid:1.101  Wed Dec  7 14:28:18 2011
+++ packages/nagios-plugin-check_raid/check_raid        Mon Jan  2 16:37:11 2012
@@ -4,7 +4,7 @@
 # nagios: -epn
 #
 # Check RAID status. Look for any known types of RAID configurations, and 
check them all.
-# Return CRITICAL if in a DEGRADED state, since if the whole array has failed 
you'll have already noticed it!
+# Return CRITICAL if in a DEGRADED or FAILED state.
 # Return UNKNOWN if there are no RAID configs that can be found.
 # Return WARNING if rebuilding or initialising
 #
@@ -481,7 +481,7 @@
                        next unless valid($d);
                        if (!$status and $s =~ /INITIAL|INACTIVE|RESYNC/) {
                                $status = $ERRORS{WARNING} unless $status;
-                       } elsif ($s =~ /DEGRADED/) {
+                       } elsif ($s =~ /DEGRADED|FAILED/) {
                                $status = $ERRORS{CRITICAL};
                        } elsif (!$status and $s !~ /ONLINE|OPTIMAL/) {
                                $status = $ERRORS{UNKNOWN} unless $status;
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_raid/check_raid?r1=1.101&r2=1.102&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to