mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 02:13:44 +01:00
Fix invalid regex if mountpoint has . in path
This commit is contained in:
parent
f23ac92b64
commit
c8e7fbbff8
@ -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});
|
||||||
|
Loading…
Reference in New Issue
Block a user