. * * @package LibreNMS * @link http://librenms.org * @copyright 2017 Neil Lathwood * @author Neil Lathwood */ if ($device['os'] === 'jetstream') { $data = snmpwalk_cache_oid($device, 'tpSysMonitorMemoryTable', array(), 'TPLINK-SYSMONITOR-MIB', 'hp'); foreach ($data as $index => $item) { if (is_numeric($item['tpSysMonitorMemoryUtilization'])) { $descr = "Memory #$index"; discover_mempool($valid_mempool, $device, $index, 'jetstream', $descr, '1'); } } } unset( $data, $descr, $index, $item );