Paul Heinrichs 6914666004 newdevice: Added support for DragonWave Horizon (#7264)
* Add Dragonwave Horizon Support

* Add snmprec and fix style issues

* Update logo and discovery oid

* Update horizon.yaml
2017-08-30 23:13:31 +01:00

29 lines
792 B
PHP

<?php
namespace LibreNMS\OS;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessSnrDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessPowerDiscovery;
use LibreNMS\Device\WirelessSensor;
use LibreNMS\OS;
class Horizon extends OS implements WirelessSnrDiscovery, WirelessPowerDiscovery
{
public function discoverWirelessSnr()
{
$oid = '.1.3.6.1.4.1.7262.2.2.5.1.2.8.0';
return array(
new WirelessSensor('snr', $this->getDeviceId(), $oid, 'horizon', 0, 'SNR', null, 1, 10)
);
}
public function discoverWirelessPower()
{
$oid = '.1.3.6.1.4.1.7262.2.2.5.1.3.7.0';
return array(
new WirelessSensor('power', $this->getDeviceId(), $oid, 'horizon', 0, 'Power', null, 1, 10)
);
}
}