Skip to content

Commit

Permalink
monitoring: Restrict the service status summary
Browse files Browse the repository at this point in the history
refs #9009
  • Loading branch information
lippserd committed Jun 3, 2015
1 parent 7ffa1b9 commit f479ea1
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions modules/monitoring/application/controllers/ListController.php
Expand Up @@ -199,23 +199,22 @@ public function servicesAction()
'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_critical_unhandled',
'services_ok',
'services_pending',
'services_total',
'services_unknown',
'services_unknown_unhandled',
'services_unknown_handled',
'services_pending',
))->getQuery()->fetchRow();
'services_unknown_unhandled',
'services_warning',
'services_warning_handled',
'services_warning_unhandled'
));
$this->applyRestriction('monitoring/filter/objects', $stats);
$this->view->stats = $stats->fetchRow();
}

/**
Expand Down

0 comments on commit f479ea1

Please sign in to comment.