mirror of https://github.com/Icinga/icinga2.git
Service#GetSeverity(): behave as the respective IDO query of Icinga Web
which doesn't include host reachability.
This commit is contained in:
parent
185fab3761
commit
ff712f6b23
|
@ -137,7 +137,7 @@ int Service::GetSeverity() const
|
||||||
|
|
||||||
Host::Ptr host = GetHost();
|
Host::Ptr host = GetHost();
|
||||||
ObjectLock hlock (host);
|
ObjectLock hlock (host);
|
||||||
if (host->GetState() != HostUp || !host->IsReachable()) {
|
if (host->GetState() != HostUp) {
|
||||||
severity += 1024;
|
severity += 1024;
|
||||||
} else {
|
} else {
|
||||||
if (IsAcknowledged())
|
if (IsAcknowledged())
|
||||||
|
|
Loading…
Reference in New Issue