mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Neil Lathwood
parent
8ab2d05da0
commit
6914666004
28
LibreNMS/OS/Horizon.php
Normal file
28
LibreNMS/OS/Horizon.php
Normal 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)
|
||||
);
|
||||
}
|
||||
}
|
||||
BIN
html/images/logos/dragonwave.png
Normal file
BIN
html/images/logos/dragonwave.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
html/images/os/dragonwave.png
Normal file
BIN
html/images/os/dragonwave.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 539 B |
10
includes/definitions/horizon.yaml
Normal file
10
includes/definitions/horizon.yaml
Normal 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.
|
||||
13
includes/polling/os/horizon.inc.php
Normal file
13
includes/polling/os/horizon.inc.php
Normal 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"), '" ');
|
||||
2
tests/snmpsim/horizon.snmprec
Normal file
2
tests/snmpsim/horizon.snmprec
Normal 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
|
||||
Reference in New Issue
Block a user