1 | <?php |
---|
2 | /* template head */ |
---|
3 | /* end template head */ ob_start(); /* template body */ ; |
---|
4 | if (((isset($this->scope["filters"]) ? $this->scope["filters"] : null) !== null)) { |
---|
5 | ?> |
---|
6 | <table border="0" width="100%"> |
---|
7 | <tr> |
---|
8 | <?php |
---|
9 | $_fh1_data = (isset($this->scope["filters"]) ? $this->scope["filters"] : null); |
---|
10 | if ($this->isTraversable($_fh1_data) == true) |
---|
11 | { |
---|
12 | foreach ($_fh1_data as $this->scope['filter']) |
---|
13 | { |
---|
14 | /* -- foreach start output */ |
---|
15 | ?> |
---|
16 | <td> |
---|
17 | <b><?php echo $this->scope["filter"]["filter_name"];?></b> |
---|
18 | <select name="choose_filter[<?php echo $this->scope["filter"]["filter_shortname"];?>]" OnChange="ganglia_form.submit();"> |
---|
19 | <option name=""></option> |
---|
20 | <?php |
---|
21 | $_fh0_data = (isset($this->scope["filter"]["choice"]) ? $this->scope["filter"]["choice"]:null); |
---|
22 | if ($this->isTraversable($_fh0_data) == true) |
---|
23 | { |
---|
24 | foreach ($_fh0_data as $this->scope['choice']) |
---|
25 | { |
---|
26 | /* -- foreach start output */ |
---|
27 | ?> |
---|
28 | <?php if ($this->readVar("choose_filter.".(isset($this->scope["filter"]) ? $this->scope["filter"] : null).".filter_shortname") == (isset($this->scope["choice"]) ? $this->scope["choice"] : null)) { |
---|
29 | ?> |
---|
30 | <option name="<?php echo $this->scope["choice"];?>" selected><?php echo $this->scope["choice"];?></option> |
---|
31 | <?php |
---|
32 | } |
---|
33 | else { |
---|
34 | ?> |
---|
35 | <option name="<?php echo $this->scope["choice"];?>"><?php echo $this->scope["choice"];?></option> |
---|
36 | <?php |
---|
37 | }?> |
---|
38 | |
---|
39 | <?php |
---|
40 | /* -- foreach end output */ |
---|
41 | } |
---|
42 | }?> |
---|
43 | |
---|
44 | </select> |
---|
45 | </td> |
---|
46 | <?php |
---|
47 | /* -- foreach end output */ |
---|
48 | } |
---|
49 | }?> |
---|
50 | |
---|
51 | </tr> |
---|
52 | </table> |
---|
53 | <?php |
---|
54 | }?> |
---|
55 | |
---|
56 | |
---|
57 | <table border="0" width="100%"> |
---|
58 | |
---|
59 | <tr> |
---|
60 | <td colspan="3"> </td> |
---|
61 | </tr> |
---|
62 | |
---|
63 | <?php |
---|
64 | $_fh2_data = (isset($this->scope["sources"]) ? $this->scope["sources"] : null); |
---|
65 | if ($this->isTraversable($_fh2_data) == true) |
---|
66 | { |
---|
67 | foreach ($_fh2_data as $this->scope['source']) |
---|
68 | { |
---|
69 | /* -- foreach start output */ |
---|
70 | ?> |
---|
71 | <tr> |
---|
72 | <td class=<?php echo $this->scope["source"]["class"];?> colspan="3"> |
---|
73 | <a href="<?php echo $this->scope["source"]["url"];?>"><strong><?php echo $this->scope["source"]["name"];?></strong></a> <?php echo $this->scope["source"]["alt_view"];?> |
---|
74 | |
---|
75 | </td> |
---|
76 | </tr> |
---|
77 | |
---|
78 | <tr> |
---|
79 | <?php if (((isset($this->scope["source"]["public"]) ? $this->scope["source"]["public"]:null) !== null)) { |
---|
80 | ?> |
---|
81 | <td align="LEFT" valign="TOP"> |
---|
82 | <table cellspacing="1" cellpadding="1" width="100%" border="0"> |
---|
83 | <tr><td>CPUs Total:</td><td align="left"><B><?php echo $this->scope["source"]["cpu_num"];?></B></td></tr> |
---|
84 | <tr><td width="80%">Hosts up:</td><td align="left"><B><?php echo $this->scope["source"]["num_nodes"];?></B></td></tr> |
---|
85 | <tr><td>Hosts down:</td><td align="left"><B><?php echo $this->scope["source"]["num_dead_nodes"];?></B></td></tr> |
---|
86 | <tr><td> </td></tr> |
---|
87 | <tr><td class="footer" colspan="2"><?php echo $this->scope["source"]["cluster_load"];?></td></tr> |
---|
88 | <tr><td class="footer" colspan="2"><?php echo $this->scope["source"]["cluster_util"];?></td></tr> |
---|
89 | <tr><td class="footer" colspan="2"><?php echo $this->scope["source"]["localtime"];?></td></tr> |
---|
90 | </table> |
---|
91 | </td> |
---|
92 | |
---|
93 | <?php if (((isset($this->scope["source"]["self_summary_graphs"]) ? $this->scope["source"]["self_summary_graphs"]:null) !== null)) { |
---|
94 | ?> |
---|
95 | <td> |
---|
96 | <table align="center" border="0"> |
---|
97 | <tr> |
---|
98 | |
---|
99 | <td> |
---|
100 | <a href="./graph_all_periods.php?<?php echo $this->scope["source"]["graph_url"];?>&g=load_report&z=large"> |
---|
101 | <img src="./graph.php?<?php echo $this->scope["source"]["graph_url"];?>&g=load_report&z=medium" |
---|
102 | alt="<?php echo $this->scope["source"]["name"];?> LOAD" border="0" /> |
---|
103 | </a> |
---|
104 | </td> |
---|
105 | <td> |
---|
106 | <a href="./graph_all_periods.php?<?php echo $this->scope["source"]["graph_url"];?>&g=mem_report&z=large"> |
---|
107 | <img src="./graph.php?<?php echo $this->scope["source"]["graph_url"];?>&g=mem_report&z=medium" |
---|
108 | alt="<?php echo $this->scope["source"]["name"];?> MEM" border="0" /> |
---|
109 | </a> |
---|
110 | </td> |
---|
111 | </tr> |
---|
112 | |
---|
113 | <tr> |
---|
114 | <td> |
---|
115 | <a href="./graph_all_periods.php?<?php echo $this->scope["source"]["graph_url"];?>&g=cpu_report&z=large"> |
---|
116 | <img src="./graph.php?<?php echo $this->scope["source"]["graph_url"];?>&g=cpu_report&z=medium" |
---|
117 | alt="<?php echo $this->scope["source"]["name"];?> CPU" border="0" /> |
---|
118 | </a> |
---|
119 | </td> |
---|
120 | <td> |
---|
121 | <a href="./graph_all_periods.php?<?php echo $this->scope["source"]["graph_url"];?>&g=network_report&z=large"> |
---|
122 | <img src="./graph.php?<?php echo $this->scope["source"]["graph_url"];?>&g=network_report&z=medium" |
---|
123 | alt="<?php echo $this->scope["source"]["name"];?> NETWORK" border="0" /> |
---|
124 | </a> |
---|
125 | </td> |
---|
126 | |
---|
127 | </tr> |
---|
128 | </table> |
---|
129 | </td> |
---|
130 | <?php |
---|
131 | }?> |
---|
132 | |
---|
133 | |
---|
134 | <?php if (((isset($this->scope["source"]["summary_graphs"]) ? $this->scope["source"]["summary_graphs"]:null) !== null)) { |
---|
135 | ?> |
---|
136 | <td> |
---|
137 | <table align="center" border="0"> |
---|
138 | <tr> |
---|
139 | |
---|
140 | <td> |
---|
141 | <a href="<?php echo $this->scope["source"]["url"];?>"> |
---|
142 | <img src="./graph.php?<?php echo $this->scope["source"]["graph_url"];?>&g=load_report&z=medium&r=<?php echo $this->scope["source"]["range"];?>" |
---|
143 | alt="<?php echo $this->scope["source"]["name"];?> LOAD" border="0" /> |
---|
144 | </a> |
---|
145 | </td> |
---|
146 | |
---|
147 | <td> |
---|
148 | <a href="<?php echo $this->scope["source"]["url"];?>"> |
---|
149 | <img src="./graph.php?<?php echo $this->scope["source"]["graph_url"];?>&g=network_report&z=medium&r=<?php echo $this->scope["source"]["range"];?>" |
---|
150 | alt="<?php echo $this->scope["source"]["name"];?> MEM" border="0" /> |
---|
151 | </a> |
---|
152 | </td> |
---|
153 | |
---|
154 | </tr> |
---|
155 | </td> |
---|
156 | </table> |
---|
157 | <?php |
---|
158 | }?> |
---|
159 | |
---|
160 | <?php |
---|
161 | }?> |
---|
162 | |
---|
163 | |
---|
164 | |
---|
165 | <?php if (((isset($this->scope["source"]["private"]) ? $this->scope["source"]["private"]:null) !== null)) { |
---|
166 | ?> |
---|
167 | <td align="LEFT" valign="TOP"> |
---|
168 | <table cellspacing="1" cellpadding="1" width="100%" border="0"> |
---|
169 | <tr><td>CPUs Total:</td><td align="left"><B><?php echo $this->scope["source"]["cpu_num"];?></B></td></tr> |
---|
170 | <tr><td width="80%">Nodes:</td><td align="left"><B><?php echo $this->scope["source"]["num_nodes"];?></B></td></tr> |
---|
171 | <tr><td> </td></tr> |
---|
172 | <tr><td class="footer" colspan="2"><?php echo $this->scope["source"]["localtime"];?></td></tr> |
---|
173 | </table> |
---|
174 | </td> |
---|
175 | <td colspan="2" align=center>This is a private cluster.</td> |
---|
176 | <?php |
---|
177 | }?> |
---|
178 | |
---|
179 | </tr> |
---|
180 | <?php |
---|
181 | /* -- foreach end output */ |
---|
182 | } |
---|
183 | }?> |
---|
184 | |
---|
185 | </table> |
---|
186 | |
---|
187 | <?php if (((isset($this->scope["show_snapshot"]) ? $this->scope["show_snapshot"] : null) !== null)) { |
---|
188 | ?> |
---|
189 | <table border="0" width="100%"> |
---|
190 | <tr> |
---|
191 | <td colspan="2" class="title">Snapshot of the <?php echo $this->scope["self"];?> | |
---|
192 | <font size="-1"><a href="./cluster_legend.html">Legend</a></font> |
---|
193 | </td> |
---|
194 | </tr> |
---|
195 | </table> |
---|
196 | |
---|
197 | <center> |
---|
198 | <table cellspacing="12" cellpadding="2"> |
---|
199 | <?php |
---|
200 | $_fh3_data = (isset($this->scope["snap_rows"]) ? $this->scope["snap_rows"] : null); |
---|
201 | if ($this->isTraversable($_fh3_data) == true) |
---|
202 | { |
---|
203 | foreach ($_fh3_data as $this->scope['snap_row']) |
---|
204 | { |
---|
205 | /* -- foreach start output */ |
---|
206 | ?> |
---|
207 | <tr><?php echo $this->scope["snap_row"]["names"];?></tr> |
---|
208 | <tr><?php echo $this->scope["snap_row"]["images"];?></tr> |
---|
209 | <?php |
---|
210 | /* -- foreach end output */ |
---|
211 | } |
---|
212 | }?> |
---|
213 | |
---|
214 | </table> |
---|
215 | </center> |
---|
216 | <?php |
---|
217 | }?> |
---|
218 | |
---|
219 | <?php /* end template body */ |
---|
220 | return $this->buffer . ob_get_clean(); |
---|
221 | ?> |
---|