2017-10-07 22:17:51 +02:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* LibreNMS
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version. Please see LICENSE.txt at the top level of
|
|
|
|
* the source code distribution for details.
|
|
|
|
*
|
|
|
|
* @package LibreNMS
|
2021-02-09 00:29:04 +01:00
|
|
|
* @link https://www.librenms.org
|
2017-10-07 22:17:51 +02:00
|
|
|
* @copyright 2017 Thomas GAGNIERE
|
|
|
|
* @author Thomas GAGNIERE <tgagniere@reseau-concept.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace LibreNMS\OS;
|
|
|
|
|
|
|
|
use LibreNMS\Device\WirelessSensor;
|
2020-09-18 08:12:07 -05:00
|
|
|
use LibreNMS\Interfaces\Discovery\OSDiscovery;
|
2017-10-07 22:17:51 +02:00
|
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessClientsDiscovery;
|
2020-09-18 08:12:07 -05:00
|
|
|
use LibreNMS\OS\Shared\Zyxel;
|
2017-10-07 22:17:51 +02:00
|
|
|
|
2020-09-18 08:12:07 -05:00
|
|
|
class Zyxelnwa extends Zyxel implements OSDiscovery, WirelessClientsDiscovery
|
2017-10-07 22:17:51 +02:00
|
|
|
{
|
|
|
|
public function discoverWirelessClients()
|
|
|
|
{
|
|
|
|
$oid = '.1.3.6.1.4.1.890.1.15.3.5.1.1.2.1'; //ZYXEL-ES-SMI::esMgmt.5.1.1.2.1
|
2020-09-21 14:54:51 +02:00
|
|
|
|
2017-10-07 22:17:51 +02:00
|
|
|
return [
|
|
|
|
new WirelessSensor('clients', $this->getDeviceId(), $oid, 'zyxelnwa', 1, 'Clients'),
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|