diff --git a/www/include/monitoring/status/HostGroups/xml/hostGroupXML.php b/www/include/monitoring/status/HostGroups/xml/hostGroupXML.php index 2f46ae2d747..a73b18ec7c6 100644 --- a/www/include/monitoring/status/HostGroups/xml/hostGroupXML.php +++ b/www/include/monitoring/status/HostGroups/xml/hostGroupXML.php @@ -114,7 +114,7 @@ $rq1 .= $searchStr . "GROUP BY hg.name, h.state"; } else { - $rq1 = "SELECT hg.name as alias, h.state, count(h.host_id) AS nb " . + $rq1 = "SELECT hg.name as alias, h.state, count(DISTINCT h.host_id) AS nb " . "FROM centreon_acl acl, hosts_hostgroups hhg, hosts h, hostgroups hg " . "WHERE hg.hostgroup_id = hhg.hostgroup_id " . "AND hhg.host_id = h.host_id " .