mirror of https://github.com/Icinga/icinga2.git
Revert code from icinga.com update
This commit is contained in:
parent
7da88c0001
commit
001ffda61c
|
@ -49,15 +49,6 @@ void ElasticsearchWriter::OnConfigLoaded()
|
||||||
ObjectImpl<ElasticsearchWriter>::OnConfigLoaded();
|
ObjectImpl<ElasticsearchWriter>::OnConfigLoaded();
|
||||||
|
|
||||||
m_WorkQueue.SetName("ElasticsearchWriter, " + GetName());
|
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)
|
void ElasticsearchWriter::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata)
|
||||||
|
|
|
@ -37,10 +37,6 @@ class ElasticsearchWriter : ConfigObject
|
||||||
[config] int flush_threshold {
|
[config] int flush_threshold {
|
||||||
default {{{ return 1024; }}}
|
default {{{ return 1024; }}}
|
||||||
};
|
};
|
||||||
|
|
||||||
[config] bool enable_ha {
|
|
||||||
default {{{ return true; }}}
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue