mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Fixes for SZ detection * Ruckuswireless devices * remove registered mibs * Code Climate Fixes * updated test data for zd1100 & zd1200 * Updated database test data * trying to fix smartzone test data * updating zd test data * more code climate fixes * Update ruckuswireless-unleashed.yaml * hide total clients if 1 ssid * fixing smartzone ap status * smartzone ap count fixes * fixes because of git * fix zd ap counts * Update ruckuswireless-sz.json * Update ZD1200 test Data * Update ruckuswireless-sz.snmprec * Update Database test data * Update zd1200 database data * Update ruckuswireless_zd1100.snmprec * Update ruckuswireless_zd1100.json * Update ruckuswireless_zd1100.json * Update ruckuswireless_zd1100.json * Code Climate Fixes * Code Climate Fixes * Update Ruckuswireless.php * Code Format Fixes
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')
|
|
);
|
|
}
|
|
}
|