[icinga-checkins] icinga.org: icingaweb2/master: Support failover API command transport configuration

git at icinga.org git at icinga.org
Thu Jan 12 10:40:35 CET 2017


Module: icingaweb2
Branch: master
Commit: cde55b5764c88111237c8706f743b6eae8938a50
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=cde55b5764c88111237c8706f743b6eae8938a50

Author: Eric Lippmann <eric.lippmann at icinga.com>
Date:   Thu Jan 12 10:39:36 2017 +0100

Support failover API command transport configuration

fixes #13957

---

 .../library/Monitoring/Command/Transport/CommandTransport.php       |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php b/modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php
index 512de2f..aa47547 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



More information about the icinga-checkins mailing list