blob: 8262ba9df1cd0a4be105dc3c6da03165d84e1829 (
plain)
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
|
<div id="wrapper">
<!-- Navigation -->
<header></header>
<!-- /.navbar-top-links -->
<!-- /.navbar-static-side -->
<div id="page-wrapper" style="min-height: 561px;">
<div ui-view>
<section class="content">
<div class="row">
<div class="col-md-3">
<div class="info-box bg-green">
<span class="info-box-icon"><i class="ion ion-speedometer"></i></span>
<div class="info-box-content">
<span class="info-box-text">CPU</span>
<span class="info-box-number">{{info.cpu.usage}}%</span>
<div class="progress">
<div class="progress-bar" style="width: {{info.cpu.usage}}%"></div>
</div>
<span class="progress-description">
{{info.cpu.model}}
</span>
</div>
<!-- /.info-box-content -->
</div>
</div>
<div class="col-md-3">
<div class="info-box bg-aqua">
<span class="info-box-icon"><i class="ion ion-stats-bars"></i></span>
<div class="info-box-content">
<span class="info-box-text" translate="memory"></span>
<span class="info-box-number">{{info.ram.used + " " + info.ram.units}}</span>
<div class="progress">
<div class="progress-bar" style="width: {{(info.ram.used/info.ram.total)*100}}%"></div>
</div>
<span class="progress-description">
{{info.ram.total + " " + info.ram.units}}
</span>
</div>
<!-- /.info-box-content -->
</div>
</div>
<div class="col-md-3">
<div class="info-box bg-orange" ng-click="changeDiskIndex()">
<span class="info-box-icon"><i class="ion ion-pie-graph"></i></span>
<div class="info-box-content" *ngIf="info.disk[diskIndex]">
<span class="info-box-text"><span translate="disk_info"></span> <span class="pull-right">{{info.disk[diskIndex].partition}}</span></span>
<span class="info-box-number">{{info.disk[diskIndex].used + " / " + info.disk[diskIndex].total}} - {{info.disk[diskIndex].free}} <span translate="free"></span></span>
<div class="progress">
<div class="progress-bar" style="width: {{info.disk[diskIndex].percent}}"></div>
</div>
<span class="progress-description">
{{info.disk[diskIndex].mountPoint}}
</span>
</div>
<!-- /.info-box-content -->
</div>
</div>
<div class="col-md-3">
<div class="info-box bg-blue">
<span class="info-box-icon"><i class="ion ion-network"></i></span>
<div class="info-box-content">
<span class="info-box-text" translate="network_in_out_bytes"></span>
<span class="info-box-number">{{info.network.card}}</span>
<div class="progress">
<div class="progress-bar" style="width: 50%"></div>
</div>
<span class="progress-description">
<i class="ion-arrow-up-b"></i> {{info.network.inBytes}} - <i class="ion-arrow-down-b"></i> {{info.network.outBytes}}
</span>
</div>
<!-- /.info-box-content -->
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title" translate="server_status"></h3>
<div class="row">
<div class="col-md-3">
<h4 translate="CPU_model"></h4>{{info.cpu.model}}
</div>
<div class="col-md-3">
<h4 translate="RAM"></h4>{{info.ram.total + " " + info.ram.units}}
</div>
<div class="col-md-4">
<h4 translate="og_services"></h4>
<div>
<table class="table table-responsive">
<tr>
<th translate="status"></th>
<th translate="name"></th>
<th translate="cpu"></th>
<th translate="etime"></th>
<th translate="memory"></th>
</tr>
<tr *ngFor="let service of info.ogServices">
<td>
<div class="service info">
<a href="javascript:void(0)">
<i class="fa fa-circle" ng-class="{'text-success': service.status === 'online','text-danger': service.status === 'offline'}"></i> {{service.status}}
</a>
</div>
</td>
<td>
{{service.name}}
</td>
<td>
{{service.cpu}}
</td>
<td>
{{service.etime}}
</td>
<td>
{{service.memory/1024|number:'1.2-2'}} MB
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="box-body">
<div>
<canvas id="canvas" width="1000" height="300" baseChart [chartType]="'line'" [options]="status.options" [datasets]="status.datasets" [labels]="status.xData"></canvas>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<!-- /#page-wrapper -->
</div>
|