packages: nagios-plugin-check_raid/check_raid - fix afacli vars context

glen glen at pld-linux.org
Mon Sep 14 08:12:15 CEST 2009


Author: glen                         Date: Mon Sep 14 06:12:15 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix afacli vars context

---- Files affected:
packages/nagios-plugin-check_raid:
   check_raid (1.43 -> 1.44) 

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_raid/check_raid
diff -u packages/nagios-plugin-check_raid/check_raid:1.43 packages/nagios-plugin-check_raid/check_raid:1.44
--- packages/nagios-plugin-check_raid/check_raid:1.43	Fri Sep 11 16:08:35 2009
+++ packages/nagios-plugin-check_raid/check_raid	Mon Sep 14 08:12:09 2009
@@ -277,17 +277,18 @@
 	close $write;
 
 	while (<$read>) {
-		next if (my ($dsk, $stat) = /(\d:\d\d?:\d+)\s+\S+:\S+\s+(\S+)/);
-		next unless valid($dsk);
-		$dsk =~ s/:/\//g;
-		next unless valid($dsk);
-		$message .= "aac:$dsk:$stat ";
-		$status = $ERRORS{CRITICAL} if ($stat eq "Broken");
-		$status = $ERRORS{WARNING} if (!$status and $stat eq "Rebuild");
-		$status = $ERRORS{WARNING} if (!$status and $stat eq "Bld/Vfy");
-		$status = $ERRORS{CRITICAL} if ($stat eq "Missing");
-		$status = $ERRORS{WARNING} if (!$status and $stat eq "Verify");
-		$status = $ERRORS{WARNING} if (!$status and $stat eq "VfyRepl");
+		if (my ($dsk, $stat) = /(\d:\d\d?:\d+)\s+\S+:\S+\s+(\S+)/) {
+			next unless valid($dsk);
+			$dsk =~ s/:/\//g;
+			next unless valid($dsk);
+			$message .= "aac:$dsk:$stat ";
+			$status = $ERRORS{CRITICAL} if ($stat eq "Broken");
+			$status = $ERRORS{WARNING} if (!$status and $stat eq "Rebuild");
+			$status = $ERRORS{WARNING} if (!$status and $stat eq "Bld/Vfy");
+			$status = $ERRORS{CRITICAL} if ($stat eq "Missing");
+			$status = $ERRORS{WARNING} if (!$status and $stat eq "Verify");
+			$status = $ERRORS{WARNING} if (!$status and $stat eq "VfyRepl");
+		}
 	}
 	close $read;
 }
================================================================

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



More information about the pld-cvs-commit mailing list