monitoring: Restrict service summary when viewing a host or service
refs #9009
This commit is contained in:
parent
b7afec8f3c
commit
f3b84b7ae8
|
@ -479,12 +479,9 @@ abstract class MonitoredObject implements Filterable
|
|||
*/
|
||||
public function fetchStats()
|
||||
{
|
||||
$this->stats = $this->backend->select()->from('statusSummary', array(
|
||||
$this->stats = $this->backend->select()->from('servicestatussummary', array(
|
||||
'services_total',
|
||||
'services_ok',
|
||||
'services_problem',
|
||||
'services_problem_handled',
|
||||
'services_problem_unhandled',
|
||||
'services_critical',
|
||||
'services_critical_unhandled',
|
||||
'services_critical_handled',
|
||||
|
@ -497,7 +494,7 @@ abstract class MonitoredObject implements Filterable
|
|||
'services_pending',
|
||||
))
|
||||
->where('service_host_name', $this->host_name)
|
||||
->getQuery()
|
||||
->applyFilter($this->getFilter())
|
||||
->fetchRow();
|
||||
return $this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue