From 2624c7f328d379c99965b708fe3a44e2c92d48dc Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 18 Dec 2015 15:48:55 +0100 Subject: [PATCH] Sort hosts and services descending by last state change refs #9957 --- modules/monitoring/library/Monitoring/DataView/Hoststatus.php | 2 +- .../monitoring/library/Monitoring/DataView/Servicestatus.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/DataView/Hoststatus.php b/modules/monitoring/library/Monitoring/DataView/Hoststatus.php index 220ce2226..c284a76fb 100644 --- a/modules/monitoring/library/Monitoring/DataView/Hoststatus.php +++ b/modules/monitoring/library/Monitoring/DataView/Hoststatus.php @@ -117,7 +117,7 @@ class HostStatus extends DataView 'order' => self::SORT_ASC ), 'host_last_state_change' => array( - 'order' => self::SORT_ASC + 'order' => self::SORT_DESC ) ); } diff --git a/modules/monitoring/library/Monitoring/DataView/Servicestatus.php b/modules/monitoring/library/Monitoring/DataView/Servicestatus.php index 389bc9ae0..a7f0069d5 100644 --- a/modules/monitoring/library/Monitoring/DataView/Servicestatus.php +++ b/modules/monitoring/library/Monitoring/DataView/Servicestatus.php @@ -145,6 +145,9 @@ class ServiceStatus extends DataView 'service_display_name' ), 'order' => self::SORT_ASC + ), + 'service_last_state_change' => array( + 'order' => self::SORT_DESC ) ); }