Wiki-Quellcode von Servermeldungen (SaaS)

Zuletzt geändert von MACH ProForms GmbH am 22.07.2024

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