[Nagiosplug-checkins] CVS: nagiosplug/contrib check_linux_raid.pl,1.1,1.2

Matthew Kent mattkent at users.sourceforge.net
Sat Nov 20 14:45:28 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug/contrib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13014

Modified Files:
	check_linux_raid.pl 
Log Message:
Fix always reading status from the last line (1045506)


Index: check_linux_raid.pl
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/contrib/check_linux_raid.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** check_linux_raid.pl	14 Aug 2002 19:01:58 -0000	1.1
--- check_linux_raid.pl	20 Nov 2004 22:43:51 -0000	1.2
***************
*** 37,43 ****
          if (/(\[[_U]+\])/) {
              $status = $1;
!         } elsif (/recovery = (.*?)\s/) {  
              $recovery = $1;
              ($finish) = /finish=(.*?min)/;
          }
      } else {
--- 37,45 ----
          if (/(\[[_U]+\])/) {
              $status = $1;
!             last;
!     } elsif (/recovery = (.*?)\s/) {  
              $recovery = $1;
              ($finish) = /finish=(.*?min)/;
+ 	    last;
          }
      } else {





More information about the Commits mailing list