-
Notifications
You must be signed in to change notification settings - Fork 0
/
SERVER.html
145 lines (127 loc) · 3.79 KB
/
SERVER.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Server Health Monitor</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #000; /* Dark black */
color: #fff; /* White */
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
header, footer {
background-color: #000; /* Dark black */
color: #fff; /* White */
text-align: center;
padding: 10px;
width: 100%;
box-sizing: border-box;
}
section {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
box-sizing: border-box;
padding: 20px;
text-align: left;
background: url('https://images8.alphacoders.com/706/706494.jpg') center/cover no-repeat fixed;
}
h1 {
color: #fff; /* White */
font-weight: bold;
font-size: 24px;
}
p.description {
color: #fff; /* White */
font-size: 16px;
margin-bottom: 20px;
}
button {
padding: 12px 24px; /* Adjusted padding */
font-size: 16px;
cursor: pointer;
background-color: #000; /* Black */
color: #fff; /* White */
border: none;
border-radius: 5px;
margin-bottom: 20px;
transition: background-color 0.3s, transform 0.3s;
box-sizing: border-box;
}
button:hover {
background-color: #222; /* Slightly lighter black */
transform: scale(1.05);
}
.server-info {
background-color: #000; /* Dark black */
padding: 20px;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
max-width: 600px;
box-sizing: border-box;
}
.server-info:hover {
transform: scale(1.05);
}
.button-container {
display: flex;
flex-direction: column;
align-items: flex-end;
width: 100%;
margin-top: 20px;
}
p {
text-align: left;
margin-bottom: 10px;
}
</style>
</head>
<body>
<header>
<h1>SERVER HEALTH MONITORING AND STATISTICS</h1>
</header>
<section>
<p class="description">Discovering server health information and keeping track of it to gain real-time and historical server health status updates.</p>
<button id="startButton">Start Monitoring</button>
<div class="server-info">
<h2>Previous Server health statistics</h2>
<p>Server 1: All systems are operational. CPU usage: 20%, Memory: 60%, Disk: 80%</p>
<p>Server 2: Disk space is running low. CPU usage: 40%, Memory: 70%, Disk: 95%</p>
<p>Server 3: CPU usage is high. CPU usage: 90%, Memory: 50%, Disk: 75%</p>
</div>
<div class="button-container">
<button onclick="openInNewTab('http://localhost:5001')">Server 1</button>
<button onclick="openInNewTab('http://localhost:5002')">Server 2</button>
<button onclick="openInNewTab('http://localhost:5003')">Server 3</button>
<button onclick="openInNewTab('http://127.0.0.1:5000/server_health')">Health</button>
</div>
</section>
<footer>
<p>© 2023 Server Health Monitor</p>
</footer>
<script>
document.getElementById('startButton').addEventListener('click', function() {
openInNewTab('http://localhost:5000');
openInNewTab('http://localhost:5001');
openInNewTab('http://localhost:5002');
openInNewTab('http://localhost:5003');
});
function openInNewTab(url) {
var win = window.open(url, '_blank');
win.focus();
}
</script>
</body>
</html>