mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update with FortiAP (#13037)
* Update with FortiAP Add number of connected wireless client and number of connected FortiAP * Add fortiAP support * Update Fortigate.php * tests * style * Update fortigate_500d.json Test cannot run properly because of dependency between interfaces and OSPF ports. Co-authored-by: PipoCanaja <[email protected]>
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
namespace LibreNMS\OS;
|
||||
|
||||
use App\Models\Device;
|
||||
use LibreNMS\Device\WirelessSensor;
|
||||
use LibreNMS\Interfaces\Polling\OSPolling;
|
||||
use LibreNMS\OS\Shared\Fortinet;
|
||||
use LibreNMS\RRD\RrdDefinition;
|
||||
@@ -69,4 +70,22 @@ class Fortigate extends Fortinet implements OSPolling
|
||||
$this->enableGraph('fortigate_cpu');
|
||||
}
|
||||
}
|
||||
|
||||
public function discoverWirelessClients()
|
||||
{
|
||||
$oid = '.1.3.6.1.4.1.12356.101.14.2.7.0';
|
||||
|
||||
return [
|
||||
new WirelessSensor('clients', $this->getDeviceId(), $oid, 'fortigate', 1, 'Clients: Total'),
|
||||
];
|
||||
}
|
||||
|
||||
public function discoverWirelessApCount()
|
||||
{
|
||||
$oid = '.1.3.6.1.4.1.12356.101.14.2.5.0';
|
||||
|
||||
return [
|
||||
new WirelessSensor('ap-count', $this->getDeviceId(), $oid, 'fortigate', 1, 'Connected APs'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user