mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Arris CMTS - C4/C4c remamed and Added C3 support (#8883)
* Added Arris C3 to cmts.yaml * Added Arris C3 hardware * ARRIS CMTS->Move from cmts to arris_c4 yaml * Fixed some Arris_c4 definitions * Added Arris C3 CMTS * Fixed some typos * Arris C3 test files * Arris C4 test files * Deleted not anymore valid files * Renamed from underscore * Fixed some typos * Correct test files * Removed old snmprec files * Correct test files v2 * Deleted more old files * Return to cmts for valid_sensor() for Arris C4/C4c * Re-done test files * Re-do test files after rebase
This commit is contained in:
committed by
Neil Lathwood
parent
d824e8db62
commit
0bee4b3d74
@@ -0,0 +1,11 @@
|
||||
os: arris-c3
|
||||
text: 'Arris CMTS'
|
||||
type: network
|
||||
icon: arris
|
||||
mib_dir:
|
||||
- arris
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.4115.1.4.3
|
||||
@@ -1,4 +1,4 @@
|
||||
os: cmts
|
||||
os: arris-c4
|
||||
text: 'Arris CMTS'
|
||||
type: network
|
||||
icon: arris
|
||||
@@ -6,8 +6,6 @@ mib_dir:
|
||||
- arris
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_processor, text: 'CPU Usage' }
|
||||
- { graph: device_mempool, text: 'Memory Usage' }
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.4998.2.1
|
||||
@@ -0,0 +1,103 @@
|
||||
mib: ARRIS-C3-FPD-MIB
|
||||
modules:
|
||||
sensors:
|
||||
temperature:
|
||||
data:
|
||||
-
|
||||
oid: dcxFPDTemp1Status
|
||||
divisor: 100
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.4.
|
||||
descr: 'CPU card closest to the CPU'
|
||||
index: 'dcxFPDTemp1Status.{{ $index }}'
|
||||
-
|
||||
oid: dcxFPDTemp2Status
|
||||
divisor: 100
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.5.
|
||||
descr: 'CPU card, on the right hand side.'
|
||||
index: 'dcxFPDTemp2Status.{{ $index }}'
|
||||
-
|
||||
oid: dcxFPDTemp3Status
|
||||
divisor: 100
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.6.
|
||||
descr: 'Kanga, under Roo cards between RX4 and RX5.'
|
||||
index: 'dcxFPDTemp3Status.{{ $index }}'
|
||||
-
|
||||
oid: dcxFPDTemp4Status
|
||||
divisor: 100
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.7.
|
||||
descr: 'Kanga, under Roo cards between RX2 and RX3.'
|
||||
index: 'dcxFPDTemp4Status.{{ $index }}'
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: dcxFPDFan1Status
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.8.
|
||||
descr: 'Fan 1'
|
||||
index: 'dcxFPDFan1Status.{{ $index }}'
|
||||
state_name: dcxFPDFan1Status
|
||||
states:
|
||||
- { descr: rotating, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
|
||||
-
|
||||
oid: dcxFPDFan2Status
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.9.
|
||||
descr: 'Fan 2'
|
||||
index: 'dcxFPDFan2Status.{{ $index }}'
|
||||
state_name: dcxFPDFan2Status
|
||||
states:
|
||||
- { descr: rotating, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
|
||||
-
|
||||
oid: dcxFPDFan3Status
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.10.
|
||||
descr: 'Fan 3'
|
||||
index: 'dcxFPDFan3Status.{{ $index }}'
|
||||
state_name: dcxFPDFan3Status
|
||||
states:
|
||||
- { descr: rotating, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
|
||||
-
|
||||
oid: dcxFPDFan4Status
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.11.
|
||||
descr: 'Fan 4'
|
||||
index: 'dcxFPDFan4Status.{{ $index }}'
|
||||
state_name: dcxFPDFan4Status
|
||||
states:
|
||||
- { descr: rotating, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
|
||||
-
|
||||
oid: dcxFPDFan5Status
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.12.
|
||||
descr: 'Fan 5'
|
||||
index: 'dcxFPDFan5Status.{{ $index }}'
|
||||
state_name: dcxFPDFan5Status
|
||||
states:
|
||||
- { descr: rotating, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
|
||||
-
|
||||
oid: dcxFPDFan6Status
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.13.
|
||||
descr: 'Fan 6'
|
||||
index: 'dcxFPDFan6Status.{{ $index }}'
|
||||
state_name: dcxFPDFan6Status
|
||||
states:
|
||||
- { descr: rotating, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: bad Rotating, graph: 0, value: 2, generic: 2 }
|
||||
-
|
||||
oid: dcxFPDPowerStatus2
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.3.
|
||||
descr: 'Power status'
|
||||
index: 'dcxFPDPowerStatus2.{{ $index }}'
|
||||
state_name: dcxFPDPowerStatus2
|
||||
states:
|
||||
- { descr: on, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: off, graph: 0, value: 2, generic: 2 }
|
||||
-
|
||||
oid: dcxFPDAttachedStatus
|
||||
num_oid: .1.3.6.1.4.1.4115.1.4.3.3.1.2.1.
|
||||
descr: 'Front panel'
|
||||
index: 'dcxFPDAttachedStatus.{{ $index }}'
|
||||
state_name: dcxFPDAttachedStatus
|
||||
states:
|
||||
- { descr: attached, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: detached, graph: 0, value: 2, generic: 2 }
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* cmts.inc.php
|
||||
* arris-c3.inc.php
|
||||
*
|
||||
* LibreNMS os sensor pre-cache module for Arris CMTS
|
||||
*
|
||||
@@ -25,10 +25,10 @@
|
||||
*/
|
||||
|
||||
echo 'ifName ';
|
||||
$pre_cache['cmts_ifName'] = snmpwalk_cache_oid($device, 'ifName', array(), 'DOCS-IF-MIB');
|
||||
$pre_cache['ar-c3_ifName'] = snmpwalk_cache_oid($device, 'ifName', array(), 'DOCS-IF-MIB');
|
||||
|
||||
echo 'ifAlias ';
|
||||
$pre_cache['cmts_ifAlias'] = snmpwalk_cache_oid($device, 'ifAlias', array(), 'DOCS-IF-MIB');
|
||||
$pre_cache['ar-c3_ifAlias'] = snmpwalk_cache_oid($device, 'ifAlias', array(), 'DOCS-IF-MIB');
|
||||
|
||||
echo 'docsIfSignalQualityTable ';
|
||||
$pre_cache['cmts_docsIfSignalQualityTable'] = snmpwalk_cache_oid($device, 'docsIfSignalQualityTable', array(), 'DOCS-IF-MIB');
|
||||
$pre_cache['ar-c3_docsIfSignalQualityTable'] = snmpwalk_cache_oid($device, 'docsIfSignalQualityTable', array(), 'DOCS-IF-MIB');
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* arris-c4.inc.php
|
||||
*
|
||||
* LibreNMS os sensor pre-cache module for Arris CMTS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @package LibreNMS
|
||||
* @link http://librenms.org
|
||||
* @copyright 2018 TheGreatDoc
|
||||
* @author TheGreatDoc
|
||||
* Based on Neil Lathwood Cisco EPC files
|
||||
*/
|
||||
|
||||
echo 'ifName ';
|
||||
$pre_cache['ar-c4_ifName'] = snmpwalk_cache_oid($device, 'ifName', array(), 'DOCS-IF-MIB');
|
||||
|
||||
echo 'ifAlias ';
|
||||
$pre_cache['ar-c4_ifAlias'] = snmpwalk_cache_oid($device, 'ifAlias', array(), 'DOCS-IF-MIB');
|
||||
|
||||
echo 'docsIfSignalQualityTable ';
|
||||
$pre_cache['ar-c4_docsIfSignalQualityTable'] = snmpwalk_cache_oid($device, 'docsIfSignalQualityTable', array(), 'DOCS-IF-MIB');
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* arris-c3.inc.php
|
||||
*
|
||||
* LibreNMS snr discovery module for Arris CMTS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @package LibreNMS
|
||||
* @link http://librenms.org
|
||||
* @copyright 2018 TheGreatDoc
|
||||
* @author TheGreatDoc
|
||||
* Based on Neil Lathwood Cisco EPC files
|
||||
*/
|
||||
|
||||
foreach ($pre_cache['ar-c3_docsIfSignalQualityTable'] as $index => $data) {
|
||||
if (is_numeric($data['docsIfSigQSignalNoise'])) {
|
||||
$descr = "Channel {$pre_cache['ar-c3_ifAlias'][$index]['ifAlias']} - {$pre_cache['ar-c3_ifName'][$index]['ifName']}";
|
||||
$oid = '.1.3.6.1.2.1.10.127.1.1.4.1.5.' . $index;
|
||||
$divisor = 10;
|
||||
$value = $data['docsIfSigQSignalNoise'];
|
||||
if (preg_match("/.0$/", $pre_cache['ar-c3_ifName'][$index]['ifName'])) {
|
||||
discover_sensor($valid['sensor'], 'snr', $device, $oid, 'docsIfSigQSignalNoise.'.$index, 'arris-c3', $descr, $divisor, '1', null, null, null, null, $value);
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* cmts.inc.php
|
||||
* arris-c4.inc.php
|
||||
*
|
||||
* LibreNMS snr discovery module for Arris CMTS
|
||||
*
|
||||
@@ -24,13 +24,13 @@
|
||||
* Based on Neil Lathwood Cisco EPC files
|
||||
*/
|
||||
|
||||
foreach ($pre_cache['cmts_docsIfSignalQualityTable'] as $index => $data) {
|
||||
foreach ($pre_cache['ar-c4_docsIfSignalQualityTable'] as $index => $data) {
|
||||
if (is_numeric($data['docsIfSigQSignalNoise'])) {
|
||||
$descr = "Channel {$pre_cache['cmts_ifAlias'][$index]['ifAlias']} - {$pre_cache['cmts_ifName'][$index]['ifName']}";
|
||||
$descr = "Channel {$pre_cache['ar-c4_ifAlias'][$index]['ifAlias']} - {$pre_cache['ar-c4_ifName'][$index]['ifName']}";
|
||||
$oid = '.1.3.6.1.2.1.10.127.1.1.4.1.5.' . $index;
|
||||
$divisor = 10;
|
||||
$value = $data['docsIfSigQSignalNoise'];
|
||||
if (preg_match("/.0$/", $pre_cache['cmts_ifName'][$index]['ifName'])) {
|
||||
if (preg_match("/.0$/", $pre_cache['ar-c4_ifName'][$index]['ifName'])) {
|
||||
discover_sensor($valid['sensor'], 'snr', $device, $oid, 'docsIfSigQSignalNoise.'.$index, 'cmts', $descr, $divisor, '1', null, null, null, null, $value);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* cmts.inc.php
|
||||
* arris-c4.inc.php
|
||||
*
|
||||
* LibreNMS os poller module for Arris CMTS
|
||||
*
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,2 +0,0 @@
|
||||
1.3.6.1.2.1.1.1.0|4|CMTS_V08.02.05.74, <<HW_REV: 3.1; VENDOR: ARRIS; BOOTR: V00.01.00>>
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.4998.2.2
|
||||
Reference in New Issue
Block a user