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'] = "MyOps Action Summary"
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'">
21 <th><a href="actionsummary?since=1">Last Day</a></th>
22 <th><a href="actionsummary?since=7">Last Week</a></th>
23 <th><a href="actionsummary?since=30">Last Month</a></th>
29 <table id="actionsummarylist" cellpadding="0" border="0" class="plekit_table sortable-onload-0 colstyle-alt no-arrow paginationcallback-actionsummarylist_paginator max-pages-10 paginate-999" >
32 <th class="sortable plekit_table">Type</th>
33 <th class="sortable plekit_table">Notice Name</th>
34 <th class="sortable plekit_table">Count</th>
38 <tr py:for="key in results.keys()">
39 <td nowrap="true" py:content="'bootman' in key and 'bootmanager' or ( 'notice' in key and 'notice' or ( 'penalty' in key and 'penalty' or 'unknown' ) ) "></td>
40 <td nowrap="true"><a href="actionlist?action_type=${key}" py:content="key"></a></td>
41 <td nowrap='true' py:content="results[key]"></td>