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

Method GetHostStateString

lib/db_ido/dbevents.cpp:1489–1495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1487}
1488
1489String DbEvents::GetHostStateString(const Host::Ptr& host)
1490{
1491 if (host->GetState() != HostUp && !host->IsReachable())
1492 return "UNREACHABLE"; /* hardcoded compat state */
1493
1494 return Host::StateToString(host->GetState());
1495}
1496
1497std::pair<unsigned long, unsigned long> DbEvents::ConvertTimestamp(double time)
1498{

Callers

nothing calls this directly

Calls 2

GetStateMethod · 0.45
IsReachableMethod · 0.45

Tested by

no test coverage detected