MCPcopy Create free account
hub / github.com/Icinga/icinga2 / OnConfigLoaded

Method OnConfigLoaded

lib/perfdata/gelfwriter.cpp:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36REGISTER_STATSFUNCTION(GelfWriter, &GelfWriter::StatsFunc);
37
38void GelfWriter::OnConfigLoaded()
39{
40 ObjectImpl<GelfWriter>::OnConfigLoaded();
41
42 m_WorkQueue.SetName("GelfWriter, " + GetName());
43
44 if (!GetEnableHa()) {
45 Log(LogDebug, "GelfWriter")
46 << "HA functionality disabled. Won't pause connection: " << GetName();
47
48 SetHAMode(HARunEverywhere);
49 } else {
50 SetHAMode(HARunOnce);
51 }
52}
53
54void GelfWriter::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata)
55{

Callers

nothing calls this directly

Calls 2

LogClass · 0.85
SetNameMethod · 0.45

Tested by

no test coverage detected