From 76cd8a0321528f2648f3bba207cd7a130dfb15a5 Mon Sep 17 00:00:00 2001 From: Constantin Matheis Date: Thu, 7 Mar 2019 10:30:18 +0100 Subject: [PATCH] Added Check source to Details view. refs #3687 --- modules/monitoring/application/controllers/EventController.php | 2 ++ .../Monitoring/Backend/Ido/Query/StatechangeeventQuery.php | 3 ++- .../library/Monitoring/DataView/Statechangeevent.php | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/controllers/EventController.php b/modules/monitoring/application/controllers/EventController.php index a0ac02bdc..242ddb51e 100644 --- a/modules/monitoring/application/controllers/EventController.php +++ b/modules/monitoring/application/controllers/EventController.php @@ -315,6 +315,7 @@ class EventController extends Controller 'last_hard_state' => 'statechangeevent_last_hard_state', 'output' => 'statechangeevent_output', 'long_output' => 'statechangeevent_long_output', + 'check_source' => 'statechangeevent_check_source', 'host_name', 'service_description' )) @@ -510,6 +511,7 @@ class EventController extends Controller ))), array($this->translate('Last state'), $this->state($isService, $event->last_state)), array($this->translate('Last hard state'), $this->state($isService, $event->last_hard_state)), + array($this->translate('Check source'), $event->check_source), array( $this->translate('Output'), $this->pluginOutput($event->output) . $this->pluginOutput($event->long_output) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatechangeeventQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatechangeeventQuery.php index eae41087d..18d893ffb 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatechangeeventQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatechangeeventQuery.php @@ -20,7 +20,8 @@ class StatechangeeventQuery extends IdoQuery 'statechangeevent_last_state' => 'sh.last_state', 'statechangeevent_last_hard_state' => 'sh.last_hard_state', 'statechangeevent_output' => 'sh.output', - 'statechangeevent_long_output' => 'sh.long_output' + 'statechangeevent_long_output' => 'sh.long_output', + 'statechangeevent_check_source' => 'sh.check_source' ), 'object' => array( 'host_name' => 'o.name1', diff --git a/modules/monitoring/library/Monitoring/DataView/Statechangeevent.php b/modules/monitoring/library/Monitoring/DataView/Statechangeevent.php index 14745457d..0b01aff5f 100644 --- a/modules/monitoring/library/Monitoring/DataView/Statechangeevent.php +++ b/modules/monitoring/library/Monitoring/DataView/Statechangeevent.php @@ -19,6 +19,7 @@ class Statechangeevent extends DataView 'statechangeevent_last_hard_state', 'statechangeevent_output', 'statechangeevent_long_output', + 'statechangeevent_check_source', 'host_name', 'service_description' );