Make hosts and services sortable by last state change

refs #9957
This commit is contained in:
Alexander A. Klimov 2015-12-18 15:48:55 +01:00
parent 643ee7b108
commit 3e36563a81

View File

@ -94,7 +94,8 @@ class ListController extends Controller
'host_state' => $this->translate('Current State'), 'host_state' => $this->translate('Current State'),
'host_display_name' => $this->translate('Hostname'), 'host_display_name' => $this->translate('Hostname'),
'host_address' => $this->translate('Address'), 'host_address' => $this->translate('Address'),
'host_last_check' => $this->translate('Last Check') 'host_last_check' => $this->translate('Last Check'),
'host_last_state_change' => $this->translate('Last State Change')
), $query); ), $query);
$summary = $query->getQuery()->queryServiceProblemSummary(); $summary = $query->getQuery()->queryServiceProblemSummary();
@ -163,7 +164,8 @@ class ListController extends Controller
'host_state' => $this->translate('Current Host State'), 'host_state' => $this->translate('Current Host State'),
'host_display_name' => $this->translate('Hostname'), 'host_display_name' => $this->translate('Hostname'),
'host_address' => $this->translate('Host Address'), 'host_address' => $this->translate('Host Address'),
'host_last_check' => $this->translate('Last Host Check') 'host_last_check' => $this->translate('Last Host Check'),
'service_last_state_change' => $this->translate('Last State Change')
), $query); ), $query);
$stats = $this->backend->select()->from('servicestatussummary', array( $stats = $this->backend->select()->from('servicestatussummary', array(