$entry) { if ($idx != '1' && $entry['hrStorageType'] === 'hrStorageRam' && str_starts($entry['hrStorageDescr'], 'RAM') && !str_contains($entry['hrStorageDescr'], 'Unavailable')) { // Use only Buffers and Cache $hrStorage[1]['hrStorageUsed'] -= snmp_dewrap32bit($entry['hrStorageUsed']); unset($hrStorage[$idx]); } } unset($idx); print_debug_vars($hrStorage); } $mempool['mempool_multiplier'] = $hrStorage[$index]['hrStorageAllocationUnits']; $mempool['used'] = (int)snmp_dewrap32bit($hrStorage[$index]['hrStorageUsed']); // if hrStorageUsed not set, use 0 $mempool['total'] = snmp_dewrap32bit($hrStorage[$index]['hrStorageSize']); // EOF