Service#GetSeverity(): behave as the respective IDO query of Icinga Web

which doesn't include host reachability.
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-01-27 12:21:06 +01:00 committed by GitHub
parent 185fab3761
commit ff712f6b23
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())