Wiki-Quellcode von Servermeldungen (SaaS)
Version 16.1 von MACH formsolutions am 22.07.2024
Verstecke letzte Bearbeiter
| author | version | line-number | content |
|---|---|---|---|
| |
2.1 | 1 | = Erreichbarkeit und Wartung der Services = |
| 2 | |||
| 3 | Hier finden unsere SaaS-Kunden und Benutzer eine dynamische Anzeige der Uptime der Services und die geplanten Wartungsintervalle. | ||
| 4 | |||
| |
1.1 | 5 | {{html}} |
| |
12.1 | 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 | } | ||
| 16 | </style> | ||
| |
2.1 | 17 | <!-- Servers Status --> |
| 18 | <div> | ||
| 19 | <h2>Überblick Status</h2> | ||
| 20 | |||
| |
10.1 | 21 | <h3>Primärsysteme</h3> |
| 22 | <ul class="productive-systems-list ikiss-unordered-list"></ul> | ||
| |
2.1 | 23 | |
| |
10.1 | 24 | <h3>Sekundärsysteme</h3> |
| 25 | <ul class="customer-systems-list ikiss-unordered-list"></ul> | ||
| |
2.1 | 26 | </div> |
| |
10.1 | 27 | |
| |
2.1 | 28 | <!-- System Update --> |
| 29 | <div> | ||
| 30 | <h2>System-Updates</h2> | ||
| 31 | <p> | ||
| |
4.1 | 32 | Updates der MACH formsolutions Plattform werden grundsätzlich Montags zwischen 02:00 Uhr und 03:00 Uhr eingespielt. |
| |
2.1 | 33 | </p> |
| 34 | <h3>Nächster Updatetermin</h3> | ||
| 35 | <div> | ||
| 36 | <ul> | ||
| 37 | <li><strong><span id="plannedUpdate"></span></strong></li> | ||
| 38 | </ul> | ||
| 39 | </div> | ||
| 40 | </div> | ||
| |
10.1 | 41 | |
| |
2.1 | 42 | <!-- System Maintenance --> |
| 43 | <div> | ||
| 44 | <h2>System-Wartung</h2> | ||
| 45 | <p> | ||
| 46 | Wartungen an unserem System finden regelmäßig am letzten Donnerstag eines Monats zwischen 22:00 Uhr und 24:00 Uhr statt. | ||
| 47 | </p> | ||
| 48 | <h3>Nächster Wartungstermin</h3> | ||
| 49 | <div> | ||
| |
10.1 | 50 | <ul> |
| 51 | <li><strong><span id="plannedMaintenance"></span></strong></li> | ||
| 52 | </ul> | ||
| |
2.1 | 53 | </div> |
| 54 | </div> | ||
| 55 | |||
| |
1.1 | 56 | <script type="text/javascript"> |
| |
2.1 | 57 | function fetchData() { |
| |
7.1 | 58 | fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger') |
| |
12.1 | 59 | .then(response => response.json()) |
| |
2.1 | 60 | .then(data => { |
| 61 | const productiveSystemsList = document.querySelector('.productive-systems-list'); | ||
| 62 | const customerSystemsList = document.querySelector('.customer-systems-list'); | ||
| |
10.1 | 63 | |
| |
2.1 | 64 | data.hostStatus.forEach(host => { |
| 65 | const listItem = document.createElement('li'); | ||
| |
16.1 | 66 | listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`; |
| |
10.1 | 67 | |
| |
2.1 | 68 | if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") { |
| 69 | productiveSystemsList.appendChild(listItem); | ||
| 70 | } else { | ||
| 71 | customerSystemsList.appendChild(listItem); | ||
| 72 | } | ||
| 73 | }); | ||
| |
10.1 | 74 | |
| |
2.1 | 75 | const plannedUpdate = document.getElementById('plannedUpdate'); |
| 76 | plannedUpdate.textContent = data.plannedUpdate; | ||
| |
10.1 | 77 | |
| |
2.1 | 78 | const plannedMaintenance = document.getElementById('plannedMaintenance'); |
| 79 | plannedMaintenance.textContent = data.plannedMaintenance; | ||
| 80 | }) | ||
| 81 | .catch(error => { | ||
| |
12.1 | 82 | console.error('Error fetching data:', error); |
| |
2.1 | 83 | }); |
| 84 | } | ||
| 85 | |||
| |
10.1 | 86 | // Function to get the appropriate status text |
| |
2.1 | 87 | function getStatusText(status) { |
| 88 | switch (status) { | ||
| 89 | case 'Up': | ||
| 90 | return 'Verfügbar'; | ||
| 91 | case 'Down': | ||
| |
10.1 | 92 | return 'Beeinträchtigung'; |
| |
2.1 | 93 | case 'Under Maintenance': |
| 94 | return 'Wartung'; | ||
| 95 | default: | ||
| 96 | return ''; | ||
| 97 | } | ||
| 98 | } | ||
| 99 | |||
| 100 | // Function to get the appropriate status color class | ||
| 101 | function getStatusColor(status) { | ||
| 102 | switch (status) { | ||
| 103 | case 'Up': | ||
| 104 | return 'up'; | ||
| 105 | case 'Down': | ||
| 106 | return 'down'; | ||
| 107 | case 'Under Maintenance': | ||
| 108 | return 'maintenance'; | ||
| 109 | default: | ||
| 110 | return ''; | ||
| 111 | } | ||
| 112 | } | ||
| 113 | |||
| 114 | window.addEventListener('load', fetchData); | ||
| |
1.1 | 115 | </script> |
| 116 | {{/html}} | ||
| |
2.1 | 117 | |
| |
3.1 | 118 | = Kontakt = |
| |
2.1 | 119 | |
| |
3.1 | 120 | Bei Fragen oder Hilfestellungen zu unseren Diensten können Sie uns über den [[MACH ProForms Support>>doc:Main.10_Hilfe.WebHome]] erreichen. |