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
6 <html py:layout="'sitemenu.kid'"
7 xmlns:py="http://purl.org/kid/ns#"
8 xmlns:mochi="http://www.mochi.org">
10 <div py:match="item.tag == 'content'">
12 <table id="sub-table" border="1" width="100%">
18 <th>Slices (created / max)</th>
19 <th>Nodes (online / registered)</th>
23 <tr py:for="i,site in enumerate(sitequery)" class="${i%2 and 'odd' or 'even'}" >
24 <td nowrap="true"><a href="">${site.loginbase}</a></td>
25 <td id="site-${site.status}" py:content="site.last_changed"></td>
26 <td py:content="site.enabled"></td>
27 <td>${site.slices_used}/${site.slices_total}</td>
28 <td>${site.nodes_up} / ${site.nodes_total}</td>
33 <table id="sortable_table" class="datagrid" border="1" width="100%">
36 <th mochi:format="int"></th>
46 <tr py:for="i,node in enumerate(nodequery)" class="${i%2 and 'odd' or 'even'}" >
48 <td id="node-${node.observed_status}" nowrap="true"><a href="nodeview?hostname=${node.hostname}" py:content="node.hostname">your.host.org</a></td>
49 <td py:content="node.ping_status"></td>
50 <td id="status-${node.pcu_short_status}" py:content="node.pcu_short_status"></td>
51 <td nowrap="true" py:content="node.kernel"></td>
52 <td py:content="diff_time(node.plc_node_stats['last_contact'])"></td>