monitoring: Restrict the service status summary

refs #9009
This commit is contained in:
Eric Lippmann 2015-06-03 14:44:36 +02:00
parent 7ffa1b93a3
commit f479ea1da8

View File

@ -199,23 +199,22 @@ class Monitoring_ListController extends Controller
'host_last_check' => $this->translate('Last Host Check')
), $query);
$this->view->stats = $this->backend->select()->from('statusSummary', array(
'services_total',
'services_ok',
'services_problem',
'services_problem_handled',
'services_problem_unhandled',
$stats = $this->backend->select()->from('servicestatussummary', array(
'services_critical',
'services_critical_unhandled',
'services_critical_handled',
'services_warning',
'services_warning_unhandled',
'services_warning_handled',
'services_unknown',
'services_unknown_unhandled',
'services_unknown_handled',
'services_critical_unhandled',
'services_ok',
'services_pending',
))->getQuery()->fetchRow();
'services_total',
'services_unknown',
'services_unknown_handled',
'services_unknown_unhandled',
'services_warning',
'services_warning_handled',
'services_warning_unhandled'
));
$this->applyRestriction('monitoring/filter/objects', $stats);
$this->view->stats = $stats->fetchRow();
}
/**