Skip to content

Commit

Permalink
Revert code from icinga.com update
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Friedrich committed Oct 24, 2018
1 parent 7da88c0 commit 001ffda
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
9 changes: 0 additions & 9 deletions lib/perfdata/elasticsearchwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 0 additions & 4 deletions lib/perfdata/elasticsearchwriter.ti
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ class ElasticsearchWriter : ConfigObject
[config] int flush_threshold {
default {{{ return 1024; }}}
};

[config] bool enable_ha {
default {{{ return true; }}}
};
};

}

0 comments on commit 001ffda

Please sign in to comment.