OSDN Git Service

Some translation.
[karesansui/karesansui.git] / karesansui / templates / default / hostby1watchby1 / hostby1watchby1.part
1 <%doc>Copyright (C) 2010 HDE, Inc.</%doc>
2 <%inherit file="../include/common.part" />
3
4 <%! from karesansui.lib.template import newline2br %>
5
6 <script type="text/javascript">
7 <!--
8
9 $(document).ready(function(){
10     $(".command_detail table tbody tr:odd").addClass("odd");
11
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");
15 });
16
17 //-->
18 </script>
19 <div id="watch_detail_display">
20     <table class="detail-contents">
21         <tr>
22             <th>${_('General Information')}</th>
23             <td class="detail-separator">
24                 <img src="${ctx.homepath}/static/images/table-space.gif">
25             </td>
26             <td>
27                 <table cellspacing="0" class="border detail-sub-contents">
28                     <tr>
29                         <th>${_('ID')}</th>
30                         <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
31                         <td><pre>${watch.id |h}</pre></td>
32                     </tr>
33                     <tr>
34                         <th>${_('Name')}</th>
35                         <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
36                         <td><pre>${watch.name |h}</pre></td>
37                     </tr>
38                     <tr>
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>
42                     </tr>
43                     <tr>
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>
47                     </tr>
48                 </table>
49             </td>
50         </tr>
51
52         <tr><td colspan='3'><div class='detail-space'/></td></tr>
53
54         <tr>
55             <th>${_('Details')}</th>
56             <td class="detail-separator">
57                 <img src="${ctx.homepath}/static/images/table-space.gif">
58             </td>
59             <td>
60                 <table cellspacing="0" class="border detail-sub-contents">
61 % if watch.plugin == plugins['cpu']:
62                     <tr>
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>
66                     </tr>
67                     <tr>
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>
71                     </tr>
72
73 % elif watch.plugin == plugins['memory']:
74                     <tr>
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>
78                     </tr>
79
80 % elif watch.plugin == plugins['df']:
81                     <tr>
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>
85                     </tr>
86                     <tr>
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>
90                     </tr>
91
92 % elif watch.plugin == plugins['interface']:
93                     <tr>
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>
97                     </tr>
98                     <tr>
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>
102                     </tr>
103                     <tr>
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>
107                     </tr>
108
109 % elif watch.plugin == plugins['libvirt']:
110                     <tr>
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>
114                     </tr>
115                     <tr>
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>
119                     </tr>
120
121     % if libvirt_type == "vcpu":
122                     <tr>
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>
126                     </tr>
127
128     % elif libvirt_type == "cpu_total":
129
130     % elif libvirt_type == "disk":
131                     <tr>
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>
135                     </tr>
136                     <tr>
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>
140                     </tr>
141
142     % elif libvirt_type == "interface":
143                     <tr>
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>
147                     </tr>
148                     <tr>
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>
152                     </tr>
153     % endif
154
155 % elif watch.plugin == plugins['load']:
156                     <tr>
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>
160                     </tr>
161
162 % endif
163                     <tr>
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>
167                     </tr>
168                     <tr>
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>
172                     </tr>
173                     <tr>
174                         <!--
175                         TRANSLATORS:
176                         監視間隔(秒)
177                         -->
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>
181                     </tr>
182                 </table>
183             </td>
184         </tr>
185
186         <tr><td colspan='3'><div class='detail-space'/></td></tr>
187
188         <tr>
189             <th>${_('Action')}</th>
190             <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif"></td>
191             <td>
192                 <table cellspacing="0" class="border detail-sub-contents">
193                     <tr>
194                         <td>
195                             <div class="command_desc">
196                                 <div id="toggle_button_failure" class="command_desc_name">
197                                     <span class="failure-text">${_('Failure')}</span>
198                                 </div>
199                                 <div class="command_desc_value">
200                                     <!-- TRANSRATORS:
201                                         Threshold Value:監視でイベントをキャッチするときの、しきい値。
202                                         Script Enable:監視でイベントをキャッチしたとき、任意のスクリプトを実行するか。
203                                         Mail Enable:監視でイベントをキャッチしたとき、任意のメッセージを送信するか。
204                                     -->
205                                     <span>${_('Threshold Value')}</span>&nbsp;:&nbsp;<span class="light-text">${watch.failure_value |h}</span><span><img alt="" src="${ctx.homepath}/static/images/tag-space.gif"></span><span>${_('Enable')}</span>&nbsp;:&nbsp;<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>&nbsp;:&nbsp;<span class="light-text">${watch.is_failure_mail |h}</span>
206                                 </div>
207                             </div>
208                             <div style="clear:both"></div>
209                             <div id="toggle_value_failure" class="command_detail">
210                                 <table>
211                                     <tbody>
212                                         <tr>
213                                             <td class="command_detail_name">${_('Failure Script')}</td>
214                                             <td class="command_detail_value"><pre>${watch.failure_script |h}</pre></td>
215                                         </tr>
216                                         <tr>
217                                             <td class="command_detail_name">${_('Failure Mail Body')}</td>
218                                             <td class="command_detail_value"><pre>${watch.failure_mail_body |h}</pre></td>
219                                         </tr>
220                                     </tbody>
221                                 </table>
222                             </div>
223                         </td>
224                     </tr>
225                     <tr><td><div class='detail-space'/></td></tr>
226                     <tr>
227                         <td>
228                             <div class="command_desc">
229                                 <div id="toggle_button_warning" class="command_desc_name">
230                                     <span class="warning-text">${_('Warning')}</span>
231                                 </div>
232                                 <div class="command_desc_value">
233                                     <!-- TRANSRATORS:
234                                         Threshold Value:監視でイベントをキャッチするときの、しきい値。
235                                         Script Enable:監視でイベントをキャッチしたとき、任意のスクリプトを実行するか。
236                                         Mail Enable:監視でイベントをキャッチしたとき、任意のメッセージを送信するか。
237                                     -->
238                                     <span>${_('Threshold Value')}</span>&nbsp;:&nbsp;<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>&nbsp;:&nbsp;<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>&nbsp;:&nbsp;<span class="light-text">${watch.is_warning_mail |h}</span>
239                                 </div>
240                             </div>
241                             <div style="clear:both"></div>
242                             <div id="toggle_value_warning" class="command_detail">
243                                 <table>
244                                     <tbody>
245                                         <tr>
246                                             <td class="command_detail_name">${_('Warning Script')}</td>
247                                             <td class="command_detail_value"><pre>${watch.warning_script |h}</pre></td>
248                                         </tr>
249                                         <tr>
250                                             <td class="command_detail_name">${_('Warning Mail Body')}</td>
251                                             <td class="command_detail_value"><pre>${watch.warning_mail_body |h}</pre></td>
252                                         </tr>
253                                     </tbody>
254                                 </table>
255                             </div>
256                         </td>
257                     </tr>
258                     <tr><td><div class='detail-space'/></td></tr>
259                     <tr>
260                         <td>
261                             <div class="command_desc">
262                                 <div id="toggle_button_okay" class="command_desc_name">
263                                     <span class="okay-text">${_('Okay')}</span>
264                                 </div>
265                                 <div class="command_desc_value">
266                                     <!-- TRANSRATORS:
267                                         Script Enable:監視でイベントをキャッチしたとき、任意のスクリプトを実行するか。
268                                         Mail Enable:監視でイベントをキャッチしたとき、任意のメッセージを送信するか。
269                                     -->
270                                     <span>${_('Script Enable')}</span>&nbsp;:&nbsp;<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>&nbsp;:&nbsp;<span class="light-text">${watch.is_okay_mail |h}</span>
271                                 </div>
272                             </div>
273                             <div style="clear:both"></div>
274                             <div id="toggle_value_okay" class="command_detail">
275                                 <table>
276                                     <tbody>
277                                         <tr>
278                                             <td class="command_detail_name">${_('Okay Script')}</td>
279                                             <td class="command_detail_value"><pre>${watch.okay_script |h}</pre></td>
280                                         </tr>
281                                         <tr>
282                                             <td class="command_detail_name">${_('Okay Mail Body')}</td>
283                                             <td class="command_detail_value"><pre>${watch.okay_mail_body |h}</pre></td>
284                                         </tr>
285                                     </tbody>
286                                 </table>
287                             </div>
288                         </td>
289                     </tr>
290                 </table>
291             </td>
292         </tr>
293     </table>
294 </div>