diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index b08a84e3d..4eb95f7df 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -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(); } /**