From cdd72a479added0362b0e264b80fa7965db08830 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Wed, 31 Jul 2019 15:18:15 +0200 Subject: [PATCH] fix aruba standard --- centreon/common/aruba/snmp/mode/apssidstatistics.pm | 4 ++-- centreon/common/aruba/snmp/mode/controllerstatus.pm | 9 ++++----- centreon/common/aruba/snmp/mode/license.pm | 3 ++- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/centreon/common/aruba/snmp/mode/apssidstatistics.pm b/centreon/common/aruba/snmp/mode/apssidstatistics.pm index 692e2b7af..3e9f8db57 100644 --- a/centreon/common/aruba/snmp/mode/apssidstatistics.pm +++ b/centreon/common/aruba/snmp/mode/apssidstatistics.pm @@ -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', diff --git a/centreon/common/aruba/snmp/mode/controllerstatus.pm b/centreon/common/aruba/snmp/mode/controllerstatus.pm index 42e14592d..24922f0ae 100644 --- a/centreon/common/aruba/snmp/mode/controllerstatus.pm +++ b/centreon/common/aruba/snmp/mode/controllerstatus.pm @@ -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') diff --git a/centreon/common/aruba/snmp/mode/license.pm b/centreon/common/aruba/snmp/mode/license.pm index d6031f964..a31e1fcf0 100644 --- a/centreon/common/aruba/snmp/mode/license.pm +++ b/centreon/common/aruba/snmp/mode/license.pm @@ -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;