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

Method GetHostStateString

lib/compat/compatlogger.cpp:441–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441String CompatLogger::GetHostStateString(const Host::Ptr& host)
442{
443 if (host->GetState() != HostUp && !host->IsReachable())
444 return "UNREACHABLE"; /* hardcoded compat state */
445
446 return Host::StateToString(host->GetState());
447}
448
449void CompatLogger::WriteLine(const String& line)
450{

Callers

nothing calls this directly

Calls 2

GetStateMethod · 0.45
IsReachableMethod · 0.45

Tested by

no test coverage detected