-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
327 lines (285 loc) · 11.4 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
<!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>
<div class="navbar navbar-fixed-top" style="">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="index.html">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 href="#refresh-os"><i class="icon-dashboard"></i><span>General</span> </a> </li>
<li><a href="#refresh-df"><i class="icon-list-alt"></i><span>Disk</span> </a> </li>
<li><a href="#refresh-ps"><i class="icon-list-alt"></i><span>CPU</span> </a> </li>
<li><a href="#refresh-ram"><i class="icon-list-alt"></i><span>RAM</span> </a> </li>
<li><a href="#refresh-users"><i class="icon-group"></i><span>Users</span> </a> </li>
<li><a 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 align="center" class="lead">
<div class="btn"><i class="icon-refresh"></i></div><br>
A simple web dashboard to monitor your server.
</div>
<div class="row">
<div class="span6">
<div class="widget widget-table action-table">
<div class="widget-header"> <i class="icon-info-sign"></i>
<h3>General Info</h3>
<div class="btn btn-mini" onClick="javascript:get_os_info();spin_icon(this);" id="refresh-os">
<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="odometer" id="os-uptime"></span> Hours<br>
<b>Hostname:</b> <span class="" id="os-hostname"></span><br>
<br><br>
</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" onClick="javascript:get_ram();" class="btn btn-mini">
<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 id="big_stats" class="cf">
<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">
<div class="widget-header"> <i class="icon-list"></i>
<h3>Disk Usage</h3>
<div id="refresh-df" onClick="javascript:get_df();" class="btn btn-mini">
<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" onClick="javascript:get_users();" class="btn btn-mini">
<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 class="widget widget-table action-table">
<div class="widget-header"> <i class="icon-group"></i>
<h3>Online</h3>
<div id="refresh-online" onClick="javascript:get_online();" class="btn btn-mini">
<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="span6">
<div class="widget">
<div class="widget-header"> <i class="icon-list"></i>
<h3>Software</h3>
<div id="refresh-whereis" onClick="javascript:get_whereis();" class="btn btn-mini">
<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">
<div class="widget-header"> <i class="icon-monitor"></i>
<h3>IP</h3>
<div id="refresh-whereis" onClick="javascript:get_ip();" class="btn btn-mini">
<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">
<div class="widget-header"> <i class="icon-monitor"></i>
<h3>Internet Speed</h3>
<div id="refresh-ispeed" onClick="javascript:get_ispeed();" class="btn btn-mini">
<i class="icon-refresh"></i> Refresh
</div>
</div>
<!-- /widget-header -->
<div class="widget-content">
<div align="center" style="padding:10px;">
<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 -->
</div>
<!-- /row -->
<div class="row">
<div class="span12">
<div class="widget">
<div class="widget-header"> <i class="icon-dashboard"></i>
<h3> Processes </h3>
<div id="refresh-ps" onClick="javascript:get_ps();" class="btn btn-mini">
<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>
</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="js/base.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/magic_happens_here.js"></script>
<script src="js/base.js"></script>
</body>
</html>