X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-raid-sw;fp=dsa-nagios-checks%2Fchecks%2Fdsa-check-raid-sw;h=7707348731ee60e6cc3a702f0fc484723e87dae6;hb=44f5f0f4b2c493e83fa73f19bd127bee800f013f;hp=0297036a0e3f5a035f02aa595b6d3c50a37c873b;hpb=3590b13a275280d5aee4c4e3e109cc729d0d4159;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-raid-sw b/dsa-nagios-checks/checks/dsa-check-raid-sw index 0297036..7707348 100755 --- a/dsa-nagios-checks/checks/dsa-check-raid-sw +++ b/dsa-nagios-checks/checks/dsa-check-raid-sw @@ -99,7 +99,7 @@ while () { } elsif ( $line =~ / resync /) { # [==>..................] resync = 10.3% (15216320/146994624) finish=2153.2min speed=1018K/sec - my ($percent) = ($line =~ m# resync = ([0-9.]+%)#); + my ($percent) = ($line =~ m# resync *= *([0-9.]+%)#); my ($finish) = ($line =~ m# finish=([0-9.]+min)#); my ($speed) = ($line =~ m# speed=([0-9.]+K/sec)#); push @resyncing, "$device ($percent done, finish in $finish at $speed)";