mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-15 14:07:39 +02:00
Use service status query again for the service group summary
This commit is contained in:
parent
a3ac61c0ef
commit
754b48fb6b
@ -61,7 +61,7 @@ class ServicegroupsummaryQuery extends IdoQuery
|
|||||||
{
|
{
|
||||||
// TODO(el): Allow to switch between hard and soft service_states
|
// TODO(el): Allow to switch between hard and soft service_states
|
||||||
$subQuery = $this->createSubQuery(
|
$subQuery = $this->createSubQuery(
|
||||||
'Servicegroup',
|
'Servicestatus',
|
||||||
array(
|
array(
|
||||||
'servicegroup_alias',
|
'servicegroup_alias',
|
||||||
'servicegroup_name',
|
'servicegroup_name',
|
||||||
@ -70,6 +70,7 @@ class ServicegroupsummaryQuery extends IdoQuery
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
$subQuery->setIsSubQuery(true);
|
$subQuery->setIsSubQuery(true);
|
||||||
|
$subQuery->select()->where('sgo.name1 IS NOT NULL');
|
||||||
$this->subQuery = $subQuery;
|
$this->subQuery = $subQuery;
|
||||||
$this->select->from(array('servicesgroupsummary' => $this->subQuery), array());
|
$this->select->from(array('servicesgroupsummary' => $this->subQuery), array());
|
||||||
$this->group(array('servicegroup_name'));
|
$this->group(array('servicegroup_name'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user