mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
50
LibreNMS/OS/Alfo80hd.php
Normal file
50
LibreNMS/OS/Alfo80hd.php
Normal 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),
|
||||
);
|
||||
}
|
||||
}
|
12
includes/definitions/alfo80hd.yaml
Normal file
12
includes/definitions/alfo80hd.yaml
Normal 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
2429
tests/data/alfo80hd.json
Normal file
File diff suppressed because it is too large
Load Diff
1005
tests/snmpsim/alfo80hd.snmprec
Normal file
1005
tests/snmpsim/alfo80hd.snmprec
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user