packages: nagios-plugin-check_raid/check_raid parse fix for 3ware raid VERI...

glen glen at pld-linux.org
Sun Feb 5 14:41:22 CET 2012


Author: glen                         Date: Sun Feb  5 13:41:22 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
parse fix for 3ware raid VERIFYING state:
# tw_cli info c4 unitstatus
Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    VERIFYING      -       50%     256K    5587.9    RiW    ON
now prints:
# check_raid
WARNING: 3ware: c4(9750-4i): u0:VERIFYING 50%
patch by Kai-H. Weutzing <kai#weutzing.de>

---- Files affected:
packages/nagios-plugin-check_raid:
   check_raid (1.105 -> 1.106) 

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_raid/check_raid
diff -u packages/nagios-plugin-check_raid/check_raid:1.105 packages/nagios-plugin-check_raid/check_raid:1.106
--- packages/nagios-plugin-check_raid/check_raid:1.105	Mon Jan 30 22:25:09 2012
+++ packages/nagios-plugin-check_raid/check_raid	Sun Feb  5 14:41:17 2012
@@ -633,7 +633,7 @@
 			if ($s eq 'OK') {
 				push(@cstatus, "$u:$s");
 
-			} elsif ($s eq 'INITIALIZING') {
+			} elsif ($s eq 'INITIALIZING|VERIFYING') {
 				$status = $ERRORS{WARNING} unless $status;
 				push(@cstatus, "$u:$s $p2");
 
================================================================

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



More information about the pld-cvs-commit mailing list