From ec5451f62789cf8a4569de5179b512d9d78b51cd Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 7 Feb 2020 13:17:22 +0100 Subject: [PATCH] Servicestatesummary: Count services, not their states --- library/Icingadb/Model/ServicestateSummary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icingadb/Model/ServicestateSummary.php b/library/Icingadb/Model/ServicestateSummary.php index 8684a19b..9827468a 100644 --- a/library/Icingadb/Model/ServicestateSummary.php +++ b/library/Icingadb/Model/ServicestateSummary.php @@ -48,7 +48,7 @@ class ServicestateSummary extends Service . ' AND service_state.is_acknowledged = \'n\' THEN 1 ELSE 0 END)' ), 'services_total' => new Expression( - 'SUM(CASE WHEN service_state.soft_state IS NOT NULL THEN 1 ELSE 0 END)' + 'SUM(CASE WHEN service.id IS NOT NULL THEN 1 ELSE 0 END)' ), 'services_unknown_handled' => new Expression( 'SUM(CASE WHEN service_state.soft_state = 3'