mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
28 lines
997 B
PHP
28 lines
997 B
PHP
![]() |
<?php
|
||
|
namespace LibreNMS\OS;
|
||
|
|
||
|
use LibreNMS\Device\WirelessSensor;
|
||
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessClientsDiscovery;
|
||
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessApCountDiscovery;
|
||
|
use LibreNMS\OS;
|
||
|
|
||
|
class RuckuswirelessUnleashed extends OS implements
|
||
|
WirelessClientsDiscovery,
|
||
|
WirelessApCountDiscovery
|
||
|
{
|
||
|
public function discoverWirelessClients()
|
||
|
{
|
||
|
$oid = '.1.3.6.1.4.1.25053.1.15.1.1.1.15.2.0'; //RUCKUS-UNLEASHED-SYSTEM-MIB::ruckusUnleashedSystemStatsNumSta.0
|
||
|
return array(
|
||
|
new WirelessSensor('clients', $this->getDeviceId(), $oid, 'ruckuswireless-unleashed', 1, 'Clients: Total')
|
||
|
);
|
||
|
}
|
||
|
public function discoverWirelessApCount()
|
||
|
{
|
||
|
$oid = '.1.3.6.1.4.1.25053.1.15.1.1.1.15.1.0'; //RUCKUS-UNLEASHED-SYSTEM-MIB:: ruckusUnleashedSystemStatsNumAP.0
|
||
|
return array(
|
||
|
new WirelessSensor('ap-count', $this->getDeviceId(), $oid, 'ruckuswireless-unleashed', 1, 'Connected APs')
|
||
|
);
|
||
|
}
|
||
|
}
|