the patch attached
--- check_linux_raid	2010-04-27 08:50:47.000000000 +0200
+++ check_linux_raid.orig	2010-04-08 23:20:00.000000000 +0200
@@ -1,5 +1,4 @@
-#!/usr/bin/perl
-# nagios: -epn
+#!/usr/bin/perl -w
 
 # Copyright (c) 2002 ISOMEDIA, Inc.
 # originally written by Steve Milton
@@ -80,7 +79,6 @@
 }
 
 foreach my $k (sort keys %devices){
-        next unless (defined($status{$k}));
 	if ($status{$k} =~ /_/) {
 		if (defined $recovery{$k}) {
 			$msg .= sprintf " %s status=%s, recovery=%s, finish=%s.",
@@ -107,3 +105,4 @@
 
 print $code, $msg, "\n";
 exit ($ERRORS{$code});
\ No newline at end of file
+

Attachment: signature.asc
Description: This is a digitally signed message part.



Reply via email to