From 7bb9385af702f8a2a54cca84bae3b551de752537 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Fri, 7 Feb 2025 09:44:30 +0200 Subject: [PATCH] UI improvements to Server Health page --- cp/app/Controllers/ReportsController.php | 8 ++ .../views/admin/reports/serverHealth.twig | 77 +++++++++++++++---- 2 files changed, 69 insertions(+), 16 deletions(-) diff --git a/cp/app/Controllers/ReportsController.php b/cp/app/Controllers/ReportsController.php index e758ba8..f2ff97c 100644 --- a/cp/app/Controllers/ReportsController.php +++ b/cp/app/Controllers/ReportsController.php @@ -135,12 +135,16 @@ class ReportsController extends Controller $whoisStatus = $checkServiceStatus('whois'); $rdapStatus = $checkServiceStatus('rdap'); $dasStatus = $checkServiceStatus('das'); + $msgbStatus = $checkServiceStatus('msg_producer'); + $msgwStatus = $checkServiceStatus('msg_worker'); // Get log lines as strings $eppLogs = $getLogLines('epp'); $whoisLogs = $getLogLines('whois'); $rdapLogs = $getLogLines('rdap'); $dasLogs = $getLogLines('das'); + $msgbLogs = $getLogLines('msg_producer'); + $msgwLogs = $getLogLines('msg_worker'); $system = new System(); @@ -206,6 +210,10 @@ class ReportsController extends Controller 'whoisLogs' => $whoisLogs, 'rdapLogs' => $rdapLogs, 'dasLogs' => $dasLogs, + 'msgbStatus' => $msgbStatus, + 'msgwStatus' => $msgwStatus, + 'msgbLogs' => $msgbLogs, + 'msgwLogs' => $msgwLogs, ]); } diff --git a/cp/resources/views/admin/reports/serverHealth.twig b/cp/resources/views/admin/reports/serverHealth.twig index e5541f1..1689cf8 100644 --- a/cp/resources/views/admin/reports/serverHealth.twig +++ b/cp/resources/views/admin/reports/serverHealth.twig @@ -113,74 +113,97 @@ -
service epp restart
service rdap restart
service whois restart
service das restart
- {{ __('If you encounter an issue with a specific service, log in via SSH and run the appropriate command to reload it:') }} service epp restart
, service whois restart
, service rdap restart
, service das restart
-
- {{ __('If you need assistance, please contact support.') }} -
+service msg_producer restart
service msg_worker restart
{{ msgbLogs|raw }}+
{{ msgwLogs|raw }}+