mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Quick fix for alerting (#15060)
This commit is contained in:
parent
075267dcc9
commit
0c93132588
@ -31,6 +31,7 @@
|
||||
namespace LibreNMS\Alert;
|
||||
|
||||
use App\Facades\DeviceCache;
|
||||
use App\Models\AlertTransport;
|
||||
use App\Models\Eventlog;
|
||||
use LibreNMS\Config;
|
||||
use LibreNMS\Enum\Alert;
|
||||
@ -506,7 +507,7 @@ class RunAlerts
|
||||
$obj['msg'] = $type->getBody($obj);
|
||||
c_echo(" :: $transport_title => ");
|
||||
try {
|
||||
$instance = new $class($item['transport_id']);
|
||||
$instance = new $class(AlertTransport::find($item['transport_id']));
|
||||
$tmp = $instance->deliverAlert($obj, $item['opts'] ?? []);
|
||||
$this->alertLog($tmp, $obj, $obj['transport']);
|
||||
} catch (AlertTransportDeliveryException $e) {
|
||||
|
Loading…
Reference in New Issue
Block a user