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