diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index def41fb57c..f655f71929 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -569,8 +569,10 @@ public function hostgroupsAction() if ($url = $this->hasBetterUrl()) { return $this->redirectNow($url); } + $this->addTitleTab('hostgroups', $this->translate('Host Groups'), $this->translate('List host groups')); $this->setAutorefreshInterval(12); + $query = $this->backend->select()->from('groupsummary', array( 'hostgroup_name', 'hostgroup_alias', @@ -602,6 +604,9 @@ public function hostgroupsAction() // service groups. We should separate them. $this->filterQuery($query); $this->view->hostgroups = $query->paginate(); + + $this->setupLimitControl(); + $this->setupPaginationControl($this->view->hostgroups); $this->setupSortControl(array( 'services_severity' => $this->translate('Severity'), 'hostgroup_alias' => $this->translate('Host Group Name'), diff --git a/modules/monitoring/application/views/scripts/list/hostgroups.phtml b/modules/monitoring/application/views/scripts/list/hostgroups.phtml index 1e3eb29acf..ef8cd78ea0 100644 --- a/modules/monitoring/application/views/scripts/list/hostgroups.phtml +++ b/modules/monitoring/application/views/scripts/list/hostgroups.phtml @@ -1,24 +1,20 @@ -compact): ?> -
= $this->translate('Last Problem'); ?> |
---|