mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
enhance mountpoint regexp
This commit is contained in:
parent
280313089a
commit
0e7692b396
@ -87,8 +87,8 @@ sub manage_selection {
|
||||
|
||||
my @lines = split /\n/, $stdout;
|
||||
foreach my $line (@lines) {
|
||||
next if ($line !~ /^\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+\((.*)\)/);
|
||||
my ($device, $mountpoint, $type, $options) = ($1, $3, $5, $6);
|
||||
next if ($line !~ /^\s*(.*?)\s+on\s+(.*?)\s+type\s+(\S+)\s+\((.*)\)/);
|
||||
my ($device, $mountpoint, $type, $options) = ($1, $2, $3, $4);
|
||||
|
||||
if (defined($self->{option_results}->{filter_type}) && $self->{option_results}->{filter_type} ne '' &&
|
||||
$type !~ /$self->{option_results}->{filter_type}/) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user