2018-05-12 16:33:57 +01:00
|
|
|
<?php
|
2020-09-21 14:54:51 +02:00
|
|
|
|
2018-05-12 16:33:57 +01:00
|
|
|
namespace LibreNMS\OS;
|
|
|
|
|
|
|
|
use LibreNMS\Device\WirelessSensor;
|
|
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessApCountDiscovery;
|
|
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessClientsDiscovery;
|
|
|
|
use LibreNMS\OS;
|
|
|
|
|
2020-04-03 17:13:18 -05:00
|
|
|
class Fortiwlc extends OS implements
|
2018-05-12 16:33:57 +01:00
|
|
|
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
|
2020-09-21 14:54:51 +02:00
|
|
|
|
2018-05-12 16:33:57 +01:00
|
|
|
return [
|
|
|
|
new WirelessSensor('clients', $this->getDeviceId(), $oid, 'fortiwlc', 1, 'Clients: Total'),
|
|
|
|
];
|
|
|
|
}
|
2020-09-21 14:54:51 +02:00
|
|
|
|
2018-05-12 16:33:57 +01:00
|
|
|
public function discoverWirelessApCount()
|
|
|
|
{
|
|
|
|
$oid = '.1.3.6.1.4.1.15983.1.1.3.1.13.9.0'; //MERU-GLOBAL-STATISTICS-MIB::mwSystemGeneralTotalOnlineAps.0
|
2020-09-21 14:54:51 +02:00
|
|
|
|
2018-05-12 16:33:57 +01:00
|
|
|
return [
|
|
|
|
new WirelessSensor('ap-count', $this->getDeviceId(), $oid, 'fortiwlc', 1, 'Connected APs'),
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|