$entry) { if (is_numeric($entry['cpmCPUMemoryUsed']) && is_numeric($entry['cpmCPUMemoryFree'])) { if ($entry['cpmCPUTotalPhysicalIndex']) { $descr = snmp_get($device, 'entPhysicalName.' . $entry['cpmCPUTotalPhysicalIndex'], '-Oqv', 'ENTITY-MIB'); } else { $descr = "Memory Pool $index"; } $used = $entry['cpmCPUMemoryUsed']; $free = $entry['cpmCPUMemoryFree']; $total = $used + $free; discover_mempool($valid['mempool'], $device, $index, 'CISCO-PROCESS-MIB', $descr, 1024, $total, $used); } } } // EOF