From 8ca6cc32b2c789a3149861159ad258f2cb9491e3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:39:39 +0200 Subject: Adding upstream version 2.11.4. Signed-off-by: Daniel Baumann --- .../scripts/show/components/checkstatistics.phtml | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml (limited to 'modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml') diff --git a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml new file mode 100644 index 0000000..e37e30a --- /dev/null +++ b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml @@ -0,0 +1,85 @@ +active_checks_enabled; +?> + + + translate('Last check') : $this->translate('Last update') ?> + +state !== 99): ?> + timeAgo($object->last_check) ?> + next_update < time()): ?> + icon('circle', $this->translate('Check result is late'), array('class' => 'icon-stateful state-critical')) ?> + + + + + + + + translate('Next check') : $this->translate('Next update') ?> + + state !== 99) { + if ($activeChecksEnabled) { + echo $this->timeUntil($object->next_check); + } else { + echo sprintf($this->translate('expected %s'), $this->timeUntil($object->next_update)); + } + } ?> + hasPermission('monitoring/command/schedule-check')) { + if ($object->getType() === $object::TYPE_SERVICE) { + echo $this->qlink( + $this->translate('Reschedule'), + 'monitoring/service/reschedule-check', + array('host' => $object->getHost()->getName(), 'service' => $object->getName()), + array( + 'class' => 'action-link', + 'data-base-target' => '_self', + 'icon' => 'calendar-empty', + 'title' => $this->translate( + 'Schedule the next active check at a different time than the current one' + ) + ) + ); + } else { + echo $this->qlink( + $this->translate('Reschedule'), + 'monitoring/host/reschedule-check', + array('host' => $object->getName()), + array( + 'class' => 'action-link', + 'data-base-target' => '_self', + 'icon' => 'calendar-empty', + 'title' => $this->translate( + 'Schedule the next active check at a different time than the current one' + ) + ) + ); + } + } ?> + + + + + translate('Check attempts') ?> + + attempt ?> + (state_type === 0 ? $this->translate('soft state') : $this->translate('hard state') ?>) + + + +check_execution_time): ?> + + translate('Check execution time') ?> + check_execution_time, 3) ?>s + + + +check_latency): ?> + + translate('Check latency') ?> + check_latency ?>s + + -- cgit v1.2.3