forked from HappyFaceMonitoring/HappyFaceModules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGangliaGoe.html
35 lines (33 loc) · 1001 Bytes
/
GangliaGoe.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
## -*- coding: utf-8 -*-
<%inherit file="/module_base.html" />
<%def name="content()">
<script>
function toggle(id) {
element = document.getElementById(id);
if (element.style.display == 'none')
element.style.display = '';
else
element.style.display = 'none';
}
</script>
% for host in hostlist:
<a href="javascript: void(0);" onclick="toggle('${host}');">${host}</a>
<table class="TableData" width="350" id="${host}" style="display: none">
<tr class="TableHeader">
<td>Variable</td>
<td>Value</td>
<td>Description</td>
</tr>
% for detail in host_details:
% if detail['host'] == host:
<tr>
<td>${detail['variable']}</td>
<td>${detail['value']} ${detail['unit']}</td>
<td>${detail['info']}</td>
</tr>
% endif
% endfor
</table>
<br>
% endfor
</%def>