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

Service#GetSeverity(): behave as the respective IDO query of Icinga Web
This commit is contained in:
Julian Brost 2022-03-07 09:24:13 +01:00 committed by GitHub
commit 9e0459e5e1
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();
ObjectLock hlock (host);
if (host->GetState() != HostUp || !host->IsReachable()) {
if (host->GetState() != HostUp) {
severity += 1024;
} else {
if (IsAcknowledged())