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 @@ -
+
-
+
{{ __('EPP Server') }}:
{{ eppStatus == 'Running' ? __('Running') : __('Stopped') }} +
{{ __('Issue detected? Restart with:') }} service epp restart
-
+
-
+
{{ __('RDAP Server') }}:
{{ rdapStatus == 'Running' ? __('Running') : __('Stopped') }} +
{{ __('Issue detected? Restart with:') }} service rdap restart
-
+
-
+
{{ __('WHOIS Server') }}:
{{ whoisStatus == 'Running' ? __('Running') : __('Stopped') }} +
{{ __('Issue detected? Restart with:') }} service whois restart
-
+
-
+
{{ __('DAS Server') }}:
{{ dasStatus == 'Running' ? __('Running') : __('Stopped') }} +
{{ __('Issue detected? Restart with:') }} 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.') }} -

+
+
{{ __('Message Producer') }}:
+ + + {{ msgbStatus == 'Running' ? __('Running') : __('Stopped') }} + +
{{ __('Issue detected? Restart with:') }} service msg_producer restart
+
+
+
+
+ + +
+
+
+
+
{{ __('Message Worker') }}:
+ + + {{ msgwStatus == 'Running' ? __('Running') : __('Stopped') }} + +
{{ __('Issue detected? Restart with:') }} service msg_worker restart
+
@@ -228,6 +251,28 @@
+ +
+
+
+

{{ __('Msg_Producer Log') }}

+
+
+
{{ msgbLogs|raw }}
+
+
+
+ +
+
+
+

{{ __('Msg_Broker Log') }}

+
+
+
{{ msgwLogs|raw }}
+
+
+