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

Function LogHostStatus

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

Source from the content-addressed store, hash-verified

38
39
40static void LogHostStatus(const Host::Ptr &host)
41{
42 std::cout << "Current status: state: " << host->GetState() << " state_type: " << host->GetStateType()
43 << " check attempt: " << host->GetCheckAttempt() << "/" << host->GetMaxCheckAttempts() << " Active: " << host->IsActive() << std::endl;
44}
45#endif /* I2_DEBUG */
46
47BOOST_AUTO_TEST_SUITE(icinga_checkable_flapping)

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

IsActiveMethod · 0.80
GetStateMethod · 0.45

Tested by

no test coverage detected