mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Severity Enum (#14620)
* Severity Enum Replace old Alert constants * Fix whitespace * Additional uses * style fixes * Fix test too * More missed locations * More
This commit is contained in:
@@ -39,6 +39,7 @@ Create a new class in `LibreNMS\Snmptrap\Handlers` that implements the
|
||||
namespace LibreNMS\Snmptrap\Handlers;
|
||||
|
||||
use App\Models\Device;
|
||||
use LibreNMS\Enum\Severity;
|
||||
use LibreNMS\Interfaces\SnmptrapHandler;
|
||||
use LibreNMS\Snmptrap\Trap;
|
||||
|
||||
@@ -54,7 +55,7 @@ class ColdBoot implements SnmptrapHandler
|
||||
*/
|
||||
public function handle(Device $device, Trap $trap)
|
||||
{
|
||||
$trap->log('SNMP Trap: Device ' . $device->displayName() . ' cold booted', $device->device_id, 'reboot', 4);
|
||||
$trap->log('SNMP Trap: Device ' . $device->displayName() . ' cold booted', $device->device_id, 'reboot', Severity::Warning);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user