fix aruba standard

This commit is contained in:
Colin Gagnaire 2019-07-31 15:18:15 +02:00
parent 81ee313c97
commit cdd72a479a
3 changed files with 8 additions and 8 deletions

View File

@ -41,7 +41,7 @@ sub set_counters {
];
$self->{maps_counters}->{essid} = [
{ label => 'stations-associated', nlabel => 'essid.stations.associated.count', set => {
{ label => 'essid-stations-associated', nlabel => 'essid.stations.associated.count', set => {
key_values => [ { name => 'wlanAPEssidNumAssociatedStations' }, { name => 'wlanAPESSID' } ],
output_template => 'Associated Stations: %d',
perfdatas => [
@ -53,7 +53,7 @@ sub set_counters {
];
$self->{maps_counters}->{bssid} = [
{ label => 'stations-associated', nlabel => 'bssid.stations.associated.count', set => {
{ label => 'bssid-stations-associated', nlabel => 'bssid.stations.associated.count', set => {
key_values => [ { name => 'wlanAPBssidNumAssociatedStations' }, { name => 'wlanAPBSSID' },
{ name => 'wlanAPESSID' } ],
output_template => 'Associated Stations: %d',

View File

@ -60,7 +60,7 @@ sub set_counters {
];
$self->{maps_counters}->{global} = [
{ label => 'current', nlabel => 'controllers.current.count', set => {
{ label => 'connected-current', nlabel => 'controllers.connected.current.count', set => {
key_values => [ { name => 'current' } ],
output_template => 'Total controllers: %d',
perfdatas => [
@ -192,22 +192,21 @@ __END__
=head1 MODE
Check controller status (WLSX-SYSTEMEXT-MIB).
(Works only on master controller).
=over 8
=item B<--warning-*>
Threshold warning.
Can be: 'connected-current' (global), 'uptime',
'controller-bootstrap', 'reboot', 'status' (per AP).
Can be: 'connected-current' (global), 'status' (per controller).
'status' can use special variables like: %{name},
%{status}, %{ip}, %{role}, %{location} (Default: '')
=item B<--critical-*>
Threshold critical.
Can be: 'connected-current' (global), 'uptime',
'controller-bootstrap', 'reboot', 'status' (per AP).
Can be: 'connected-current' (global), 'status' (per controller).
'status' can use special variables like: %{name},
%{status}, %{ip}, %{role}, %{location} (Default: '%{status} !~ /active/i')

View File

@ -90,7 +90,8 @@ sub new {
$options{options}->add_options(arguments => {
"warning-status:s" => { name => 'warning_status' },
"critical-status:s" => { name => 'critical_status', default => '%{flag} !~ /enabled/i || (%{expires} ne "Never" && %{expires} < 86400)' },
"critical-status:s" => { name => 'critical_status',
default => '%{flag} !~ /enabled/i || (%{expires} ne "Never" && %{expires} < 86400)' },
});
return $self;