monitoring: Restrict the tactical overview

refs #9009
This commit is contained in:
Eric Lippmann 2015-06-05 12:43:24 +02:00
parent 45d883dcf1
commit b7afec8f3c
1 changed files with 4 additions and 3 deletions

View File

@ -20,8 +20,7 @@ class Monitoring_TacticalController extends MonitoringController
'url' => Url::fromRequest()
)
)->extend(new DashboardAction())->activate('tactical_overview');
$this->view->statusSummary = $this->backend->select()->from(
$stats = $this->backend->select()->from(
'statusSummary',
array(
'hosts_up',
@ -79,6 +78,8 @@ class Monitoring_TacticalController extends MonitoringController
'hosts_flapping',
'services_flapping'
)
)->getQuery()->fetchRow();
);
$this->applyRestriction('monitoring/filter/objects', $stats);
$this->view->statusSummary = $stats->fetchRow();
}
}