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 View"
4 from monitor.util import diff_time
5 from monitor import config
6 from time import mktime
9 def zabbix_event_ack_link(eventid):
10 return "http://" + config.MONITOR_HOSTNAME + "/zabbix/acknow.php?eventid=" + str(eventid)
13 <html py:layout="'sitemenu.kid'"
14 xmlns:py="http://purl.org/kid/ns#"
15 xmlns:mochi="http://www.mochi.org">
17 <div py:match="item.tag == 'content'">
22 <th><a href="${tg.url('action', filter='active')}">Not Acknowledged(${fc['active']})</a></th>
23 <th><a href="${tg.url('action', filter='acknowledged')}">Acknowledged(${fc['acknowledged']})</a></th>
24 <th><a href="${tg.url('action', filter='all')}">All(${fc['all']})</a></th>
30 <table id="sortable_table" class="datagrid" border="1" width="100%">
33 <th mochi:format="int"></th>
34 <th mochi:format="str">Site</th>
36 <th>Issue (severity)</th>
38 <th>Notes (acknowledged)</th>
43 <tr py:for="i,node in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
45 <td><a href="${link('pcuview', loginbase=node[0])}">${node[0]}</a></td>
46 <td nowrap="true" py:content="node[1]"></td>
47 <td nowrap='true' id="severity-${node[3]}" py:content="node[2]"></td>
48 <td nowrap='true' py:content="diff_time(int(node[4]))"></td>
56 <!-- NOTE: only one of the next two columns will be displayed. -->
57 <td py:if="val"><a href="${zabbix_event_ack_link(node[5])}">Provide Ack</a></td>
58 <td py:if="not val" py:content="node[5]">Message from user</td>
59 <td py:if="not val"><a href="${zabbix_event_ack_link(node[6])}">Add</a></td>