From ff712f6b23b1013dc85a7a6c948c4d0beffb8211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Thu, 27 Jan 2022 12:21:06 +0100 Subject: [PATCH] Service#GetSeverity(): behave as the respective IDO query of Icinga Web which doesn't include host reachability. --- 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 8f625672a..d831136bb 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 || !host->IsReachable()) { + if (host->GetState() != HostUp) { severity += 1024; } else { if (IsAcknowledged())