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

Function LogFlapping

test/icinga-checkable-flapping.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static void LogFlapping(const Checkable::Ptr& obj)
30{
31 std::bitset<20> stateChangeBuf = obj->GetFlappingBuffer();
32 int oldestIndex = (obj->GetFlappingBuffer() & 0xFF00000) >> 20;
33
34 std::cout << "Flapping: " << obj->IsFlapping() << "\nHT: " << obj->GetFlappingThresholdHigh() << " LT: "
35 << obj->GetFlappingThresholdLow() << "\nOur value: " << obj->GetFlappingCurrent() << "\nPtr: " << oldestIndex
36 << " Buf: " << stateChangeBuf.to_ulong() << '\n';
37}
38
39
40static void LogHostStatus(const Host::Ptr &host)

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

IsFlappingMethod · 0.80

Tested by

no test coverage detected