mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add Dragonwave Horizon Support * Add snmprec and fix style issues * Update logo and discovery oid * Update horizon.yaml
29 lines
792 B
PHP
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)
|
|
);
|
|
}
|
|
}
|