From c77658ca1ade57a6afaa0a9a36c1fb40c8b526f9 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Mon, 13 Nov 2017 18:49:23 +0100 Subject: [PATCH] Add metadata-checks to XML-result --- templates/monitor.xml.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/monitor.xml.php b/templates/monitor.xml.php index 61b9466d..ddf979a6 100644 --- a/templates/monitor.xml.php +++ b/templates/monitor.xml.php @@ -7,6 +7,7 @@ $store = $this->data['store']; $state = $this->data['overall']; $authsources = $this->data['authsources']; +$metadata = $this->data['metadata']; $health_info = $this->data['health_info']; $protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0'); @@ -76,6 +77,19 @@ } } +foreach ($metadata as $entityId => $entity_metadata) { + foreach ($entity_metadata as $check) { + list($health, $category, $subject, $summary) = $check; + list($health_state, $health_color) = $health_info[$health]; + + $output .= ''; + $output .= '' . $subject . ''; + $output .= '' . $health_state . ''; + $output .= '' . $summary . ''; + $output .= ''; + } +} + $output .= ""; $output .= "";