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 Node List"
4 from monitor.util import diff_time
5 from time import mktime
9 <html py:layout="'sitemenu.kid'"
10 xmlns:py="http://purl.org/kid/ns#"
11 xmlns:mochi="http://www.mochi.org">
13 <div py:match="item.tag == 'content'">
15 <script type="text/javascript">
16 function nodelist_paginator(opts) { plekit_table_paginator(opts, "nodelist"); }
20 <b py:content="'BOOT: %d' % len([node for node in query if node.observed_status == 'BOOT'])"></b> |
21 <b py:content="'DOWN: %d' % len([node for node in query if node.observed_status == 'DOWN'])"></b><br/>
24 <table id="nodelist" cellpadding="0" border="0" class="plekit_table sortable-onload-2 colstyle-alt no-arrow paginationcallback-nodelist_paginator max-pages-10 paginate-25">
27 <tr class='pagesize_area'><td class='pagesize_area' colspan='10'>
28 <form class='pagesize' action='satisfy_xhtml_validator'><fieldset>
29 <input class='pagesize_input' type='text' id="nodelist_pagesize" value='25'
30 onkeyup='plekit_pagesize_set("nodelist","nodelist_pagesize", 25);'
31 size='3' maxlength='3' />
32 <label class='pagesize_label'> items/page </label>
33 <img class='reset' src="/planetlab/icons/clear.png" alt="reset visible size"
34 onmousedown='plekit_pagesize_reset("nodelist","nodelist_pagesize", 999);' />
35 </fieldset></form></td></tr>
37 <tr class='search_area'><td class='search_area' colspan='10'>
38 <div class='search'><fieldset>
39 <label class='search_label'> Search </label>
40 <input class='search_input' type='text' id='nodelist_search'
41 onkeyup='plekit_table_filter("nodelist","nodelist_search","nodelist_search_and");'
42 size='self.search_width' maxlength='256' />
44 <input id='nodelist_search_and' class='search_and'
45 type='checkbox' checked='checked'
46 onchange='plekit_table_filter("nodelist","nodelist_search","nodelist_search_and");' />
47 <img class='reset' src="/planetlab/icons/clear.png" alt="reset search"
48 onmousedown='plekit_table_filter_reset("nodelist","nodelist_search","nodelist_search_and");' />
49 </fieldset></div></td></tr>
52 <th class="sortable plekit_table">ID</th>
53 <th class="sortable plekit_table">Hostname</th>
54 <th class="sortable plekit_table">Site</th>
55 <th class="sortable plekit_table">Ping</th>
56 <th class="sortable plekit_table">SSH</th>
57 <th class="sortable plekit_table">Stat</th>
58 <th class="sortable plekit_table">pcu</th>
59 <th class="sortable plekit_table">kernel</th>
60 <th class="sortable plekit_table">BootCD</th>
61 <th class="sortable plekit_table">Last_contact</th>
65 <tr py:for="i,node in enumerate(query)">
66 ${nodewidget.display(node=node, header=None)}