. * * @package LibreNMS * @link http://librenms.org * @copyright 2017 Neil Lathwood * @author Neil Lathwood */ if ($device['os'] === 'jetstream') { $data = snmpwalk_cache_oid($device, 'tpSysMonitorCpuTable', array(), 'TPLINK-SYSMONITOR-MIB', 'hp'); foreach ($data as $index => $item) { if (is_numeric($item['tpSysMonitorCpu5Seconds'])) { $descr = "Proc #$index"; $oid = '.1.3.6.1.4.1.11863.6.4.1.1.1.1.2.' . $index; $usage = $item['tpSysMonitorCpu5Seconds']; discover_processor($valid['processor'], $device, $oid, $index, 'jetstream', $descr, 1, $usage); } } } unset( $data, $descr, $index, $oid, $item, $usage );