From 363f6271d93b1f0f2fd0643de5ff204e7a5c53fd Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 4 Sep 2015 17:14:16 +0200 Subject: [PATCH] monitoring/detail: Show the expected next update if the host or service is not actively checked refs #8378 --- .../views/scripts/show/components/checkstatistics.phtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml index fb6a575c0..bb967b4e0 100644 --- a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml +++ b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml @@ -47,7 +47,11 @@ } } ?> state !== 99) { - echo $this->timeUntil($object->next_check); + if ((bool) $object->active_checks_enabled) { + echo $this->timeUntil($object->next_check); + } else { + echo sprintf($this->translate('expected %s'), $this->timeUntil($object->next_update)); + } } ?>