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

Service#GetSeverity(): behave as the respective IDO query of Icinga Web
This commit is contained in:
Julian Brost 2022-03-08 16:34:18 +01:00 committed by GitHub
commit e09eaa3ad2
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())