forked from tariqbuilds/linux-dash
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·381 lines (332 loc) · 13.6 KB
/
index.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Server Monitoring Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600" rel="stylesheet">
<link href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/pages/dashboard.css" rel="stylesheet">
<link href="css/odometer.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<!-- Github Fork Image-->
<a href="https://github.com/afaqurk/linux-dash"><img style="position: absolute; top: 0; right: 0; border: 0;z-index:99999999;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
<div class="navbar navbar-fixed-top" style="">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="/linux-dash/">Linux Bootstrap Dashboard </a>
<div class="nav-collapse">
</div>
<!--/.nav-collapse -->
</div>
<!-- /container -->
</div>
<!-- /navbar-inner -->
</div>
<!-- /navbar -->
<div class="subnavbar visible-desktop visible-tablet">
<div class="subnavbar-inner">
<div class="container">
<ul class="mainnav">
<li><a class="js-smoothscroll" href="#refresh-os"><i class="icon-dashboard"></i><span>General</span> </a> </li>
<li><a class="js-smoothscroll" href="#refresh-df"><i class="icon-list-alt"></i><span>Disk</span> </a> </li>
<li><a class="js-smoothscroll" href="#refresh-ps"><i class="icon-list-alt"></i><span>CPU</span> </a> </li>
<li><a class="js-smoothscroll" href="#refresh-ram"><i class="icon-list-alt"></i><span>RAM</span> </a> </li>
<li><a class="js-smoothscroll" href="#refresh-users"><i class="icon-group"></i><span>Users</span> </a> </li>
<li><a class="js-smoothscroll" href="#refresh-ispeed"><i class="icon-exchange"></i><span>Network</span> </a> </li>
</ul>
</div>
<!-- /container -->
</div>
<!-- /subnavbar-inner -->
</div>
<!-- /subnavbar -->
<div class="main">
<div class="main-inner">
<div class="container">
<div class="lead" style="text-align: center;">
<br>
<div class="btn js-refresh-info" id="refresh-all">
<i class="icon-refresh pop" rel="popover"
data-content="Click here to refresh all widgets on the page"
data-original-title="Refresh All Widgets"></i>
</div>
<br>
A simple web dashboard to monitor your server.
</div>
<div class="row">
<div class="span3">
<div class="widget widget-table action-table">
<div class="widget-header"> <i class="icon-info-sign"></i>
<h3>General Info</h3>
<div id="refresh-os" class="btn btn-mini js-refresh-info">
<i class="icon-refresh"></i> Refresh
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<br>
<div style="text-align:center;">
<b>OS:</b> <span class="" id="os-info"></span><br>
<b>Uptime:</b> <span class="" id="os-uptime"></span><br>
<b>Hostname:</b> <span class="" id="os-hostname"></span><br>
<br><br>
</div>
</div>
<!-- /widget-content -->
</div>
<!-- /widget -->
</div>
<div class="span3">
<div class="widget">
<div class="widget-header"> <i class="icon-laptop"></i>
<h3>Load average</h3>
<div id="refresh-cpu" class="btn btn-mini js-refresh-info">
<i class="icon-refresh"></i> Refresh
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<div style="text-align:center;">
<b>Number of cores:</b> <span class="lead" id="core-number">0</span>
</div>
<div class="cf big_stats">
<div class="stat">
<i class="icon-#">1 min</i>
<span class="value odometer" id="cpu-1min-per"></span> %<br/>
<span class="value" id="cpu-1min"></span>
</div>
<!-- .stat -->
<div class="stat">
<i class="icon-#">5 min</i>
<span class="value odometer" id="cpu-5min-per"></span> %<br/>
<span class="value" id="cpu-5min"></span>
</div>
<!-- .stat -->
<div class="stat">
<i class="icon-#">15 min</i>
<span class="value odometer" id="cpu-15min-per"></span> %<br/>
<span class="value" id="cpu-15min"></span>
</div>
<!-- .stat -->
</div>
</div>
<!-- /widget-content -->
</div>
<!-- /widget -->
</div>
<div class="span6">
<div class="widget widget-nopad">
<div class="widget-header">
<i class="icon-list-alt"></i>
<h3>RAM</h3>
<div id="refresh-ram" class="btn btn-mini js-refresh-info">
<i class="icon-refresh"></i> Refresh
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<div class="widget big-stats-container">
<div class="widget-content">
<div class="cf big_stats">
<div class="stat">
<i class="icon-#">Total</i>
<span class="value odometer" id="ram-total"></span> MB
</div>
<!-- .stat -->
<div class="stat">
<i class="icon-#">Used</i>
<span class="value odometer" id="ram-used"></span> MB
<br><span class="value odometer" id="ram-used-per"></span> %
</div>
<!-- .stat -->
<div class="stat">
<i class="icon-#">Free</i>
<span class="value odometer" id="ram-free"></span> MB
<br><span class="value odometer" id="ram-free-per"></span> %
</div>
<!-- .stat -->
</div>
</div>
<!-- /widget-content -->
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="span6">
<div class="widget widget-table">
<div class="widget-header"> <i class="icon-list"></i>
<h3>Disk Usage</h3>
<div id="refresh-df" class="btn btn-mini js-refresh-info">
<i class="icon-refresh"></i> Refresh
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<table id="df_dashboard" class="table table-hover table-condensed table-bordered" >
</table>
</div>
<!-- /widget-content -->
</div>
<!-- /widget -->
</div>
<div class="span6">
<div class="widget widget-table action-table">
<div class="widget-header"> <i class="icon-group"></i>
<h3>Users</h3>
<div id="refresh-users" class="btn btn-mini js-refresh-info">
<i class="icon-refresh"></i> Refresh
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<table id="users_dashboard" class="table table-hover table-bordered table-condensed" >
</table>
</div>
<!-- /widget-content -->
</div>
<!-- /widget -->
</div>
<!-- /span6 -->
</div>
<!-- /row -->
<div class="row">
<div class="span6">
<div class="widget widget-table">
<div class="widget-header"> <i class="icon-list"></i>
<h3>Software</h3>
<div id="refresh-whereis" class="btn btn-mini js-refresh-info">
<i class="icon-refresh"></i> Refresh
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<table id="whereis_dashboard" class="table table-hover table-condensed table-bordered" >
</table>
</div>
<!-- /widget-content -->
</div>
<!-- /widget -->
</div><!-- /span -->
<div class="span3">
<div class="widget widget-table">
<div class="widget-header"> <i class="icon-monitor"></i>
<h3>IP</h3>
<div id="refresh-ip" class="btn btn-mini js-refresh-info">
<i class="icon-refresh"></i> Refresh
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<table id="ip_dashboard" class="table table-hover table-condensed table-bordered" >
</table>
</div>
<!-- /widget-content -->
</div>
<!-- /widget -->
</div><!-- /span -->
<div class="span3">
<div class="widget widget-table">
<div class="widget-header"> <i class="icon-monitor"></i>
<h3>Internet Speed</h3>
<div id="refresh-ispeed" class="btn btn-mini js-refresh-info">
<i class="icon-refresh"></i> Refresh
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<div style="padding:10px; text-align: center;">
<span class="lead value odometer" style="margin-top:11px;" id="ispeed-rate">0</span>
<span class="lead">Mbps</span>
</div>
</div>
<!-- /widget-content -->
</div>
<!-- /widget -->
</div><!-- /span -->
<!-- online users widget (breaks DOM pattern) -->
<div class="span6 pull-right">
<div class="widget widget-table action-table">
<div class="widget-header"> <i class="icon-group"></i>
<h3>Online</h3>
<div id="refresh-online" class="btn btn-mini js-refresh-info">
<i class="icon-refresh"></i> Refresh
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<table id="online_dashboard" class="table table-hover table-bordered table-condensed" >
</table>
</div>
<!-- /widget-content -->
</div>
<!-- /widget -->
</div><!-- /span6 -->
</div>
<!-- /row -->
<div class="row">
<div class="span12">
<div class="widget widget-table">
<div class="widget-header"> <i class="icon-dashboard"></i>
<h3> Processes </h3>
<div id="refresh-ps" class="btn btn-mini js-refresh-info">
<i class="icon-refresh"></i> Refresh
</div>
<div class="pull-right">
<input type="text" id="filter-ps" class="widget-search" placeholder="search..." />
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<table id="ps_dashboard" class="table table-hover table-condensed table-bordered" >
</table>
</div>
<!-- /widget-content -->
</div>
<!-- /widget -->
</div>
<!-- /span -->
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /main-inner -->
</div>
<!-- /main -->
<div class="footer">
<div class="footer-inner">
<div class="container">
<div class="row">
<div class="span12"> © 2013 <a href="http://github.com/afaqurk">Afaq Tariq</a>. </div>
<!-- /span12 -->
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /footer-inner -->
</div>
<!-- /footer -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.9.4/jquery.dataTables.min.js"></script>
<script src="js/odometer.js"></script>
<script src="js/dashboard.js"></script>
<script src="js/base.js"></script>
</body>
</html>