diff --git a/library/Icinga/Data/Db/Connection.php b/library/Icinga/Data/Db/Connection.php index 1c8f9a226..c01721fc6 100644 --- a/library/Icinga/Data/Db/Connection.php +++ b/library/Icinga/Data/Db/Connection.php @@ -57,7 +57,8 @@ class Connection implements DatasourceInterface $adapter = 'Pdo_Mysql'; $drv_options[\PDO::MYSQL_ATTR_INIT_COMMAND] = "SET SESSION SQL_MODE='STRICT_ALL_TABLES,NO_ZERO_IN_DATE," - . "NO_ZERO_DATE,NO_ENGINE_SUBSTITUTION';"; + ."NO_ZERO_IN_DATE,ANSI,TRADITIONAL,ONLY_FULL_GROUP_BY," + . "NO_ENGINE_SUBSTITUTION';"; // Not using ONLY_FULL_GROUP_BY as of performance impact // TODO: NO_ZERO_IN_DATE as been added with 5.1.11. Is it // ignored by other versions? diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index 500660967..75f4b9ae3 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -37,8 +37,10 @@ class Monitoring_ListController extends ModuleActionController 'host_handled', 'host_last_state_change', 'host_notifications_enabled', - 'host_problems' - // 'host_comment_count' + 'host_problems', + 'host_action_url', + 'host_notes_url', + 'host_last_comment' ) ); @@ -54,20 +56,11 @@ class Monitoring_ListController extends ModuleActionController } } - $this->view->hosts->getQuery()->group('host_id'); + //$this->view->hosts->getQuery()->group('host_id'); if ($this->_getParam('dump') === 'sql') { echo '
' . htmlspecialchars(wordwrap($this->view->hosts->getQuery()->dump())) . ''; exit; } - // TODO: Get rid of "preserve" - $preserve = array(); - if ($this->_getParam('sort')) { - $preserve['sort'] = $this->view->sort = $this->_getParam('sort'); - } - if ($this->_getParam('backend')) { - $preserve['backend'] = $this->_getParam('backend'); - } - $this->view->preserve = $preserve; if ($this->_getParam('view') === 'compact') { $this->_helper->viewRenderer('hosts_compact'); diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index f50cc8acf..b24f5f876 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -7,7 +7,7 @@ use Icinga\Web\ModuleActionController; use Icinga\Web\Hook; use Icinga\Monitoring\Object\Host; use Icinga\Monitoring\Object\Service; - +use Icinga\Application\Benchmark; /** * Class Monitoring_ShowController * diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index 8695a2fe7..acac94638 100644 --- a/modules/monitoring/application/views/scripts/list/hosts.phtml +++ b/modules/monitoring/application/views/scripts/list/hosts.phtml @@ -6,11 +6,9 @@ $viewHelper = $this->getHelper('MonitoringState'); $trimArea = $this->getHelper('Trim'); ?>