1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 layout_params['page_title'] = "Monitor Site View"
4 from monitor.util import diff_time
7 <html py:layout="'sitemenu.kid'"
8 xmlns:py="http://purl.org/kid/ns#"
9 xmlns:mochi="http://www.mochi.org">
11 <div py:match="item.tag == 'content'">
13 <table id="sub-table" border="1" width="100%">
19 <th>Slices (created / max)</th>
20 <th>Nodes (online / registered)</th>
24 <tr py:for="i,site in enumerate(sitequery)" class="${i%2 and 'odd' or 'even'}" >
25 <td nowrap="true"><a class="ext-link" href="${plc_site_link(site.loginbase)}">
26 <span class="icon">${site.loginbase}</span></a>
28 <td id="site-${site.status}" py:content="site.last_changed"></td>
29 <td py:content="site.enabled"></td>
30 <td>${site.slices_used}/${site.slices_total}</td>
31 <td>${site.nodes_up} / ${site.nodes_total}</td>
36 <table id="sortable_table" class="datagrid" border="1" width="100%">
39 <th mochi:format="int"></th>
49 <tr py:for="i,node in enumerate(nodequery)" class="${i%2 and 'odd' or 'even'}" >
51 <td id="node-${node.observed_status}" nowrap="true"><a href="nodeview?hostname=${node.hostname}" py:content="node.hostname">your.host.org</a></td>
52 <td py:content="node.ping_status"></td>
53 <td py:if="node.pcu_short_status != 'none'" id="status-${node.pcu_short_status}">
54 <a href="pcuview?pcuid=${node.plc_node_stats['pcu_ids']}">${node.pcu_short_status}</a></td>
55 <td py:if="node.pcu_short_status == 'none'" id="status-${node.pcu_short_status}">
56 ${node.pcu_short_status}</td>
57 <td nowrap="true" py:content="node.kernel"></td>
58 <td py:content="diff_time(node.plc_node_stats['last_contact'])"></td>