. * * ruckusEventSetErrorTrap is sent when there is error setting a * value via SNMP. Contains the OID that is errored. * * @link https://www.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; 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); $trap->log("SNMP set error on oid $errorOid"); } }