Merge pull request #9196 from Icinga/Al2Klimov-patch-4

Service#GetSeverity(): behave as the respective IDO query of Icinga Web
This commit is contained in:
Julian Brost 2022-01-31 16:35:49 +01:00 committed by GitHub
commit 373ca14137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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