]> granicus.if.org Git - icinga2/commitdiff
Improve HA support for the IDO check task
authorGunnar Beutner <gunnar.beutner@netways.de>
Sun, 14 Aug 2016 18:17:14 +0000 (20:17 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sun, 14 Aug 2016 18:17:14 +0000 (20:17 +0200)
fixes #12430

lib/db_ido/idochecktask.cpp

index 049928e4f6926560075f0e00afb01d3c4cacdc5c..987dc322988fe38df0e094cee7ef7e49cee67e74 100644 (file)
@@ -98,6 +98,13 @@ void IdoCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckResult
 
        double qps = conn->GetQueryCount(60) / 60.0;
 
+       if (conn->IsPaused()) {
+               cr->SetOutput("IDO connection is temporarily disabled on this cluster instance.");
+               cr->SetState(ServiceOK);
+               checkable->ProcessCheckResult(cr);
+               return;
+       }
+
        if (!conn->GetConnected()) {
                if (conn->GetShouldConnect()) {
                        cr->SetOutput("Could not connect to the database server.");