Added OS definition and discovery for SIAE Alfo80HD (#11063)

* Added definition and sensors for SIAE Alfoplus80HD

* updated the units for the wireless rate sensor

* Added test data

* regenerated test data as requested by PipoCanaja
This commit is contained in:
HostIRE
2020-01-27 18:39:52 +00:00
committed by PipoCanaja
parent e33518ada1
commit 761d105847
4 changed files with 3496 additions and 0 deletions

50
LibreNMS/OS/Alfo80hd.php Normal file
View File

@@ -0,0 +1,50 @@
<?php
namespace LibreNMS\OS;
use LibreNMS\Device\WirelessSensor;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRssiDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessFrequencyDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessPowerDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRateDiscovery;
use LibreNMS\OS;
class Alfo80hd extends OS implements
WirelessRssiDiscovery,
WirelessFrequencyDiscovery,
WirelessPowerDiscovery,
WirelessRateDiscovery
{
public function discoverWirelessRssi()
{
$oid = '.1.3.6.1.4.1.3373.1103.39.2.1.12.1';
return array(
new WirelessSensor('rssi', $this->getDeviceId(), $oid, 'alfo80hd-rx', 1, 'RSSI'),
);
}
public function discoverWirelessFrequency()
{
$oid = '.1.3.6.1.4.1.3373.1103.39.2.1.2.1';
return array(
new WirelessSensor('frequency', $this->getDeviceId(), $oid, 'alfo80hd-tx-freq', 1, 'Tx Frequency', null, 1, 1000),
);
}
public function discoverWirelessPower()
{
$oid = '.1.3.6.1.4.1.3373.1103.39.2.1.13.1';
return array(
new WirelessSensor('power', $this->getDeviceId(), $oid, 'alfo80hd-tx', 1, 'Tx Power'),
);
}
public function discoverWirelessRate()
{
$oid = '.1.3.6.1.4.1.3373.1103.15.4.1.';
return array(
new WirelessSensor('rate', $this->getDeviceId(), $oid . '17.1', 'alfo80hd-tx-rate', 1, 'Tx Rate', null, 1000, 1),
new WirelessSensor('rate', $this->getDeviceId(), $oid . '18.1', 'alfo80hd-rx-rate', 2, 'Rx Rate', null, 1000, 1),
);
}
}

View File

@@ -0,0 +1,12 @@
os: alfo80hd
text: 'SIAE Alfoplus 80HD'
type: wireless
icon: siae
over:
- { graph: device_bits, text: Traffic }
- { graph: device_wireless_rssi, text: RSSI }
- { graph: device_wireless_power, text: POWER }
poller_modules:
wifi: true
discovery:
- { sysObjectID: .1.3.6.1.4.1.3373.1103, sysDescr: 'ALFOplus80HD - SIAE Microelettronica' }

2429
tests/data/alfo80hd.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff