Merge pull request #9317 from Icinga/revert-9245-bugfix/adjust-behavior-of-service-get-severity-212

Revert "Service#GetSeverity(): behave as the respective IDO query of Icinga Web"
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-04-06 13:39:41 +02:00 committed by GitHub
commit eebfd0284c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) { if (host->GetState() != HostUp || !host->IsReachable()) {
severity += 1024; severity += 1024;
} else { } else {
if (IsAcknowledged()) if (IsAcknowledged())