diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index edd072194..035a7e0ad 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -160,12 +160,12 @@ class ListController extends Controller 'service_state' => $this->translate('Current Service State'), 'service_display_name' => $this->translate('Service Name'), 'service_last_check' => $this->translate('Last Service Check'), + 'service_last_state_change' => $this->translate('Last State Change'), 'host_severity' => $this->translate('Host Severity'), 'host_state' => $this->translate('Current Host State'), 'host_display_name' => $this->translate('Hostname'), 'host_address' => $this->translate('Host Address'), - 'host_last_check' => $this->translate('Last Host Check'), - 'service_last_state_change' => $this->translate('Last State Change') + 'host_last_check' => $this->translate('Last Host Check') ), $query); $stats = $this->backend->select()->from('servicestatussummary', array( diff --git a/modules/monitoring/library/Monitoring/DataView/Servicestatus.php b/modules/monitoring/library/Monitoring/DataView/Servicestatus.php index a7f0069d5..0b03c06ad 100644 --- a/modules/monitoring/library/Monitoring/DataView/Servicestatus.php +++ b/modules/monitoring/library/Monitoring/DataView/Servicestatus.php @@ -123,6 +123,9 @@ class ServiceStatus extends DataView ), 'order' => self::SORT_DESC ), + 'service_last_state_change' => array( + 'order' => self::SORT_DESC + ), 'host_severity' => array( 'columns' => array( 'host_severity', @@ -145,9 +148,6 @@ class ServiceStatus extends DataView 'service_display_name' ), 'order' => self::SORT_ASC - ), - 'service_last_state_change' => array( - 'order' => self::SORT_DESC ) ); }