. * * ruckusSZAPConfUpdatedTrap is sent when the SmartZone updates the * configuration of an access point. Contains a configuration ID * number string. * * @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 LibreNMS\Snmptrap\Handlers\RuckusSzSeverity; use Log; class RuckusSzApConf 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) { $location = $trap->getOidData($trap->findOid('RUCKUS-SZ-EVENT-MIB::ruckusSZEventAPLocation')); $configId = $trap->getOidData($trap->findOid('RUCKUS-SZ-EVENT-MIB::ruckusSZAPConfigID')); $severity = RuckusSzSeverity::getSeverity($trap->getOidData($trap->findOid('RUCKUS-SZ-EVENT-MIB::ruckusSZEventSeverity'))); Log::event("AP at location $location configuration updated with config-id $configId", $device->device_id, 'trap', $severity); } }