Wiki-Quellcode von Servermeldungen (SaaS)

Version 5.1 von MACH ProForms GmbH am 04.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}}
fweise 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>&Uuml;berblick Status</h2>
26
27 <h3>Prim&auml;rsysteme</h3>
28 <ul class="productive-systems-list ikiss-unordered-list"></ul>
29
30 <h3>Sekund&auml;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>
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>
46 <!-- System Maintenance -->
47 <div>
48 <h2>System-Wartung</h2>
49 <p>
50 Wartungen an unserem System finden regelm&auml;ß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
fweise 1.1 60 <script type="text/javascript">
fweise 2.1 61 // Function to fetch data from api-status.php and update the HTML
62 function fetchData() {
63 fetch('api-status.php')
64 .then(response => response.json())
65 .then(data => {
66 const productiveSystemsList = document.querySelector('.productive-systems-list');
67 const customerSystemsList = document.querySelector('.customer-systems-list');
68
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>`;
72
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 });
79
80 // Update Next Planned Update Date
81 const plannedUpdate = document.getElementById('plannedUpdate');
82 plannedUpdate.textContent = data.plannedUpdate;
83 // Update Next Planned Maintenance Date
84 const plannedMaintenance = document.getElementById('plannedMaintenance');
85 plannedMaintenance.textContent = data.plannedMaintenance;
86 })
87 .catch(error => {
88 console.error('Error fetching data:', error);
89 });
90 }
91
92 // Function to get the appropriate status color class
93 function getStatusText(status) {
94 switch (status) {
95 case 'Up':
96 return 'Verfügbar';
97 case 'Down':
98 return 'Beeintr&auml;chtigung';
99 case 'Under Maintenance':
100 return 'Wartung';
101 default:
102 return '';
103 }
104 }
105
106 // Function to get the appropriate status color class
107 function getStatusColor(status) {
108 switch (status) {
109 case 'Up':
110 return 'up';
111 case 'Down':
112 return 'down';
113 case 'Under Maintenance':
114 return 'maintenance';
115 default:
116 return '';
117 }
118 }
119
120 // Call fetchData when the page loads
121 window.addEventListener('load', fetchData);
fweise 1.1 122 </script>
123 {{/html}}
fweise 2.1 124
fweise 3.1 125 = Kontakt =
fweise 2.1 126
fweise 3.1 127 Bei Fragen oder Hilfestellungen zu unseren Diensten können Sie uns über den [[MACH ProForms Support>>doc:Main.10_Hilfe.WebHome]] erreichen.
128
129
MACH ProForms GmbH 5.1 130