. * * @package LibreNMS * @link http://librenms.org * @copyright 2018 Tony Murray * @author Tony Murray */ namespace LibreNMS\OS; use LibreNMS\Device\Processor; use LibreNMS\Interfaces\Discovery\ProcessorDiscovery; use LibreNMS\OS; class Dlinkap extends OS implements ProcessorDiscovery { /** * Discover processors. * Returns an array of LibreNMS\Device\Processor objects that have been discovered * * @return array Processors */ public function discoverProcessors() { return array( Processor::discover( 'dlinkap-cpu', $this->getDeviceId(), $this->getDevice()['sysObjectID'] . '.5.1.3.0', // different OID for each model 0, 'Processor', 100 ) ); } }