monitoring/list/hosts: support addcolumns parameter

At least it doesn't fail right now, this only works for services so far.
View script still needs to be adjusted, will probably be done with #6541.
This commit is contained in:
Thomas Gelf 2014-06-24 21:12:55 +02:00
parent f7d2bdbc78
commit d5d3f5548f

View File

@ -60,7 +60,7 @@ class Monitoring_ListController extends Controller
$this->addTitleTab('hosts'); $this->addTitleTab('hosts');
$this->setAutorefreshInterval(10); $this->setAutorefreshInterval(10);
$this->compactView = 'hosts-compact'; $this->compactView = 'hosts-compact';
$query = $this->backend->select()->from('hostStatus', array( $query = $this->backend->select()->from('hostStatus', array_merge(array(
'host_icon_image', 'host_icon_image',
'host_name', 'host_name',
'host_state', 'host_state',
@ -82,7 +82,7 @@ class Monitoring_ListController extends Controller
'host_passive_checks_enabled', 'host_passive_checks_enabled',
'host_current_check_attempt', 'host_current_check_attempt',
'host_max_check_attempts' 'host_max_check_attempts'
)); ), $this->extraColumns()));
$this->applyFilters($query); $this->applyFilters($query);