1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 from monitor.util import diff_time
4 from time import mktime
7 <span xmlns:py="http://purl.org/kid/ns#">
8 <span py:if="header is not None">
20 <span py:if="node is not None">
24 <td py:content="node.plc_node_stats['node_id']">node_id</td>
26 <a target="_top" href="${link('pcuview', hostname=node.hostname)}" py:content="node.hostname">your.host.org</a></td>
28 <a href="${link('pcuview', loginbase=node.loginbase)}">${node.loginbase}</a>
30 <td py:content="node.ping_status">ping</td>
31 <td py:content="node.ssh_status">ssh</td>
32 <td py:content="node.plc_node_stats['boot_state']">boot</td>
33 <td width="20%" nowrap='true' align='center' id="status-${node.pcu_short_status}">
35 <a class="info" py:if="'error' in node.pcu_short_status"
36 href="${link('pcuview', pcuid=node.plc_pcuid)}">
37 Error<span><pre>${node.pcu.reboot_trial_status}</pre></span></a>
38 <a py:if="'error' not in node.pcu_short_status and 'none' not in node.pcu_short_status"
39 href="${link('pcuview', pcuid=node.plc_pcuid)}"
40 py:content="node.pcu_short_status">Reboot Status</a>
41 <span py:if="'none' in node.pcu_short_status"
42 py:content="node.pcu_short_status">Reboot Status</span>
45 <td nowrap="true" py:content="node.kernel"></td>
46 <td nowrap="true" py:content="node.bootcd_version"></td>
47 <td id="node-${node.observed_status}" py:content="diff_time(node.plc_node_stats['last_contact'])"></td>