diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupQuery.php index 62c3577f8..5d0deb64e 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupQuery.php @@ -18,6 +18,9 @@ class ServicegroupQuery extends IdoQuery 'hostgroups' => array( 'hostgroup_name' => 'hgo.name1' ), + 'hosts' => array( + 'h.host_object_id' => 's.host_object_id' + ), 'instances' => array( 'instance_name' => 'i.instance_name' ), @@ -70,6 +73,16 @@ class ServicegroupQuery extends IdoQuery ); } + /** + * Join hosts + * + * This is required to make filters work which filter by host custom variables. + */ + protected function joinHosts() + { + $this->requireVirtualTable('services'); + } + /** * Join instances */