params->get('host'); $icingadb = $this->params->get('icingadb'); if ($icingadb) { $host = Host::on($this->getDb()); $host->getSelectBase() ->where(['host.name = ?' => $hostName]); IcingaDbBackend::applyMonitoringRestriction($host); $rs = $host->columns('host.name')->first(); $this->params->add('name', $hostName); if ($rs !== false) { $this->redirectNow(Url::fromPath('icingadb/host')->setParams($this->params)); } } else { $query = $this->backend->select() ->from('hoststatus', array('host_name')) ->where('host_name', $hostName); if ($this->applyRestriction('monitoring/filter/objects', $query)->fetchRow() !== false) { $this->redirectNow(Url::fromPath('monitoring/host/show')->setParams($this->params)); } } $this->view->host = $hostName; } }