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
This commit is contained in:
Paul Heinrichs
2017-08-30 18:13:31 -04:00
committed by Neil Lathwood
parent 8ab2d05da0
commit 6914666004
6 changed files with 53 additions and 0 deletions

28
LibreNMS/OS/Horizon.php Normal file
View File

@@ -0,0 +1,28 @@
<?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)
);
}
}

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

View File

@@ -0,0 +1,10 @@
os: horizon
text: 'Dragonwave Horizon Compact'
type: wireless
icon: dragonwave
over:
- { graph: device_wireless_snr, text: 'SNR' }
- { graph: device_wireless_power, text: 'Tx Power' }
discovery:
- sysObjectId:
- .1.3.6.1.4.1.7262.2.

View File

@@ -0,0 +1,13 @@
<?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.
*/
$version = trim(snmp_get($device, ".1.3.6.1.4.1.7262.2.2.1.3.2.1.0", "-Ovq"), '" ');
$serial = trim(snmp_get($device, ".1.3.6.1.4.1.7262.2.2.1.3.1.1.0", "-Ovq"), '" ');

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|hc50_364_256qam Omni: 1.04.08
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.7262.2.2