182 lines
9.0 KiB
HTML
182 lines
9.0 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
|
<title>Hosts Info</title>
|
|
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="{{ STATIC_PREFIX }}assets/css/Bootstrap-4---Table-Fixed-Header.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container py-5">
|
|
<div class="col ">
|
|
<h3 class="text-center">Host Detail</h4>
|
|
<hr>
|
|
<div class="tableFixHead">
|
|
<table class="table">
|
|
<thead class="thead-dark">
|
|
<tr>
|
|
<th scope="col">S.No.</th>
|
|
<th scope="col">Host Name</th>
|
|
<th scope="col">CPUs<br>(Total / Free)</th>
|
|
<th scope="col">Memory(MiB)<br>(Total / Free)</th>
|
|
<th scope="col">Status</th>
|
|
<th scope="col">URI</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="table-body"></tbody>
|
|
|
|
<!--tr id="${data.hostname}">
|
|
<th scope="row">1</th>
|
|
<td>CentOS-8-Demo-a-1</td>
|
|
<td>4 / 3</td>
|
|
<td>3800 / 2800</td>
|
|
<td id="host-stat" class="text-success"><b>Alive</b></td>
|
|
<td>qemu:///system</td>
|
|
</tr>
|
|
|
|
<tr id="${data.hostname}">
|
|
<th scope="row">2</th>
|
|
<td>CentOS-8-Demo-b-2</td>
|
|
<td>4 / 2</td>
|
|
<td>3800 / 3800</td>
|
|
<td id="host-stat" class="text-success"><b>Alive</b></td>
|
|
<td>qemu+ssh:///system/something/user</td>
|
|
</tr>
|
|
|
|
<tr id="${data.hostname}">
|
|
<th scope="row">3</th>
|
|
<td>CentOS-8-Demo-g-0</td>
|
|
<td>4 / 2</td>
|
|
<td>3800 / 2726</td>
|
|
<td id="host-stat" class="text-secondary"><b>Dead</b></td>
|
|
<td>qemu:///system</td>
|
|
</tr>
|
|
|
|
<tr id="${data.hostname}">
|
|
<th scope="row">4</th>
|
|
<td>Win2k19-Demo-gz-30</td>
|
|
<td>4 / 2</td>
|
|
<td>3800 / 2726</td>
|
|
<td id="host-stat" class="text-secondary"><b>Dead</b></td>
|
|
<td>qemu+ssh://pool@check2.homedevops/system</td>
|
|
</tr>
|
|
|
|
<tr id="${data.hostname}">
|
|
<th scope="row">5</th>
|
|
<td>Linux-20-04-rc-302321</td>
|
|
<td>8 / 5</td>
|
|
<td>8800 / 6726</td>
|
|
<td id="host-stat" class="text-success"><b>Alive</b></td>
|
|
<td>qemu:///system</td>
|
|
</tr>
|
|
|
|
<tr id="${data.hostname}">
|
|
<th scope="row">6</th>
|
|
<td>Win2k19-Demo-gz-30</td>
|
|
<td>4 / 2</td>
|
|
<td>3800 / 2726</td>
|
|
<td id="host-stat" class="text-secondary"><b>Dead</b></td>
|
|
<td>qemu+ssh://pool@reserve.homedevops/system</td>
|
|
</tr>
|
|
|
|
<tr id="${data.hostname}">
|
|
<th scope="row">7</th>
|
|
<td>Win2k19-Demo-gz-30</td>
|
|
<td>4 / 2</td>
|
|
<td>3800 / 2726</td>
|
|
<td id="host-stat" class="text-success"><b>Alive</b></td>
|
|
<td>qemu:///system</td>
|
|
</tr>
|
|
|
|
<tr id="${data.hostname}">
|
|
<th scope="row">8</th>
|
|
<td>Win2k19-Demo-gz-30</td>
|
|
<td>4 / 2</td>
|
|
<td>3800 / 2726</td>
|
|
<td id="host-stat" class="text-secondary"><b>Dead</b></td>
|
|
<td>qemu+ssh://pool@check3.homedevops/system</td>
|
|
</tr-->
|
|
|
|
{% if host_data %}
|
|
{% for data in host_data %}
|
|
<tr id="${{ data.hostname }}">
|
|
<th scope="row">{{ data.sn }}</th>
|
|
<td>{{ data.hostname }}</td>
|
|
<td>{{ data.cpu.total }} / {{ data.cpu.free }}</td>
|
|
<td>{{ data.mem.total }} / {{ data.mem.free }}</td>
|
|
<td id="host-stat" class="{{ "text-success" if data.status=="Alive" else "text-secondary" }}"><b>{{ data.status }}</b></td>
|
|
<td>{{ data.uri }}</td>
|
|
</tr>
|
|
<tr id="${{ data.hostname }}">
|
|
<th scope="row">{{ data.sn }}</th>
|
|
<td>{{ data.hostname }}</td>
|
|
<td>{{ data.cpu.total }} / {{ data.cpu.free }}</td>
|
|
<td>{{ data.mem.total }} / {{ data.mem.free }}</td>
|
|
<td id="host-stat" class="{{ "text-success" if data.status=="Alive" else "text-secondary" }}"><b>{{ data.status }}</b></td>
|
|
<td>{{ data.uri }}</td>
|
|
</tr>
|
|
<tr id="${{ data.hostname }}">
|
|
<th scope="row">{{ data.sn }}</th>
|
|
<td>{{ data.hostname }}</td>
|
|
<td>{{ data.cpu.total }} / {{ data.cpu.free }}</td>
|
|
<td>{{ data.mem.total }} / {{ data.mem.free }}</td>
|
|
<td id="host-stat" class="{{ "text-success" if data.status=="Alive" else "text-secondary" }}"><b>{{ data.status }}</b></td>
|
|
<td>{{ data.uri }}</td>
|
|
</tr>
|
|
<tr id="${{ data.hostname }}">
|
|
<th scope="row">{{ data.sn }}</th>
|
|
<td>{{ data.hostname }}</td>
|
|
<td>{{ data.cpu.total }} / {{ data.cpu.free }}</td>
|
|
<td>{{ data.mem.total }} / {{ data.mem.free }}</td>
|
|
<td id="host-stat" class="{{ "text-success" if data.status=="Alive" else "text-secondary" }}"><b>{{ data.status }}</b></td>
|
|
<td>{{ data.uri }}</td>
|
|
</tr>
|
|
<tr id="${{ data.hostname }}">
|
|
<th scope="row">{{ data.sn }}</th>
|
|
<td>{{ data.hostname }}</td>
|
|
<td>{{ data.cpu.total }} / {{ data.cpu.free }}</td>
|
|
<td>{{ data.mem.total }} / {{ data.mem.free }}</td>
|
|
<td id="host-stat" class="{{ "text-success" if data.status=="Alive" else "text-secondary" }}"><b>{{ data.status }}</b></td>
|
|
<td>{{ data.uri }}</td>
|
|
</tr>
|
|
<tr id="${{ data.hostname }}">
|
|
<th scope="row">{{ data.sn }}</th>
|
|
<td>{{ data.hostname }}</td>
|
|
<td>{{ data.cpu.total }} / {{ data.cpu.free }}</td>
|
|
<td>{{ data.mem.total }} / {{ data.mem.free }}</td>
|
|
<td id="host-stat" class="{{ "text-success" if data.status=="Alive" else "text-secondary" }}"><b>{{ data.status }}</b></td>
|
|
<td>{{ data.uri }}</td>
|
|
</tr>
|
|
<tr id="${{ data.hostname }}">
|
|
<th scope="row">{{ data.sn }}</th>
|
|
<td>{{ data.hostname }}</td>
|
|
<td>{{ data.cpu.total }} / {{ data.cpu.free }}</td>
|
|
<td>{{ data.mem.total }} / {{ data.mem.free }}</td>
|
|
<td id="host-stat" class="{{ "text-success" if data.status=="Alive" else "text-secondary" }}"><b>{{ data.status }}</b></td>
|
|
<td>{{ data.uri }}</td>
|
|
</tr>
|
|
<tr id="${{ data.hostname }}">
|
|
<th scope="row">{{ data.sn }}</th>
|
|
<td>{{ data.hostname }}</td>
|
|
<td>{{ data.cpu.total }} / {{ data.cpu.free }}</td>
|
|
<td>{{ data.mem.total }} / {{ data.mem.free }}</td>
|
|
<td id="host-stat" class="{{ "text-success" if data.status=="Alive" else "text-secondary" }}"><b>{{ data.status }}</b></td>
|
|
<td>{{ data.uri }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="assets/js/jquery.min.js"></script>
|
|
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
|
|
</body>
|
|
|
|
</html> |