We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72c2061 commit efe064aCopy full SHA for efe064a
LibreNMS/OS/Arubaos.php
@@ -85,12 +85,11 @@ public function discoverWirelessClients()
85
*/
86
public function discoverWirelessApCount()
87
{
88
- $mib = 'WLSX-SWITCH-MIB';
89
- $data = SnmpQuery::hideMib()->walk("$mib::wlsxSwitchTotalNumAccessPoints")->table(1);
+ $value = SnmpQuery::get('WLSX-SWITCH-MIB::wlsxSwitchTotalNumAccessPoints.0')->value();
90
$sensors = [];
91
92
- foreach ($data as $key => $value) {
93
- $oid = snmp_translate($mib . '::' . $key, 'ALL', 'arubaos', '-On');
+ if (is_numeric($value)) {
+ $oid = '.1.3.6.1.4.1.14823.2.2.1.1.3.1.0';
94
$value = intval($value);
95
96
$low_warn_const = 1; // Default warning threshold = 1 down AP
0 commit comments