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

Method CalculateState

lib/icinga/host.cpp:141–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141HostState Host::CalculateState(ServiceState state)
142{
143 switch (state) {
144 case ServiceOK:
145 case ServiceWarning:
146 return HostUp;
147 default:
148 return HostDown;
149 }
150}
151
152HostState Host::GetState() const
153{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected