Änderungen von Dokument Servermeldungen (SaaS)

Zuletzt geändert von MACH ProForms GmbH am 22.07.2024

Von Version 2.1
bearbeitet von fweise
am 24.06.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 11.1
bearbeitet von MACH ProForms GmbH
am 16.07.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Dokument-Autor
... ... @@ -1,1 +1,1 @@
1 -XWiki.fweise
1 +xwiki:XWiki.Dokumentation
Inhalt
... ... @@ -2,34 +2,39 @@
2 2  
3 3  Hier finden unsere SaaS-Kunden und Benutzer eine dynamische Anzeige der Uptime der Services und die geplanten Wartungsintervalle.
4 4  
5 -{{html}}
6 - <style>
7 - .status-up {
8 - color: rgb(3, 133, 3); /* Green text color for "UP" status */
9 - }
10 - .status-down {
11 - color: rgb(187, 9, 9); /* Red text color for "DOWN" status */
12 - }
13 - .status-maintenance {
14 - color: gold; /* Gold text color for "Under Maintenance" status */
15 - }
5 +(% class="box infomessage" %)
6 +(((
7 +Der Service befindet sich derzeit im Wartungsmodus. Wir bitte um Ihr Verständnis und wir arbeiten mit Hochdruck an der Fertigstellung.
8 +)))
16 16  
17 - </style>
10 +{{html}}
11 +<style>
12 + .status-up {
13 + color: rgb(3, 133, 3); /* Green text color for "UP" status */
14 + }
15 + .status-down {
16 + color: rgb(187, 9, 9); /* Red text color for "DOWN" status */
17 + }
18 + .status-maintenance {
19 + color: gold; /* Gold text color for "Under Maintenance" status */
20 + }
21 +</style>
18 18  <!-- Servers Status -->
19 19  <div>
20 20   <h2>&Uuml;berblick Status</h2>
21 21  
22 - <h3>Prim&auml;rsysteme</h3>
23 - <ul class="productive-systems-list ikiss-unordered-list"></ul>
26 + <h3>Prim&auml;rsysteme</h3>
27 + <ul class="productive-systems-list ikiss-unordered-list"></ul>
24 24  
25 - <h3>Sekund&auml;rsysteme</h3>
26 - <ul class="customer-systems-list ikiss-unordered-list"></ul>
29 + <h3>Sekund&auml;rsysteme</h3>
30 + <ul class="customer-systems-list ikiss-unordered-list"></ul>
27 27  </div>
32 +
28 28  <!-- System Update -->
29 29  <div>
30 30   <h2>System-Updates</h2>
31 31   <p>
32 - Updates des Antragsmanagement 4.0 werden grunds&auml;tzlich Montags zwischen 02:00 Uhr und 03:00 Uhr eingespielt.
37 + Updates der MACH formsolutions Plattform werden grunds&auml;tzlich Montags zwischen 02:00 Uhr und 03:00 Uhr eingespielt.
33 33   </p>
34 34   <h3>Nächster Updatetermin</h3>
35 35   <div>
... ... @@ -38,6 +38,7 @@
38 38   </ul>
39 39   </div>
40 40  </div>
46 +
41 41  <!-- System Maintenance -->
42 42  <div>
43 43   <h2>System-Wartung</h2>
... ... @@ -46,18 +46,24 @@
46 46   </p>
47 47   <h3>Nächster Wartungstermin</h3>
48 48   <div>
49 - <ul>
50 - <li><strong><span id="plannedMaintenance"></span></strong></li>
51 - </ul>
55 + <ul>
56 + <li><strong><span id="plannedMaintenance"></span></strong></li>
57 + </ul>
52 52   </div>
53 53  </div>
54 54  
55 55  <script type="text/javascript">
56 - // Function to fetch data from api-status.php and update the HTML
57 57   function fetchData() {
58 - fetch('api-status.php')
59 - .then(response => response.json())
63 + fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger')
64 + .then(response => {
65 + if (!response.ok) {
66 + throw new Error('Network response was not ok ' + response.statusText);
67 + }
68 + return response.json();
69 + })
60 60   .then(data => {
71 + console.log('Data fetched successfully:', data); // Log the fetched data
72 +
61 61   const productiveSystemsList = document.querySelector('.productive-systems-list');
62 62   const customerSystemsList = document.querySelector('.customer-systems-list');
63 63  
... ... @@ -64,7 +64,7 @@
64 64   data.hostStatus.forEach(host => {
65 65   const listItem = document.createElement('li');
66 66   listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`;
67 -
79 +
68 68   if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") {
69 69   productiveSystemsList.appendChild(listItem);
70 70   } else {
... ... @@ -72,25 +72,24 @@
72 72   }
73 73   });
74 74  
75 - // Update Next Planned Update Date
76 76   const plannedUpdate = document.getElementById('plannedUpdate');
77 77   plannedUpdate.textContent = data.plannedUpdate;
78 - // Update Next Planned Maintenance Date
89 +
79 79   const plannedMaintenance = document.getElementById('plannedMaintenance');
80 80   plannedMaintenance.textContent = data.plannedMaintenance;
81 81   })
82 82   .catch(error => {
83 - console.error('Error fetching data:', error);
94 + console.error('Error fetching data:', error); // Improved error logging
84 84   });
85 85   }
86 86  
87 - // Function to get the appropriate status color class
98 + // Function to get the appropriate status text
88 88   function getStatusText(status) {
89 89   switch (status) {
90 90   case 'Up':
91 91   return 'Verfügbar';
92 92   case 'Down':
93 - return 'Beeintr&auml;chtigung';
104 + return 'Beeinträchtigung';
94 94   case 'Under Maintenance':
95 95   return 'Wartung';
96 96   default:
... ... @@ -112,10 +112,10 @@
112 112   }
113 113   }
114 114  
115 - // Call fetchData when the page loads
116 116   window.addEventListener('load', fetchData);
117 117  </script>
118 118  {{/html}}
119 119  
130 += Kontakt =
120 120  
121 -
132 +Bei Fragen oder Hilfestellungen zu unseren Diensten können Sie uns über den [[MACH ProForms Support>>doc:Main.10_Hilfe.WebHome]] erreichen.