. * * ruckusEventSetErrorTrap is sent when there is error setting a * value via SNMP. Contains the OID that is errored. * * @package LibreNMS * @link http://librenms.org * @copyright 2019 KanREN, Inc. * @author Heath Barnhart */ namespace LibreNMS\Snmptrap\Handlers; use App\Models\Device; use LibreNMS\Interfaces\SnmptrapHandler; use LibreNMS\Snmptrap\Trap; use Log; class RuckusSetError implements SnmptrapHandler { /** * Handle snmptrap. * Data is pre-parsed and delivered as a Trap. * * @param Device $device * @param Trap $trap * @return void */ public function handle(Device $device, Trap $trap) { $errorOidDirty = $trap->getOidData($trap->findOid('RUCKUS-EVENT-MIB::ruckusEventSetErrorOID')); $errorOid = substr($errorOidDirty, 43); Log::event("SNMP set error on oid $errorOid", $device->device_id, 'trap', 2); } }