Wiki-Quellcode von Servermeldungen (SaaS)

Version 12.1 von MACH ProForms GmbH am 16.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
MACH ProForms GmbH 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
fweise 1.1 10 {{html}}
MACH ProForms GmbH 12.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>
fweise 2.1 22 <!-- Servers Status -->
23 <div>
24 <h2>&Uuml;berblick Status</h2>
25
MACH ProForms GmbH 10.1 26 <h3>Prim&auml;rsysteme</h3>
27 <ul class="productive-systems-list ikiss-unordered-list"></ul>
fweise 2.1 28
MACH ProForms GmbH 10.1 29 <h3>Sekund&auml;rsysteme</h3>
30 <ul class="customer-systems-list ikiss-unordered-list"></ul>
fweise 2.1 31 </div>
MACH ProForms GmbH 10.1 32
fweise 2.1 33 <!-- System Update -->
34 <div>
35 <h2>System-Updates</h2>
36 <p>
MACH ProForms GmbH 4.1 37 Updates der MACH formsolutions Plattform werden grunds&auml;tzlich Montags zwischen 02:00 Uhr und 03:00 Uhr eingespielt.
fweise 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>
MACH ProForms GmbH 10.1 46
fweise 2.1 47 <!-- System Maintenance -->
48 <div>
49 <h2>System-Wartung</h2>
50 <p>
51 Wartungen an unserem System finden regelm&auml;ß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>
MACH ProForms GmbH 10.1 55 <ul>
56 <li><strong><span id="plannedMaintenance"></span></strong></li>
57 </ul>
fweise 2.1 58 </div>
59 </div>
60
fweise 1.1 61 <script type="text/javascript">
fweise 2.1 62 function fetchData() {
MACH ProForms GmbH 7.1 63 fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger')
MACH ProForms GmbH 12.1 64 .then(response => response.json())
fweise 2.1 65 .then(data => {
66 const productiveSystemsList = document.querySelector('.productive-systems-list');
67 const customerSystemsList = document.querySelector('.customer-systems-list');
MACH ProForms GmbH 10.1 68
fweise 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>`;
MACH ProForms GmbH 10.1 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 // 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);
fweise 1.1 120 </script>
121 {{/html}}
fweise 2.1 122
fweise 3.1 123 = Kontakt =
fweise 2.1 124
fweise 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.