2019-03-14 02:39:29 +00:00
|
|
|
<?php
|
2020-09-21 12:54:51 +00:00
|
|
|
|
2019-03-14 02:39:29 +00:00
|
|
|
namespace LibreNMS\OS;
|
|
|
|
|
2020-09-18 13:12:07 +00:00
|
|
|
use LibreNMS\Device\WirelessSensor;
|
|
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessQualityDiscovery;
|
2019-03-14 02:39:29 +00:00
|
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRssiDiscovery;
|
|
|
|
use LibreNMS\Interfaces\Discovery\Sensors\WirelessSnrDiscovery;
|
|
|
|
use LibreNMS\OS;
|
|
|
|
|
2020-09-18 13:12:07 +00:00
|
|
|
class ArrisDsr4410md extends OS implements
|
|
|
|
WirelessRssiDiscovery,
|
|
|
|
WirelessSnrDiscovery,
|
|
|
|
WirelessQualityDiscovery
|
2019-03-14 02:39:29 +00:00
|
|
|
{
|
|
|
|
public function discoverWirelessRssi()
|
|
|
|
{
|
|
|
|
$oid = '.1.3.6.1.4.1.1166.1.621.11.9.0';
|
2020-09-21 12:54:51 +00:00
|
|
|
|
2019-03-14 02:39:29 +00:00
|
|
|
return [
|
|
|
|
new WirelessSensor(
|
|
|
|
'rssi',
|
|
|
|
$this->getDeviceId(),
|
|
|
|
$oid,
|
|
|
|
'arris-dsr4410md',
|
|
|
|
0,
|
|
|
|
'Receive Signal Level',
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
10
|
|
|
|
),
|
|
|
|
];
|
|
|
|
}
|
2020-09-21 12:54:51 +00:00
|
|
|
|
2019-03-14 02:39:29 +00:00
|
|
|
public function discoverWirelessSnr()
|
|
|
|
{
|
|
|
|
$oid = '.1.3.6.1.4.1.1166.1.621.16.6.8.0';
|
2020-09-21 12:54:51 +00:00
|
|
|
|
2019-03-14 02:39:29 +00:00
|
|
|
return [
|
|
|
|
new WirelessSensor(
|
|
|
|
'snr',
|
|
|
|
$this->getDeviceId(),
|
|
|
|
$oid,
|
|
|
|
'arris-dsr4410md',
|
|
|
|
0,
|
|
|
|
'Receive SNR',
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
10
|
|
|
|
),
|
|
|
|
];
|
|
|
|
}
|
2020-09-18 13:12:07 +00:00
|
|
|
|
2019-03-14 02:39:29 +00:00
|
|
|
public function discoverWirelessQuality()
|
|
|
|
{
|
|
|
|
$oid = '.1.3.6.1.4.1.1166.1.621.11.8.0';
|
2020-09-21 12:54:51 +00:00
|
|
|
|
2019-03-14 02:39:29 +00:00
|
|
|
return [
|
|
|
|
new WirelessSensor(
|
|
|
|
'quality',
|
|
|
|
$this->getDeviceId(),
|
|
|
|
$oid,
|
|
|
|
'arris-dsr4410md',
|
|
|
|
0,
|
|
|
|
'Receive Quality'
|
|
|
|
),
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|