2014-02-14 19:55:22 +01:00
|
|
|
<div class="pull-left">
|
2014-05-07 15:23:16 +02:00
|
|
|
<a href="#/" class="btn btn-default slide back">
|
|
|
|
<span class="fa-chevron-left"></span> Menu
|
|
|
|
</a>
|
2014-02-14 19:55:22 +01:00
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
2014-05-07 16:24:17 +02:00
|
|
|
<h1 class="view-title">Monitoring</h1>
|
2014-02-14 19:55:22 +01:00
|
|
|
<div class="br"></div>
|
|
|
|
|
2014-02-14 20:36:01 +01:00
|
|
|
{{#if status}}
|
2014-02-14 19:55:22 +01:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2014-05-07 16:24:17 +02:00
|
|
|
<h2 class="panel-title"><span class="fa-fw fa-info-circle"></span> Infos</h2>
|
2014-02-14 19:55:22 +01:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2014-05-09 11:52:21 +02:00
|
|
|
<dl class="dl-horizontal">
|
|
|
|
<dt>Hostname</dt>
|
|
|
|
<dd>{{system.infos.hostname}}</dd>
|
|
|
|
<dt>OS</dt>
|
|
|
|
<dd>{{ucwords system.infos.linux_distro}} {{system.infos.platform}} ({{system.infos.os_name}} {{system.infos.os_version}})</dd>
|
|
|
|
<dt>Uptime</dt>
|
|
|
|
<dd>{{system.uptime}}</dd>
|
|
|
|
</dl>
|
2014-02-14 19:55:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-group" id="accordion">
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h2 class="panel-title">
|
2014-05-07 16:24:17 +02:00
|
|
|
<span class="fa-fw fa-cog"></span>
|
2014-02-14 19:55:22 +01:00
|
|
|
<a data-toggle="collapse" data-parent="#accordion" href="#system">System</a>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div id="system" class="panel-collapse collapse">
|
|
|
|
<div class="panel-body row">
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
<h3>Memory</h3>
|
|
|
|
<h4>RAM</h4>
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<tr>
|
|
|
|
<td>Used</td>
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>{{humanSize system.memory.ram.used}} ({{system.memory.ram.percent}} %)</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Free</td>
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>{{humanSize system.memory.ram.free}}</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
<tr class="active">
|
|
|
|
<td>Total</td>
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>{{humanSize system.memory.ram.total}}</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h4>Swap</h4>
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<tr>
|
|
|
|
<td>Used</td>
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>{{humanSize system.memory.swap.used}} ({{system.memory.swap.percent}} %)</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Free</td>
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>{{humanSize system.memory.swap.free}}</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
<tr class="active">
|
|
|
|
<td>Total</td>
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>{{humanSize system.memory.swap.total}}</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
<h3>CPU Load</h3>
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<tr>
|
|
|
|
<td>1 min</td>
|
|
|
|
<td>{{system.cpu.load.min1}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>5 min</td>
|
|
|
|
<td>{{system.cpu.load.min5}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>15 min</td>
|
|
|
|
<td>{{system.cpu.load.min15}}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
<h3>Process</h3>
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<tr>
|
|
|
|
<td>Running</td>
|
|
|
|
<td>{{system.process.running}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Sleeping</td>
|
|
|
|
<td>{{system.process.sleeping}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="active">
|
|
|
|
<td>Total</td>
|
|
|
|
<td>{{system.process.total}}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h2 class="panel-title">
|
2014-05-07 16:24:17 +02:00
|
|
|
<span class="fa-fw fa-cloud"></span>
|
2014-02-14 19:55:22 +01:00
|
|
|
<a data-toggle="collapse" data-parent="#accordion" href="#network">Network</a>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div id="network" class="panel-collapse collapse">
|
|
|
|
<div class="panel-body">
|
|
|
|
<b>Public IP: </b>{{network.infos.public_ip}}
|
|
|
|
<br>
|
|
|
|
<b>Gateway: </b>{{network.infos.gateway}}
|
|
|
|
|
|
|
|
<h3>Local IP</h3>
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Interface</th>
|
|
|
|
<th>IPv4</th>
|
|
|
|
<th>IPv6</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each network.infos.local_ip}}
|
|
|
|
<tr>
|
|
|
|
<td>{{@key}}</td>
|
2014-03-04 21:35:55 +01:00
|
|
|
<td>{{ ipv4 }}</td>
|
|
|
|
<td>{{ ipv6 }}</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h3>Usage</h3>
|
|
|
|
{{#each network.usage}}
|
2014-02-14 20:52:42 +01:00
|
|
|
<div class="clearfix">
|
2014-02-14 19:55:22 +01:00
|
|
|
<table class="table table-condensed">
|
2014-02-18 23:18:44 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<h4>
|
2014-02-19 16:13:43 +01:00
|
|
|
{{@key}}
|
|
|
|
<small>Time since update: {{humanTime time_since_update}}</small>
|
|
|
|
</h4>
|
2014-02-18 23:18:44 +01:00
|
|
|
</th>
|
2014-02-19 16:13:43 +01:00
|
|
|
<th>Bit rate</th>
|
|
|
|
<th>Cumulative usage</th>
|
2014-02-18 23:18:44 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2014-02-19 16:13:43 +01:00
|
|
|
<td>Transmission</td>
|
2014-02-18 23:18:44 +01:00
|
|
|
<td>{{bitRate tx time_since_update}}</td>
|
|
|
|
<td>{{humanSize cumulative_tx}}</td>
|
|
|
|
</tr>
|
2014-02-19 16:13:43 +01:00
|
|
|
<tr>
|
|
|
|
<td>Reception</td>
|
|
|
|
<td>{{bitRate rx time_since_update}}</td>
|
|
|
|
<td>{{humanSize cumulative_rx}}</td>
|
2014-02-18 23:18:44 +01:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
2014-02-14 19:55:22 +01:00
|
|
|
</table>
|
2014-02-14 20:52:42 +01:00
|
|
|
</div>
|
2014-02-14 19:55:22 +01:00
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h2 class="panel-title">
|
2014-05-07 16:24:17 +02:00
|
|
|
<span class="fa-fw fa-hdd-o"></span>
|
2014-02-14 19:55:22 +01:00
|
|
|
<a data-toggle="collapse" data-parent="#accordion" href="#disk">Disk</a>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div id="disk" class="panel-collapse collapse">
|
|
|
|
<div class="panel-body">
|
|
|
|
{{#each disk}}
|
2014-02-14 20:52:42 +01:00
|
|
|
<div class="clearfix">
|
2014-02-14 19:55:22 +01:00
|
|
|
<h3>{{@key}}</h3>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<h4>Filesystem</h4>
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<tr>
|
|
|
|
<td>FS Type</td><td>{{ filesystem.fs_type }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Mount point</td><td>{{ filesystem.mnt_point }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>Size</td><td>{{humanSize filesystem.size }}</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>Used</td><td>{{humanSize filesystem.used }}</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
<tr class="active">
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>Available</td><td>{{humanSize filesystem.avail }}</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
2014-02-14 20:28:16 +01:00
|
|
|
<h4>I/O <small>Time since update: {{humanTime io.time_since_update }}</small></h4>
|
2014-02-14 19:55:22 +01:00
|
|
|
<table class="table table-condensed">
|
|
|
|
<tr>
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>Read</td><td>{{humanSize io.read_bytes }}</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-02-14 20:14:09 +01:00
|
|
|
<td>Write</td><td>{{humanSize io.write_bytes }}</td>
|
2014-02-14 19:55:22 +01:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-02-14 20:52:42 +01:00
|
|
|
</div>
|
2014-02-14 19:55:22 +01:00
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div><!-- .panel-group -->
|
|
|
|
|
2014-02-14 20:36:01 +01:00
|
|
|
{{else}}
|
|
|
|
<div class="alert alert-warning">
|
2014-05-07 15:23:16 +02:00
|
|
|
<span class="fa-exclamation-triangle"></span>
|
2014-02-14 20:36:01 +01:00
|
|
|
Monitoring is not enabled.
|
|
|
|
<br>
|
2014-03-04 21:35:55 +01:00
|
|
|
Check <a href="#/services/glances">glances</a> service status.
|
2014-02-14 20:36:01 +01:00
|
|
|
</div>
|
2014-02-14 19:55:22 +01:00
|
|
|
|
2014-02-14 22:59:49 +01:00
|
|
|
{{/if}}
|