Änderungen von Dokument Servermeldungen (SaaS)
Zuletzt geändert von MACH ProForms GmbH am 22.07.2024
Von Version 15.1
bearbeitet von MACH ProForms GmbH
am 22.07.2024
am 22.07.2024
Änderungskommentar:
Es gibt keinen Kommentar für diese Version
Auf Version 4.1
bearbeitet von MACH ProForms GmbH
am 03.07.2024
am 03.07.2024
Änderungskommentar:
Es gibt keinen Kommentar für diese Version
Zusammenfassung
-
Seiteneigenschaften (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- Seiteneigenschaften
-
- Inhalt
-
... ... @@ -13,18 +13,18 @@ 13 13 .status-maintenance { 14 14 color: gold; /* Gold text color for "Under Maintenance" status */ 15 15 } 16 + 16 16 </style> 17 17 <!-- Servers Status --> 18 18 <div> 19 19 <h2>Überblick Status</h2> 20 20 21 - <h3>Primärsysteme</h3> 22 - <ul class="productive-systems-list ikiss-unordered-list"></ul> 22 + <h3>Primärsysteme</h3> 23 + <ul class="productive-systems-list ikiss-unordered-list"></ul> 23 23 24 - <h3>Sekundärsysteme</h3> 25 - <ul class="customer-systems-list ikiss-unordered-list"></ul> 25 + <h3>Sekundärsysteme</h3> 26 + <ul class="customer-systems-list ikiss-unordered-list"></ul> 26 26 </div> 27 - 28 28 <!-- System Update --> 29 29 <div> 30 30 <h2>System-Updates</h2> ... ... @@ -38,7 +38,6 @@ 38 38 </ul> 39 39 </div> 40 40 </div> 41 - 42 42 <!-- System Maintenance --> 43 43 <div> 44 44 <h2>System-Wartung</h2> ... ... @@ -47,15 +47,16 @@ 47 47 </p> 48 48 <h3>Nächster Wartungstermin</h3> 49 49 <div> 50 - 51 - 52 - 49 + <ul> 50 + <li><strong><span id="plannedMaintenance"></span></strong></li> 51 + </ul> 53 53 </div> 54 54 </div> 55 55 56 56 <script type="text/javascript"> 56 + // Function to fetch data from api-status.php and update the HTML 57 57 function fetchData() { 58 - fetch(' https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger')58 + fetch('api-status.php') 59 59 .then(response => response.json()) 60 60 .then(data => { 61 61 const productiveSystemsList = document.querySelector('.productive-systems-list'); ... ... @@ -63,8 +63,8 @@ 63 63 64 64 data.hostStatus.forEach(host => { 65 65 const listItem = document.createElement('li'); 66 - listItem.innerHTML = `<span style="color:red;" class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`;67 - 66 + listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`; 67 + 68 68 if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") { 69 69 productiveSystemsList.appendChild(listItem); 70 70 } else { ... ... @@ -72,9 +72,10 @@ 72 72 } 73 73 }); 74 74 75 + // Update Next Planned Update Date 75 75 const plannedUpdate = document.getElementById('plannedUpdate'); 76 76 plannedUpdate.textContent = data.plannedUpdate; 77 - 78 + // Update Next Planned Maintenance Date 78 78 const plannedMaintenance = document.getElementById('plannedMaintenance'); 79 79 plannedMaintenance.textContent = data.plannedMaintenance; 80 80 }) ... ... @@ -83,13 +83,13 @@ 83 83 }); 84 84 } 85 85 86 - // Function to get the appropriate status text87 + // Function to get the appropriate status color class 87 87 function getStatusText(status) { 88 88 switch (status) { 89 89 case 'Up': 90 90 return 'Verfügbar'; 91 91 case 'Down': 92 - return 'Beeintr ächtigung';93 + return 'Beeinträchtigung'; 93 93 case 'Under Maintenance': 94 94 return 'Wartung'; 95 95 default: ... ... @@ -111,6 +111,7 @@ 111 111 } 112 112 } 113 113 115 + // Call fetchData when the page loads 114 114 window.addEventListener('load', fetchData); 115 115 </script> 116 116 {{/html}} ... ... @@ -118,3 +118,6 @@ 118 118 = Kontakt = 119 119 120 120 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 +