Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -4,25 +4,25 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage discovery
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2022 Observium Limited
* @package observium
* @subpackage discovery
* @copyright (C) Adam Armstrong
*
*/
$mempool_array = snmpwalk_cache_oid($device, 'ceqfpMemoryResourceEntry', [], $mib);
foreach ($mempool_array as $index => $entry) {
if (is_numeric($entry['ceqfpMemoryResInUse'])) {
list($entPhysicalIndex, $entMemoryResource) = explode('.', $index);
$entPhysicalName = snmp_get($device, "entPhysicalName.$entPhysicalIndex", '-Oqv', 'ENTITY-MIB');
if (is_numeric($entry['ceqfpMemoryResInUse'])) {
[$entPhysicalIndex, $entMemoryResource] = explode('.', $index);
$entPhysicalName = snmp_cache_oid($device, "entPhysicalName.$entPhysicalIndex", 'ENTITY-MIB');
$descr = $entPhysicalName.' - '.$entMemoryResource;
$used = $entry['ceqfpMemoryResInUse'];
$total = $entry['ceqfpMemoryResTotal'];
$descr = $entPhysicalName . ' - ' . $entMemoryResource;
$used = $entry['ceqfpMemoryResInUse'];
$total = $entry['ceqfpMemoryResTotal'];
discover_mempool($valid['mempool'], $device, $index, 'CISCO-ENTITY-QFP-MIB', $descr, 1, $total, $used);
}
discover_mempool($valid['mempool'], $device, $index, 'CISCO-ENTITY-QFP-MIB', $descr, 1, $total, $used);
}
}
unset($mempool_array, $index, $descr, $total, $used, $free, $entPhysicalIndex, $entPhysicalName, $entMemoryResource);