$entry) { if (is_numeric($index) && is_numeric($entry['memTotalBytes'])) { $free = $entry['memFreeBytes']; $used = $entry['memAllocatedBytes']; $total = $free + $used; # memTotalBytes is 0 ! $descr = $entry['memDescr']; discover_mempool($valid['mempool'], $device, $index, 'SMARTNODE-MIB', $descr, 1, $total, $used); } } unset ($mempool_array, $index, $total, $used); // EOF