monitoring: Use grouping instead of distinct in the host status query

refs #9009
This commit is contained in:
Eric Lippmann 2015-06-05 11:48:33 +02:00
parent c993ee63b7
commit c08a98f6ac
1 changed files with 3 additions and 5 deletions

View File

@ -233,7 +233,7 @@ SQL;
'hgo.objecttype_id = ?', 'hgo.objecttype_id = ?',
3 3
); );
$this->distinct(); $this->group('ho.name1');
} }
/** /**
@ -322,8 +322,7 @@ SQL;
'sgo.objecttype_id = ?', 'sgo.objecttype_id = ?',
4 4
); );
$this->distinct(); $this->group('ho.name1');
$this->setUseSubqueryCount(true);
} }
/** /**
@ -348,8 +347,7 @@ SQL;
'so.objecttype_id = ?', 'so.objecttype_id = ?',
2 2
); );
$this->distinct(); $this->group('ho.name1');
$this->setUseSubqueryCount(true);
} }
/** /**