added httpd/conf.d/monitorweb.conf to /etc/plc.d/monitor.init
[monitor.git] / web / MonitorWeb / monitorweb / templates / nodelist.kid
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <?python
3 layout_params['page_title'] = "Monitor Node View"
4 from monitor.util import diff_time
5 from time import mktime
6 ?>
7 <html py:layout="'sitemenu.kid'"
8       xmlns:py="http://purl.org/kid/ns#"
9           xmlns:mochi="http://www.mochi.org">
10
11   <div py:match="item.tag == 'content'">
12         <table width="100%">
13                 <thead>
14                         <tr>
15                                 <th><a href="${tg.url('node', filter='BOOT')}">Production(${fc['BOOT']})</a></th>
16                                 <th><a href="${tg.url('node', filter='DEBUG')}">Debug(${fc['DEBUG']})</a></th>
17                                 <th><a href="${tg.url('node', filter='DOWN')}">Down(${fc['DOWN']})</a></th>
18                                 <th><a href="${tg.url('node', filter='neverboot')}">Never Booted(${fc['neverboot']})</a></th>
19                                 <th><a href="${tg.url('node', filter='pending')}">Pending Reply(${fc['pending']})</a></th>
20                                 <th><a href="${tg.url('node', filter='all')}">All</a></th>
21                         </tr>
22                 </thead>
23                 <tbody>
24                 <tr>
25                 <td colspan="5">
26                 <table id="sortable_table" class="datagrid" border="1" width="100%">
27                         <thead>
28                                 <tr>
29                                         <th mochi:format="int"></th>
30                                         <th mochi:format="str">Site</th>
31                                         <th>Hostname</th>
32                                         <th>ping</th>
33                                         <!--th>ssh</th-->
34                                         <th>pcu</th>
35                                         <th>status</th>
36                                         <th>kernel</th>
37                                         <th>last_contact</th>
38                                 </tr>
39                         </thead>
40                         <tbody>
41                                 <tr py:for="i,node in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
42                                         <td></td>
43                                         <td><a href="">${node.loginbase}</a></td>
44                                   <td nowrap="true" py:content="node.hostname"></td>
45                                   <td py:content="node.ping_status"></td>
46                                   <!--td py:content="node.ssh_status"></td-->
47                                   <td id="status-${node.pcu_short_status}" py:content="node.pcu_short_status"></td>
48                                   <td py:content="node.observed_status"></td>
49                                   <td nowrap="true" py:content="node.kernel"></td>
50                                   <td py:content="diff_time(node.plc_node_stats['last_contact'])"></td>
51                                 </tr>
52                         </tbody>
53                 </table>
54                 </td>
55                 </tr>
56                 </tbody>
57         </table>
58   </div>
59
60 </html>