mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Added AP/Client Count detection for FortiWLC * Corrected PHPCBF error on LibreNMS/OS/Fortiwlc.php * Corrected PHPCBF error on includes/polling/os/fortiwlc.inc.php * Removed IPV6-TC and re-added config.php.default per murrant comment * Re-added config.php.default per murrant comment * Added CPU% usage detection for FortiWLC * Updated includes/polling/os/fortiwlc.inc.php with get_snmp_multi_oid * Updated includes/polling/os/fortiwlc.inc.php with get_snmp_multi_oid * Updated tests/snmpsim/fortiwlc.snmprec * Create fortiwlc.json
28 lines
943 B
PHP
28 lines
943 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 FortiWlc extends OS implements
|
|
WirelessClientsDiscovery,
|
|
WirelessApCountDiscovery
|
|
{
|
|
public function discoverWirelessClients()
|
|
{
|
|
$oid = '.1.3.6.1.4.1.15983.1.1.3.1.13.11.0'; //MERU-GLOBAL-STATISTIC-MIB::mwSystemGeneralTotalWirelessStations.0
|
|
return array(
|
|
new WirelessSensor('clients', $this->getDeviceId(), $oid, 'fortiwlc', 1, 'Clients: Total')
|
|
);
|
|
}
|
|
public function discoverWirelessApCount()
|
|
{
|
|
$oid = '.1.3.6.1.4.1.15983.1.1.3.1.13.9.0'; //MERU-GLOBAL-STATISTICS-MIB::mwSystemGeneralTotalOnlineAps.0
|
|
return array(
|
|
new WirelessSensor('ap-count', $this->getDeviceId(), $oid, 'fortiwlc', 1, 'Connected APs')
|
|
);
|
|
}
|
|
}
|