diff --git a/modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php b/modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php index 512de2f28..aa4754729 100644 --- a/modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php +++ b/modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php @@ -3,6 +3,7 @@ namespace Icinga\Module\Monitoring\Command\Transport; +use Exception; use Icinga\Application\Config; use Icinga\Application\Logger; use Icinga\Data\ConfigObject; @@ -122,7 +123,7 @@ class CommandTransport implements CommandTransportInterface if ($this->transferPossible($command, $transport)) { try { $transport->send($command, $now); - } catch (CommandTransportException $e) { + } catch (Exception $e) { Logger::error($e); $errors[] = sprintf('%s: %s.', $name, rtrim($e->getMessage(), '.')); continue; // Try the next transport