From 3e02d5aff85babc3ffbfcf52313f2108e313aa23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 13:46:43 +0200 Subject: Adding upstream version 2.12.1. Signed-off-by: Daniel Baumann --- .../scripts/health/disable-notifications.phtml | 20 +++ .../application/views/scripts/health/info.phtml | 87 ++++++++++++ .../views/scripts/health/not-running.phtml | 8 ++ .../application/views/scripts/health/stats.phtml | 150 +++++++++++++++++++++ 4 files changed, 265 insertions(+) create mode 100644 modules/monitoring/application/views/scripts/health/disable-notifications.phtml create mode 100644 modules/monitoring/application/views/scripts/health/info.phtml create mode 100644 modules/monitoring/application/views/scripts/health/not-running.phtml create mode 100644 modules/monitoring/application/views/scripts/health/stats.phtml (limited to 'modules/monitoring/application/views/scripts/health') diff --git a/modules/monitoring/application/views/scripts/health/disable-notifications.phtml b/modules/monitoring/application/views/scripts/health/disable-notifications.phtml new file mode 100644 index 0000000..e8c75e5 --- /dev/null +++ b/modules/monitoring/application/views/scripts/health/disable-notifications.phtml @@ -0,0 +1,20 @@ +compact): ?> +
+ tabs->showOnlyCloseButton(); ?> +
+ +
+

+ notifications_enabled === false): ?> +
+ translate('Host and service notifications are already disabled.') ?> + programStatus->disable_notif_expire_time): ?> + translate('Notifications will be re-enabled in %s.'), + $this->timeUntil($this->programStatus->disable_notif_expire_time)); ?> + +
+ + + +
diff --git a/modules/monitoring/application/views/scripts/health/info.phtml b/modules/monitoring/application/views/scripts/health/info.phtml new file mode 100644 index 0000000..76d9ee3 --- /dev/null +++ b/modules/monitoring/application/views/scripts/health/info.phtml @@ -0,0 +1,87 @@ +runtimeVariables()->create($this->runtimevariables); +$cp = $this->checkPerformance()->create($this->checkperformance); + +if (! $this->compact): ?> +
+ tabs; ?> +
+ + +
+
+
+

translate('Process Info') ?>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
translate('Program Version') ?>programStatus->program_version + ? $this->programStatus->program_version + : $this->translate('N/A') ?>
translate('Program Start Time') ?>formatDateTime($this->programStatus->program_start_time) ?>
translate('Last Status Update'); ?>timeAgo($this->programStatus->status_update_time); ?>
translate('Last External Command Check'); ?>timeAgo($this->programStatus->last_command_check); ?>
translate('Last Log File Rotation'); ?>programStatus->last_log_rotation + ? $this->timeSince($this->programStatus->last_log_rotation) + : $this->translate('N/A') ?>
translate('Global Service Event Handler'); ?>programStatus->global_service_event_handler + ? $this->programStatus->global_service_event_handler + : $this->translate('N/A'); ?>
translate('Global Host Event Handler'); ?>programStatus->global_host_event_handler + ? $this->programStatus->global_host_event_handler + : $this->translate('N/A'); ?>
translate('Active Endpoint'); ?>programStatus->endpoint_name + ? $this->programStatus->endpoint_name + : $this->translate('N/A') ?>
translate('Active Icinga Web 2 Endpoint'); ?>translate('N/A') ?>
+ programStatus->is_currently_running === true): ?> +
+ translate( + '%1$s has been up and running with PID %2$d %3$s', + 'Last format parameter represents the time running' + ), + $this->backendName, + $this->programStatus->process_id, + $this->timeSince($this->programStatus->program_start_time)) ?> +
+ +
+ translate('Backend %s is not running'), $this->backendName) ?> +
+ +
+
+

translate('Feature Commands') ?>

+ toggleFeaturesForm ?> +
+
+
diff --git a/modules/monitoring/application/views/scripts/health/not-running.phtml b/modules/monitoring/application/views/scripts/health/not-running.phtml new file mode 100644 index 0000000..8439fc4 --- /dev/null +++ b/modules/monitoring/application/views/scripts/health/not-running.phtml @@ -0,0 +1,8 @@ +compact): ?> +
+ tabs; ?> +
+ +
+ translate('%s is currently not up and running'), $this->backendName) ?> +
diff --git a/modules/monitoring/application/views/scripts/health/stats.phtml b/modules/monitoring/application/views/scripts/health/stats.phtml new file mode 100644 index 0000000..5cfb8f9 --- /dev/null +++ b/modules/monitoring/application/views/scripts/health/stats.phtml @@ -0,0 +1,150 @@ +runtimeVariables()->create($this->runtimevariables); +$cp = $this->checkPerformance()->create($this->checkperformance); + +if (! $this->compact): ?> +
+ tabs ?> +
+ + +
+
+
+

unhandledProblems ?> translate('Unhandled Problems:') ?>

+ + + + + + + + + + + + + + + +
translate('Service Problems:') ?> + + qlink( + $this->unhandledServiceProblems, + 'monitoring/list/services?service_problem=1&service_handled=0&sort=service_severity', + null, + array('data-base-target' => '_next') + ) + ?> + +
translate('Host Problems:') ?> + + qlink( + $this->unhandledhostProblems, + 'monitoring/list/hosts?host_problem=1&host_handled=0', + null, + array('data-base-target' => '_next') + ) + ?> + +
+ +

+ stats = $hoststats ?> + render('list/components/hostssummary.phtml') ?> +

+ + + + + + + + + + + + + + + + + +
translate('Runtime Variables') ?>translate('Host Checks') ?>
translate('Total') ?>total_scheduled_hosts ?>
translate('Scheduled') ?>total_scheduled_hosts ?>
+ +

+ stats = $servicestats ?> + render('list/components/servicesummary.phtml') ?> +

+ + + + + + + + + + + + + + + + + + + + +
translate('Runtime Variables') ?>translate('Service Checks') ?>translate('Per Host') ?>
translate('Total') ?>total_services ?>average_services_per_host) ?>
translate('Scheduled') ?>total_scheduled_services ?>average_scheduled_services_per_host) ?>
+ +

translate('Active checks') ?>

+ + + + + + + + + + + + + + + + + + + + + + + +
translate('Check Performance') ?>translate('Checks') ?>translate('Latency') ?>translate('Execution time') ?>
translate('Host Checks') ?>host_active_count; ?>host_active_latency_avg) ?>shost_active_execution_avg) ?>s
translate('Service Checks') ?>service_active_count; ?>service_active_latency_avg) ?>sservice_active_execution_avg) ?>s
+ +

translate('Passive checks') ?>

+ + + + + + + + + + + + + + + + + +
translate('Check Performance') ?>translate('Passive Checks') ?>
translate('Host Checks') ?>host_passive_count ?>
translate('Service Checks') ?>service_passive_count ?>
+
+
+
-- cgit v1.2.3