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