]> granicus.if.org Git - icinga2/commitdiff
Revert code from icinga.com update
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 24 Oct 2018 10:32:36 +0000 (12:32 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 24 Oct 2018 10:34:23 +0000 (12:34 +0200)
lib/perfdata/elasticsearchwriter.cpp
lib/perfdata/elasticsearchwriter.ti

index 40581eafbc1e2e72226cac368c95a660f9be96d5..029857094cbabedb7adf88bff80e0bef2d42bef5 100644 (file)
@@ -49,15 +49,6 @@ void ElasticsearchWriter::OnConfigLoaded()
        ObjectImpl<ElasticsearchWriter>::OnConfigLoaded();
 
        m_WorkQueue.SetName("ElasticsearchWriter, " + GetName());
-
-       if (!GetEnableHa()) {
-               Log(LogDebug, "ElasticsearchWriter")
-                       << "HA functionality disabled. Won't pause connection: " << GetName();
-
-               SetHAMode(HARunEverywhere);
-       } else {
-               SetHAMode(HARunOnce);
-       }
 }
 
 void ElasticsearchWriter::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata)
index 39e4c5628f3fcdc8509641491cc8356f6f6f74bd..2bbdd9d6a0ca367d866a2ea38d892ff8ef1978b9 100644 (file)
@@ -37,10 +37,6 @@ class ElasticsearchWriter : ConfigObject
        [config] int flush_threshold {
                default {{{ return 1024; }}}
        };
-
-       [config] bool enable_ha {
-               default {{{ return true; }}}
-       };
 };
 
 }