From 77aec4966730d46bc305519fbd102df68e5241bd Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Fri, 1 Apr 2022 15:06:47 +0200 Subject: [PATCH] Revert "Service#GetSeverity(): behave as the respective IDO query of Icinga Web" --- lib/icinga/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/service.cpp b/lib/icinga/service.cpp index a4dc8cac2..9d3495667 100644 --- a/lib/icinga/service.cpp +++ b/lib/icinga/service.cpp @@ -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())