Skip to content

Commit

Permalink
Cisco WLC: fetch LWAPP SSIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Oct 31, 2023
1 parent 88b9744 commit cc4e263
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion LibreNMS/OS/Ciscowlc.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,16 @@ public function pollOS(DataStorageInterface $datastore): void
*/
public function discoverWirelessClients()
{
$ssids = $this->getCacheByIndex('bsnDot11EssSsid', 'AIRESPACE-WIRELESS-MIB');
$counts = $this->getCacheByIndex('bsnDot11EssNumberOfMobileStations', 'AIRESPACE-WIRELESS-MIB');
if (empty($counts)) {
return []; // no counts to be had
}

$ssids = $this->getCacheByIndex('bsnDot11EssSsid', 'AIRESPACE-WIRELESS-MIB');
if (empty ($ssids)) {
// Try to check the LWAPP mib
$ssids = $this->getCacheByIndex('cLWlanSsid', 'CISCO-LWAPP-WLAN-MIB');
}

$sensors = [];
$total_oids = [];
Expand Down

0 comments on commit cc4e263

Please sign in to comment.