1 <%doc>Copyright (C) 2010 HDE, Inc.</%doc>
2 <%inherit file="../include/common.part" />
4 <%! from karesansui.lib.template import newline2br %>
6 <script type="text/javascript">
9 $(document).ready(function(){
10 $(".command_detail table tbody tr:odd").addClass("odd");
12 toggle_button_event("#toggle_button_warning", "#toggle_value_warning", "close");
13 toggle_button_event("#toggle_button_failure", "#toggle_value_failure", "close");
14 toggle_button_event("#toggle_button_okay", "#toggle_value_okay", "close");
19 <div id="watch_detail_display">
20 <table class="detail-contents">
22 <th>${_('General Information')}</th>
23 <td class="detail-separator">
24 <img src="${ctx.homepath}/static/images/table-space.gif">
27 <table cellspacing="0" class="border detail-sub-contents">
30 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
31 <td><pre>${watch.id |h}</pre></td>
35 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
36 <td><pre>${watch.name |h}</pre></td>
39 <th>${_('Watch Machine')}</th>
40 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
41 <td><pre>${watch.machine.name |h}</pre></td>
44 <th>${_('Watch Target')}</th>
45 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
46 <td><pre>${watch.plugin |h}</pre></td>
52 <tr><td colspan='3'><div class='detail-space'/></td></tr>
55 <th>${_('Details')}</th>
56 <td class="detail-separator">
57 <img src="${ctx.homepath}/static/images/table-space.gif">
60 <table cellspacing="0" class="border detail-sub-contents">
61 % if watch.plugin == plugins['cpu']:
63 <th>${_('Logical CPU Number')}</th>
64 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
65 <td><pre>${plugin_selector['plugin_instance'] |h}</pre></td>
68 <th>${_('CPU Status')}</th>
69 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
70 <td><pre>${plugin_selector['type_instance'] |h}</pre></td>
73 % elif watch.plugin == plugins['memory']:
75 <th>${_('Memory Status')}</th>
76 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
77 <td><pre>${plugin_selector['type_instance'] |h}</pre></td>
80 % elif watch.plugin == plugins['df']:
82 <th>${_('Target Disk')}</th>
83 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
84 <td><pre>${plugin_selector['type_instance'] |h}</pre></td>
87 <th>${_('Disk Status')}</th>
88 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
89 <td><pre>${plugin_selector['ds'] |h}</pre></td>
92 % elif watch.plugin == plugins['interface']:
94 <th>${_('Target Interface')}</th>
95 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
96 <td><pre>${plugin_selector['type_instance'] |h}</pre></td>
99 <th>${_('Network Status')}</th>
100 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
101 <td><pre>${plugin_selector['type'] |h}</pre></td>
104 <th>${_('Direction')}</th>
105 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
106 <td><pre>${plugin_selector['ds'] |h}</pre></td>
109 % elif watch.plugin == plugins['libvirt']:
111 <th>${_('Target Virtual Machine')}</th>
112 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
113 <td><pre>${plugin_selector['host'] |h}</pre></td>
116 <th>${_('Watch Target of Virtual Machine')}</th>
117 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
118 <td><pre>${plugin_selector['type'] |h}</pre></td>
121 % if libvirt_type == "vcpu":
123 <th>${_('Target Virtual CPU')}</th>
124 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
125 <td><pre>${plugin_selector['type_instance'] |h}</pre></td>
128 % elif libvirt_type == "cpu_total":
130 % elif libvirt_type == "disk":
132 <th>${_('Target Disk')}</th>
133 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
134 <td><pre>${plugin_selector['type_instance'] |h}</pre></td>
137 <th>${_('Disk Value Type')}</th>
138 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
139 <td><pre>${plugin_selector['ds'] |h}</pre></td>
142 % elif libvirt_type == "interface":
144 <th>${_('Target Interface')}</th>
145 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
146 <td><pre>${plugin_selector['type_instance'] |h}</pre></td>
149 <th>${_('Direction')}</th>
150 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
151 <td><pre>${plugin_selector['ds'] |h}</pre></td>
155 % elif watch.plugin == plugins['load']:
157 <th>${_('Term')}</th>
158 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
159 <td><pre>${plugin_selector['ds'] |h}</pre></td>
164 <th>${_('Continuation Count')}</th>
165 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
166 <td><pre>${watch.continuation_count |h}</pre></td>
169 <th>${_('Prohibition Period')}</th>
170 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
171 <td><pre>${watch.prohibition_period |h}</pre></td>
178 <th>${_('Watch Interval (sec)')}</th>
179 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
180 <td><pre>${watch_interval |h}</pre></td>
186 <tr><td colspan='3'><div class='detail-space'/></td></tr>
189 <th>${_('Action')}</th>
190 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif"></td>
192 <table cellspacing="0" class="border detail-sub-contents">
195 <div class="command_desc">
196 <div id="toggle_button_failure" class="command_desc_name">
197 <span class="failure-text">${_('Failure')}</span>
199 <div class="command_desc_value">
201 Threshold Value:監視でイベントをキャッチするときの、しきい値。
202 Script Enable:監視でイベントをキャッチしたとき、任意のスクリプトを実行するか。
203 Mail Enable:監視でイベントをキャッチしたとき、任意のメッセージを送信するか。
205 <span>${_('Threshold Value')}</span> : <span class="light-text">${watch.failure_value |h}</span><span><img alt="" src="${ctx.homepath}/static/images/tag-space.gif"></span><span>${_('Enable')}</span> : <span class="light-text">${watch.is_failure_script |h}</span><span><img alt="" src="${ctx.homepath}/static/images/tag-space.gif"></span><span>${_('Enable')}</span> : <span class="light-text">${watch.is_failure_mail |h}</span>
208 <div style="clear:both"></div>
209 <div id="toggle_value_failure" class="command_detail">
213 <td class="command_detail_name">${_('Failure Script')}</td>
214 <td class="command_detail_value"><pre>${watch.failure_script |h}</pre></td>
217 <td class="command_detail_name">${_('Failure Mail Body')}</td>
218 <td class="command_detail_value"><pre>${watch.failure_mail_body |h}</pre></td>
225 <tr><td><div class='detail-space'/></td></tr>
228 <div class="command_desc">
229 <div id="toggle_button_warning" class="command_desc_name">
230 <span class="warning-text">${_('Warning')}</span>
232 <div class="command_desc_value">
234 Threshold Value:監視でイベントをキャッチするときの、しきい値。
235 Script Enable:監視でイベントをキャッチしたとき、任意のスクリプトを実行するか。
236 Mail Enable:監視でイベントをキャッチしたとき、任意のメッセージを送信するか。
238 <span>${_('Threshold Value')}</span> : <span class="light-text">${watch.warning_value |h}</span><span><img alt="" src="${ctx.homepath}/static/images/tag-space.gif"></span><span>${_('Script Enable')}</span> : <span class="light-text">${watch.is_warning_script |h}</span><span><img alt="" src="${ctx.homepath}/static/images/tag-space.gif"></span><span>${_('Mail Enable')}</span> : <span class="light-text">${watch.is_warning_mail |h}</span>
241 <div style="clear:both"></div>
242 <div id="toggle_value_warning" class="command_detail">
246 <td class="command_detail_name">${_('Warning Script')}</td>
247 <td class="command_detail_value"><pre>${watch.warning_script |h}</pre></td>
250 <td class="command_detail_name">${_('Warning Mail Body')}</td>
251 <td class="command_detail_value"><pre>${watch.warning_mail_body |h}</pre></td>
258 <tr><td><div class='detail-space'/></td></tr>
261 <div class="command_desc">
262 <div id="toggle_button_okay" class="command_desc_name">
263 <span class="okay-text">${_('Okay')}</span>
265 <div class="command_desc_value">
267 Script Enable:監視でイベントをキャッチしたとき、任意のスクリプトを実行するか。
268 Mail Enable:監視でイベントをキャッチしたとき、任意のメッセージを送信するか。
270 <span>${_('Script Enable')}</span> : <span class="light-text">${watch.is_okay_script |h}</span><span><img alt="" src="${ctx.homepath}/static/images/tag-space.gif"></span><span>${_('Mail Enable')}</span> : <span class="light-text">${watch.is_okay_mail |h}</span>
273 <div style="clear:both"></div>
274 <div id="toggle_value_okay" class="command_detail">
278 <td class="command_detail_name">${_('Okay Script')}</td>
279 <td class="command_detail_value"><pre>${watch.okay_script |h}</pre></td>
282 <td class="command_detail_name">${_('Okay Mail Body')}</td>
283 <td class="command_detail_value"><pre>${watch.okay_mail_body |h}</pre></td>