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:
wkamlun
2021-07-21 20:26:29 +02:00
committed by GitHub
parent 578602f8f9
commit 1d55265690
3 changed files with 8619 additions and 0 deletions
+19
View File
@@ -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