mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update timos.inc.php (#11040)
Corrected th Nokia Service Routers (SAR) tmnxChassisType.1 to index to tmnxChassisTypeName.
This commit is contained in:
@ -10,10 +10,9 @@ $versionModifier = trim(snmp_get($device, '1.3.6.1.4.1.6527.3.1.2.1.1.7.0', '-OQ
|
||||
|
||||
$version = 'v' . $majorVersion . '.' . $minorVersion . '.' . $versionModifier;
|
||||
|
||||
$chassis_type_name_array = snmpwalk_cache_oid($device, 'tmnxChassisTypeName', $a = array(), 'TIMETRA-CHASSIS-MIB', null, '-OQUs');
|
||||
|
||||
$hardware_array = reset($chassis_type_name_array);
|
||||
$hardware = end($hardware_array);
|
||||
$hardwareindex = snmp_get($device, 'tmnxChassisType.1', '-Ovq', 'TIMETRA-CHASSIS-MIB');
|
||||
$tmnxChassisTypeName = 'tmnxChassisTypeName' . '.' . $hardwareindex;
|
||||
$hardware = snmp_get($device, $tmnxChassisTypeName, '-Ovq', 'TIMETRA-CHASSIS-MIB');
|
||||
|
||||
$props = snmpwalk_cache_numerical_oid($device, 'tmnxHwEntry.7', $props = array(), 'TIMETRA-CHASSIS-MIB', null, '-OQne');
|
||||
foreach ($props as $p) {
|
||||
|
Reference in New Issue
Block a user