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

This commit is contained in:
Julian Brost 2022-04-01 15:06:47 +02:00 committed by GitHub
parent 16ca076262
commit 77aec49667
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) {
if (host->GetState() != HostUp || !host->IsReachable()) {
severity += 1024;
} else {
if (IsAcknowledged())