Fix #907
This commit is contained in:
parent
1487ab33cb
commit
3568546cf8
|
@ -164,9 +164,10 @@ sub new {
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$options{options}->add_options(arguments => {
|
$options{options}->add_options(arguments => {
|
||||||
'filter-ssid:s' => { name => 'filter_ssid' },
|
'filter-ssid:s' => { name => 'filter_ssid' },
|
||||||
'filter-ap:s' => { name => 'filter_ap' },
|
'filter-ap:s' => { name => 'filter_ap' },
|
||||||
'filter-group:s' => { name => 'filter_group' }
|
'filter-group:s' => { name => 'filter_group' },
|
||||||
|
'ignore-ap-users' => { name => 'ignore_ap_users' }
|
||||||
});
|
});
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
@ -240,6 +241,8 @@ sub manage_selection {
|
||||||
$self->{global}->{'total_' . $result->{status}}++;
|
$self->{global}->{'total_' . $result->{status}}++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return if (defined($self->{option_results}->{ignore_ap_users}));
|
||||||
|
|
||||||
my $request = [ { oid => $mapping2->{ap_name}->{oid} }, { oid => $oid_bsnAPIfLoadNumOfClients } ];
|
my $request = [ { oid => $mapping2->{ap_name}->{oid} }, { oid => $oid_bsnAPIfLoadNumOfClients } ];
|
||||||
push @$request, { oid => $mapping2->{group_name}->{oid} }
|
push @$request, { oid => $mapping2->{group_name}->{oid} }
|
||||||
if (defined($self->{option_results}->{filter_group}) && $self->{option_results}->{filter_group} ne '');
|
if (defined($self->{option_results}->{filter_group}) && $self->{option_results}->{filter_group} ne '');
|
||||||
|
@ -300,6 +303,10 @@ Filter by access point name (can be a regexp).
|
||||||
|
|
||||||
Filter by access point group (can be a regexp).
|
Filter by access point group (can be a regexp).
|
||||||
|
|
||||||
|
=item B<--ignore-ap-users>
|
||||||
|
|
||||||
|
Unmonitor users by access points.
|
||||||
|
|
||||||
=item B<--warning-*> B<--critical-*>
|
=item B<--warning-*> B<--critical-*>
|
||||||
|
|
||||||
Thresholds.
|
Thresholds.
|
||||||
|
|
Loading…
Reference in New Issue