mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Catch exceptions generated by alert transports The alert.php script would completely die if a single alert transport generated an exception. For example the API transport if CURL couldn't connect to the api endpoint. The script should attempt to send alerts to all working transports and not die because a single transport fails. * Move alert transport creation into try block Catch any potential exceptions during transport creation. None of the transports currently implement __construct() but the DB could throw and in the future there may be a transport that does implement it.