Wiki-Quellcode von Servermeldungen (SaaS)
Version 9.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 | |||
22 | </style> | ||
23 | <!-- Servers Status --> | ||
24 | <div> | ||
25 | <h2>Überblick Status</h2> | ||
26 | |||
27 | <h3>Primärsysteme</h3> | ||
28 | <ul class="productive-systems-list ikiss-unordered-list"></ul> | ||
29 | |||
30 | <h3>Sekundärsysteme</h3> | ||
31 | <ul class="customer-systems-list ikiss-unordered-list"></ul> | ||
32 | </div> | ||
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> | ||
46 | <!-- System Maintenance --> | ||
47 | <div> | ||
48 | <h2>System-Wartung</h2> | ||
49 | <p> | ||
50 | Wartungen an unserem System finden regelmäßig am letzten Donnerstag eines Monats zwischen 22:00 Uhr und 24:00 Uhr statt. | ||
51 | </p> | ||
52 | <h3>Nächster Wartungstermin</h3> | ||
53 | <div> | ||
54 | <ul> | ||
55 | <li><strong><span id="plannedMaintenance"></span></strong></li> | ||
56 | </ul> | ||
57 | </div> | ||
58 | </div> | ||
59 | |||
![]() |
1.1 | 60 | <script type="text/javascript"> |
![]() |
2.1 | 61 | function fetchData() { |
![]() |
7.1 | 62 | fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger') |
![]() |
2.1 | 63 | .then(response => response.json()) |
64 | .then(data => { | ||
65 | const productiveSystemsList = document.querySelector('.productive-systems-list'); | ||
66 | const customerSystemsList = document.querySelector('.customer-systems-list'); | ||
67 | data.hostStatus.forEach(host => { | ||
68 | const listItem = document.createElement('li'); | ||
69 | listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`; | ||
70 | if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") { | ||
71 | productiveSystemsList.appendChild(listItem); | ||
72 | } else { | ||
73 | customerSystemsList.appendChild(listItem); | ||
74 | } | ||
75 | }); | ||
76 | const plannedUpdate = document.getElementById('plannedUpdate'); | ||
77 | plannedUpdate.textContent = data.plannedUpdate; | ||
78 | const plannedMaintenance = document.getElementById('plannedMaintenance'); | ||
79 | plannedMaintenance.textContent = data.plannedMaintenance; | ||
80 | }) | ||
81 | .catch(error => { | ||
82 | console.error('Error fetching data:', error); | ||
83 | }); | ||
84 | } | ||
85 | |||
86 | // Function to get the appropriate status color class | ||
87 | function getStatusText(status) { | ||
88 | switch (status) { | ||
89 | case 'Up': | ||
90 | return 'Verfügbar'; | ||
91 | case 'Down': | ||
92 | return 'Beeinträchtigung'; | ||
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. |