From 754b48fb6b41219469ab855c0c84046bc02f4c53 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 25 Jul 2017 13:55:05 +0200 Subject: [PATCH] Use service status query again for the service group summary --- .../Monitoring/Backend/Ido/Query/ServicegroupsummaryQuery.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupsummaryQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupsummaryQuery.php index 69876ff1f..8d1f7d865 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupsummaryQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupsummaryQuery.php @@ -61,7 +61,7 @@ class ServicegroupsummaryQuery extends IdoQuery { // TODO(el): Allow to switch between hard and soft service_states $subQuery = $this->createSubQuery( - 'Servicegroup', + 'Servicestatus', array( 'servicegroup_alias', 'servicegroup_name', @@ -70,6 +70,7 @@ class ServicegroupsummaryQuery extends IdoQuery ) ); $subQuery->setIsSubQuery(true); + $subQuery->select()->where('sgo.name1 IS NOT NULL'); $this->subQuery = $subQuery; $this->select->from(array('servicesgroupsummary' => $this->subQuery), array()); $this->group(array('servicegroup_name'));