Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Device Arris DSR-4410MD Sat Receiver #9943

Merged
merged 4 commits into from Mar 14, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -0,0 +1,60 @@
<?php
namespace LibreNMS\OS;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRssiDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessSnrDiscovery;
use LibreNMS\Interfaces\Discovery\Sensors\WirelessQualityDiscovery;
use LibreNMS\Device\WirelessSensor;
use LibreNMS\OS;
class ArrisDsr4410md extends OS implements WirelessRssiDiscovery, WirelessSnrDiscovery, WirelessQualityDiscovery
{
public function discoverWirelessRssi()
{
$oid = '.1.3.6.1.4.1.1166.1.621.11.9.0';
return array(
new WirelessSensor(
'rssi',
$this->getDeviceId(),
$oid,
'arris-dsr4410md',
0,
'Receive Signal Level',
null,
null,
10
)
);
}
public function discoverWirelessSnr()
{
$oid = '.1.3.6.1.4.1.1166.1.621.16.6.8.0';
return array(
new WirelessSensor(
'snr',
$this->getDeviceId(),
$oid,
'arris-dsr4410md',
0,
'Receive SNR',
null,
null,
10
)
);
}
public function discoverWirelessQuality()
{
$oid = '.1.3.6.1.4.1.1166.1.621.11.8.0';
return array(
new WirelessSensor(
'quality',
$this->getDeviceId(),
$oid,
'arris-dsr4410md',
0,
'Receive Quality'
)
);
}
}
@@ -0,0 +1,34 @@
os: arris-dsr4410md
text: 'Arris Satellite Receiver'
type: network
icon: arris
mib_dir:
- arris
over:
- { graph: device_wireless_rssi, text: Sat Signal Level }
- { graph: device_wireless_quality, text: Sat Signal Quality }
discovery:
-
snmpget:
oid: .1.3.6.1.4.1.1166.1.621.14.2.0
op: 'contains'
value: DSR
discovery_modules:
ports: false
mempools: false
processors: false
fdb-table: false
stp: false
ntp: false
bgp-peers: false
arp-table: false
vlans: false
ucd-diskio: false
cisco-vrf-lite: false
entity-physical: false
ports-stack: false
ipv6-addresses: false
services: false
discovery-protocols: false
hr-device: false
storage: false
@@ -0,0 +1,15 @@
mib: DSR4410MD-MIB
modules:
sensors:
state:
data:
-
oid: signalStatus
value: acquisitionState
num_oid: '.1.3.6.1.4.1.1166.1.621.11.1.0'
descr: 'Acquisition State'
state_name: acquisitionState
states:
- { value: -1, generic: 3, graph: 0, descr: 'null' }
- { value: 1, generic: 2, graph: 1, descr: 'Un-Locked' }
- { value: 0, generic: 0, graph: 1, descr: 'Locked' }
@@ -0,0 +1,5 @@
<?php
$arrisdsr_data = snmp_get_multi_oid($device, ['.1.3.6.1.4.1.1166.1.621.9.2.3.0', '.1.3.6.1.4.1.1166.1.621.9.1.1.0', '.1.3.6.1.4.1.1166.1.621.14.2.0']);
$version = $arrisdsr_data['.1.3.6.1.4.1.1166.1.621.9.2.3.0'];
$serial = $arrisdsr_data['.1.3.6.1.4.1.1166.1.621.9.1.1.0'];
$hardware = $arrisdsr_data['.1.3.6.1.4.1.1166.1.621.14.2.0'];
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.