diff --git a/library/nagvis-includes/GlobalBackendicingadb.php b/library/nagvis-includes/GlobalBackendicingadb.php index cc60406..27f2fe6 100644 --- a/library/nagvis-includes/GlobalBackendicingadb.php +++ b/library/nagvis-includes/GlobalBackendicingadb.php @@ -93,9 +93,7 @@ public function getHostNamesProblematic(): array $results = []; $query = Host::on($this->getDb()) ->utilize('state') - ->utilize('service') - ->utilize('service.state') - ->columns(['name', 'state.soft_state', 'service.state.soft_state']) + ->columns(['name']) ->filter( Filter::any( Filter::greaterThan('state.soft_state', 0), @@ -103,7 +101,7 @@ public function getHostNamesProblematic(): array ) ); - $query->getSelectBase()->groupBy(['name', 'host.display_name']); + $query->getSelectBase()->groupBy(['host.name', 'host.display_name']); foreach ($query as $host) { $results[] = $host->name; @@ -317,6 +315,7 @@ public function getHostMemberCounts($objects, $options, $filters) $query = ServicestateSummary::on($this->getDb()) ->utilize('state') ->utilize('host') + ->withoutColumns(['id', 'name', 'name_ci']) ->withColumns([ 'host_name' => 'host.name', 'host_nameci' => 'host.name_ci'