packages: nagios-plugin-check_raid/check_raid - trailing space cleanup
glen
glen at pld-linux.org
Wed Sep 9 17:14:49 CEST 2009
Author: glen Date: Wed Sep 9 15:14:49 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- trailing space cleanup
---- Files affected:
packages/nagios-plugin-check_raid:
check_raid (1.7 -> 1.8)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_raid/check_raid
diff -u packages/nagios-plugin-check_raid/check_raid:1.7 packages/nagios-plugin-check_raid/check_raid:1.8
--- packages/nagios-plugin-check_raid/check_raid:1.7 Wed Sep 9 17:14:17 2009
+++ packages/nagios-plugin-check_raid/check_raid Wed Sep 9 17:14:44 2009
@@ -73,7 +73,7 @@
chomp $l;
if($l =~ /^(\S+):/) { $d = $1; $sd = ''; next; }
if($l =~ /Submirror \d+:\s+(\S+)/) { $sd = $1; next; }
- if($l =~ /State: (\S.+)/) { $s = $1;
+ if($l =~ /State: (\S.+)/) { $s = $1;
if($sd and valid($sd) and valid($d)) {
if($s =~ /Okay/i) {
# no worries...
@@ -88,7 +88,7 @@
}
close METASTAT;
}
-sub check_megaide {
+sub check_megaide {
my($f,$l);
my($s,$n);
my($CMD);
@@ -147,9 +147,9 @@
if( $l =~ /\/dev\/(\S+) \S+ (\S+)/ ) {
($n,$s) = ($1,$2);
next if(!valid($n));
- if($s =~ /good|online/ ) { # no worries
- } elsif($s =~ /sync/ ) {
- $status = $ERRORS{WARNING} if(!$status);
+ if($s =~ /good|online/ ) { # no worries
+ } elsif($s =~ /sync/ ) {
+ $status = $ERRORS{WARNING} if(!$status);
} else { $status = $ERRORS{CRITICAL}; }
$message .= "md:$n:$s ";
}
@@ -170,7 +170,7 @@
foreach $vg ( @vg ) {
next if(!valid($vg)); # skip entire VG
open LSVG,"$lsvg -l $vg 2>/dev/null |" or return;
- while( $l = <LSVG> ) {
+ while( $l = <LSVG> ) {
@f = split " ",$l;
($n,$s) = ($f[0],$f[5]);
next if(!valid($n) or !$s);
@@ -192,8 +192,8 @@
$CMD = "$sudo $CMD" if $> and $sudo;
open IPS,"$CMD |" or return;
- while( $l = <IPS> ) {
- chomp $l;
+ while( $l = <IPS> ) {
+ chomp $l;
if( $l =~ /drive number (\d+)/i ) { $n = $1; next; }
next if(!valid($n));
if( $l =~ /Status .*: (\S+)\s+(\S+)/ ) {
@@ -284,7 +284,7 @@
close CMD;
}
-sub check_megaraid {
+sub check_megaraid {
my($f,$l);
my($s,$n);
my($CMD);
@@ -354,7 +354,7 @@
print "sudoers file updated.\n";
}
#####################################################################
-$ENV{'BASH_ENV'}='';
+$ENV{'BASH_ENV'}='';
$ENV{'ENV'}='';
Getopt::Long::Configure('bundling');
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_raid/check_raid?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list