mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
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:
parent
f7d2bdbc78
commit
d5d3f5548f
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user