Änderungen von Dokument Servermeldungen (SaaS)

Zuletzt geändert von MACH ProForms GmbH am 22.07.2024

Von Version 10.1
bearbeitet von MACH ProForms GmbH
am 16.07.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 4.1
bearbeitet von MACH ProForms GmbH
am 03.07.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -2,11 +2,6 @@
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 -(% 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 -)))
9 -
10 10  {{html}}
11 11   <style>
12 12   .status-up {
... ... @@ -18,18 +18,18 @@
18 18   .status-maintenance {
19 19   color: gold; /* Gold text color for "Under Maintenance" status */
20 20   }
16 +
21 21   </style>
22 22  <!-- Servers Status -->
23 23  <div>
24 24   <h2>&Uuml;berblick Status</h2>
25 25  
26 - <h3>Prim&auml;rsysteme</h3>
27 - <ul class="productive-systems-list ikiss-unordered-list"></ul>
22 + <h3>Prim&auml;rsysteme</h3>
23 + <ul class="productive-systems-list ikiss-unordered-list"></ul>
28 28  
29 - <h3>Sekund&auml;rsysteme</h3>
30 - <ul class="customer-systems-list ikiss-unordered-list"></ul>
25 + <h3>Sekund&auml;rsysteme</h3>
26 + <ul class="customer-systems-list ikiss-unordered-list"></ul>
31 31  </div>
32 -
33 33  <!-- System Update -->
34 34  <div>
35 35   <h2>System-Updates</h2>
... ... @@ -43,7 +43,6 @@
43 43   </ul>
44 44   </div>
45 45  </div>
46 -
47 47  <!-- System Maintenance -->
48 48  <div>
49 49   <h2>System-Wartung</h2>
... ... @@ -52,15 +52,16 @@
52 52   </p>
53 53   <h3>Nächster Wartungstermin</h3>
54 54   <div>
55 - <ul>
56 - <li><strong><span id="plannedMaintenance"></span></strong></li>
57 - </ul>
49 + <ul>
50 + <li><strong><span id="plannedMaintenance"></span></strong></li>
51 + </ul>
58 58   </div>
59 59  </div>
60 60  
61 61  <script type="text/javascript">
56 + // Function to fetch data from api-status.php and update the HTML
62 62   function fetchData() {
63 - fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger')
58 + fetch('api-status.php')
64 64   .then(response => response.json())
65 65   .then(data => {
66 66   const productiveSystemsList = document.querySelector('.productive-systems-list');
... ... @@ -69,7 +69,7 @@
69 69   data.hostStatus.forEach(host => {
70 70   const listItem = document.createElement('li');
71 71   listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`;
72 -
67 +
73 73   if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") {
74 74   productiveSystemsList.appendChild(listItem);
75 75   } else {
... ... @@ -77,9 +77,10 @@
77 77   }
78 78   });
79 79  
75 + // Update Next Planned Update Date
80 80   const plannedUpdate = document.getElementById('plannedUpdate');
81 81   plannedUpdate.textContent = data.plannedUpdate;
82 -
78 + // Update Next Planned Maintenance Date
83 83   const plannedMaintenance = document.getElementById('plannedMaintenance');
84 84   plannedMaintenance.textContent = data.plannedMaintenance;
85 85   })
... ... @@ -88,13 +88,13 @@
88 88   });
89 89   }
90 90  
91 - // Function to get the appropriate status text
87 + // Function to get the appropriate status color class
92 92   function getStatusText(status) {
93 93   switch (status) {
94 94   case 'Up':
95 95   return 'Verfügbar';
96 96   case 'Down':
97 - return 'Beeinträchtigung';
93 + return 'Beeintr&auml;chtigung';
98 98   case 'Under Maintenance':
99 99   return 'Wartung';
100 100   default:
... ... @@ -116,6 +116,7 @@
116 116   }
117 117   }
118 118  
115 + // Call fetchData when the page loads
119 119   window.addEventListener('load', fetchData);
120 120  </script>
121 121  {{/html}}
... ... @@ -123,3 +123,6 @@
123 123  = Kontakt =
124 124  
125 125  Bei Fragen oder Hilfestellungen zu unseren Diensten können Sie uns über den [[MACH ProForms Support>>doc:Main.10_Hilfe.WebHome]] erreichen.
123 +
124 +
125 +