1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-05 01:53:44 +01:00

Fix invalid regex if mountpoint has . in path

This commit is contained in:
Tomas Edwardsson 2014-10-29 23:42:42 +00:00
parent f23ac92b64
commit c8e7fbbff8

View File

@ -324,7 +324,7 @@ if($opt_f) {
if(defined($alldisks{$f})) { if(defined($alldisks{$f})) {
$checkdisks{$f}=$alldisks{$f}; $checkdisks{$f}=$alldisks{$f};
} }
} elsif ($f =~ /([\/\w\d]+)\:(\w+)\:(\w+)/) { } elsif ($f =~ /^(.+?)\:(\w+)\:(\w+)/) {
if(defined($alldisks{$1})) { if(defined($alldisks{$1})) {
$checkdisks{$1}=$alldisks{$1}; $checkdisks{$1}=$alldisks{$1};
updateRates($1,$2,$3,$checkdisks{$1}->{somme}); updateRates($1,$2,$3,$checkdisks{$1}->{somme});