forked from tuna/mirror-web
-
Notifications
You must be signed in to change notification settings - Fork 6
/
status.html
83 lines (82 loc) · 2.21 KB
/
status.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
---
permalink: /status/
---
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
{% include nav.html %}
<div id="status-page">
<div class="spacing hidden-xs"></div>
<div class="container">
<h3 id="server-status"> # 服务器监控 </h3>
<h4> # 网络流量 </h4>
<div class="row">
<div class="col-md-6">
<div class="thumbnail">
<img class="img-responsive" src="/CGP/graph.php?p=interface&pi=ens3&t=if_octets&h=localhost&s=86400">
</div>
</div>
</div>
<h4># 磁盘状态 </h4>
<div class="row">
<div class="col-md-6">
<div class="thumbnail">
<img src="/CGP/graph.php?p=disk&pi=dm-0&t=disk_ops&h=localhost&s=86400" class="img-responsive">
</div>
</div>
<div class="col-md-6">
<div class="thumbnail">
<img class="img-responsive" src="/CGP/graph.php?p=disk&pi=dm-0&t=disk_octets&h=localhost&s=86400">
</div>
</div>
</div>
<h4># CPU / 内存</h4>
<div class="row">
<div class="col-md-6">
<div class="thumbnail">
<img class="img-responsive" src="/CGP/graph.php?p=cpu&pi=0&t=cpu&h=localhost&s=86400">
</div>
</div>
<div class="col-md-6">
<div class="thumbnail">
<img class="img-responsive" src="/CGP/graph.php?p=memory&t=memory&h=localhost&s=86400">
</div>
</div>
</div>
<h3 id="syncing-status"># 同步状态</h3>
<div>
<div class="thead row">
<div>
<div class="col-md-2">Name</div>
<div class="col-md-2">Last Update</div>
<div class="col-md-5">Upstream</div>
<div class="col-md-1">Status</div>
<div class="col-md-2">Size</div>
</div>
</div>
<div id="mirror-list">
</div>
</div>
</div><!--/container -->
</div><!--/status -->
{% include footer.html %}
{% raw %}
<script id="template" type="x-tmpl-markup">
{{mirrors}}
<div class="status-{{status}} row">
<div class="col-md-2">{{name}}{{if is_master|falsy}}[slave]{{/if}}</div>
<div class="col-md-2">{{last_update}}</div>
<div class="col-md-5">{{upstream}}</div>
<div class="col-md-1">{{status}}</div>
<div class="col-md-2">{{size}}</div>
</div>
{{/mirrors}}
</script>
{% endraw %}
<script src="/static/js/status.js"></script>
</body>
</html>
<!--
vim: ts=2 sts=2 sw=2 noexpandtab
-->