From 044a15d113396af890ab4f9d6e551c0ad21afe12 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 9 Apr 2015 14:29:26 +0200 Subject: [PATCH] Alertsummary: Do not fetch more columns than necessary.. --- .../controllers/AlertsummaryController.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/modules/monitoring/application/controllers/AlertsummaryController.php b/modules/monitoring/application/controllers/AlertsummaryController.php index 22c7035d9..e6b99c8a4 100644 --- a/modules/monitoring/application/controllers/AlertsummaryController.php +++ b/modules/monitoring/application/controllers/AlertsummaryController.php @@ -210,12 +210,7 @@ class Monitoring_AlertsummaryController extends Controller $query = $this->backend->select()->from( 'notification', array( - 'host', - 'service', - 'notification_output', - 'notification_contact', - 'notification_start_time', - 'notification_state' + 'notification_start_time' ) ); @@ -265,17 +260,7 @@ class Monitoring_AlertsummaryController extends Controller $query = $this->backend->select()->from( 'eventHistory', array( - 'host_name', - 'service_description', - 'object_type', - 'timestamp', - 'state', - 'attempt', - 'max_attempts', - 'output', - 'type', - 'host', - 'service' + 'timestamp' ) );