histogram: Make histograms crash less
[ninja.git] / application / views / extinfo / performance.php
blob5dc062fa8d8c4bef6450ee3231a5046e8f0a8692
1 <?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
3 <style>
4 table td {
5 padding: 6px 4px;
8 table caption {
9 font-size: 110%;
10 font-weight: 600;
12 </style>
14 <div>
15 <table>
16 <caption><?php echo _('Services actively checked') ?></caption>
17 <tr>
18 <th style="width: 40%"><?php echo _('Time frame') ?></th>
19 <th><?php echo _('Services checked') ?></th>
20 </tr>
21 <tr class="even">
22 <td>&le; 1 <?php echo _('minute') ?></td>
23 <td><?php echo $svc_active_1min ?> (<?php echo $svc_active_1min_perc ?> %)</td>
24 </tr>
25 <tr class="odd">
26 <td>&le; 5 <?php echo _('minutes') ?></td>
27 <td><?php echo $svc_active_5min ?> (<?php echo $svc_active_5min_perc ?> %)</td>
28 </tr>
29 <tr class="even">
30 <td>&le; 15 <?php echo _('minutes') ?></td>
31 <td><?php echo $svc_active_15min ?> (<?php echo $svc_active_15min_perc ?> %)</td>
32 </tr>
33 <tr class="odd">
34 <td>&le; 1 <?php echo _('hour') ?></td>
35 <td><?php echo $svc_active_1hour ?> (<?php echo $svc_active_1hour_perc ?> %)</td>
36 </tr>
37 <tr class="even">
38 <td><?php echo _('Since program start') ?>&nbsp;&nbsp;</td>
39 <td><?php echo $svc_active_start ?> (<?php echo $svc_active_start_perc ?> %)</td>
40 </tr>
41 </table>
42 <br />
43 <table>
44 <tr>
45 <th style="width: 40%"><?php echo _('Metric') ?></th>
46 <th style="width: 20%"><?php echo _('Min.') ?></th>
47 <th style="width: 20%"><?php echo _('Max.') ?></th>
48 <th style="width: 20%"><?php echo _('Average') ?></th>
49 </tr>
50 <tr class="even">
51 <td><?php echo _('Check execution Time') ?></td>
52 <td><?php echo $min_service_execution_time ?> <?php echo _('sec') ?></td>
53 <td><?php echo $max_service_execution_time ?> <?php echo _('sec') ?></td>
54 <td><?php echo $svc_average_execution_time ?> <?php echo _('sec') ?></td>
55 </tr>
56 <tr class="odd">
57 <td><?php echo _('Check latency') ?></td>
58 <td><?php echo $min_service_latency ?> <?php echo _('sec') ?></td>
59 <td><?php echo $max_service_latency ?> <?php echo _('sec') ?></td>
60 <td><?php echo $average_service_latency ?> <?php echo _('sec') ?></td>
61 </tr>
62 <tr class="even">
63 <td><?php echo _('Percent state change') ?></td>
64 <td><?php echo $min_service_percent_change_a ?> %</td>
65 <td><?php echo $max_service_percent_change_a ?> %</td>
66 <td><?php echo $average_service_percent_change ?> %</td>
67 </tr>
68 </table>
69 </div>
71 <div>
72 <table>
73 <caption><?php echo _('Services passively checked') ?></caption>
74 <tr>
75 <th style="width: 40%"><?php echo _('Time frame') ?></th>
76 <th><?php echo _('Services checked') ?></th>
77 </tr>
78 <tr class="even">
79 <td>&le; 1 <?php echo _('minute') ?></td>
80 <td><?php echo $svc_passive_1min ?> (<?php echo $svc_passive_1min_perc ?> %)</td>
81 </tr>
82 <tr class="odd">
83 <td>&le; 5 <?php echo _('minutes') ?></td>
84 <td><?php echo $svc_passive_5min ?> (<?php echo $svc_passive_5min_perc ?> %)</td>
85 </tr>
86 <tr class="even">
87 <td>&le; 15 <?php echo _('minutes') ?></td>
88 <td><?php echo $svc_passive_15min ?> (<?php echo $svc_passive_15min_perc ?> %)</td>
89 </tr>
90 <tr class="odd">
91 <td>&le; 1 <?php echo _('hour') ?></td>
92 <td><?php echo $svc_passive_1hour ?> (<?php echo $svc_passive_1hour_perc ?> %)</td>
93 </tr>
94 <tr class="even">
95 <td><?php echo _('Since program start') ?></td>
96 <td><?php echo $svc_passive_start ?> (<?php echo $svc_passive_start_perc ?> %)
97 </td>
98 </tr>
99 </table>
100 <br />
101 <table>
102 <tr>
103 <th style="width: 40%"><?php echo _('Metric') ?></th>
104 <th style="width: 20%"><?php echo _('Min.') ?></th>
105 <th style="width: 20%"><?php echo _('Max.') ?></th>
106 <th style="width: 20%"><?php echo _('Average') ?></th>
107 </tr>
108 <tr class="even">
109 <td><?php echo _('Percent state change') ?>&nbsp;&nbsp;</td>
110 <td><?php echo $min_service_percent_change_b ?> %</td>
111 <td><?php echo $max_service_percent_change_b ?> %</td>
112 <td><?php echo $average_service_percent_change ?> %</td>
113 </tr>
114 </table>
115 </div>
117 <div>
118 <table>
119 <caption><?php echo _('Hosts actively checked') ?></caption>
120 <tr>
121 <th style="width: 40%"><?php echo _('Time frame') ?></th>
122 <th><?php echo _('Hosts checked') ?></th>
123 </tr>
124 <tr class="even">
125 <td>&le; 1 <?php echo _('minute') ?></td>
126 <td><?php echo $hst_active_1min ?> (<?php echo $hst_active_1min_perc ?> %)</td>
127 </tr>
128 <tr class="odd">
129 <td>&le; 5 <?php echo _('minutes') ?></td>
130 <td><?php echo $hst_active_5min ?> (<?php echo $hst_active_5min_perc ?> %)</td>
131 </tr>
132 <tr class="even">
133 <td>&le; 15 <?php echo _('minutes') ?></td>
134 <td><?php echo $hst_active_15min ?> (<?php echo $hst_active_15min_perc ?> %)</td>
135 </tr>
136 <tr class="odd">
137 <td>&le; 1 <?php echo _('hour') ?></td>
138 <td><?php echo $hst_active_1hour ?> (<?php echo $hst_active_1hour_perc ?> %)</td>
139 </tr>
140 <tr class="even">
141 <td><?php echo _('Since program start') ?></td>
142 <td><?php echo $hst_active_start ?> (<?php echo $hst_active_start_perc ?> %)</td>
143 </tr>
144 </table>
145 <br />
146 <table>
147 <tr>
148 <th style="width: 40%"><?php echo _('Metric') ?></th>
149 <th style="width: 20%"><?php echo _('Min.') ?></th>
150 <th style="width: 20%"><?php echo _('Max.') ?></th>
151 <th style="width: 20%"><?php echo _('Average') ?></th>
152 </tr>
153 <tr class="even">
154 <td><?php echo _('Check execution Time') ?></td>
155 <td><?php echo $min_host_execution_time ?> <?php echo _('sec') ?></td>
156 <td><?php echo $max_host_execution_time ?> <?php echo _('sec') ?></td>
157 <td><?php echo $average_host_execution_time ?> <?php echo _('sec') ?></td>
158 </tr>
159 <tr class="odd">
160 <td><?php echo _('Check latency') ?></td>
161 <td><?php echo $min_host_latency ?> <?php echo _('sec') ?></td>
162 <td><?php echo $max_host_latency ?> <?php echo _('sec') ?></td>
163 <td><?php echo $average_host_latency ?> <?php echo _('sec') ?></td>
164 </tr>
165 <tr class="even">
166 <td><?php echo _('Percent state change') ?></td>
167 <td><?php echo $min_host_percent_change_a ?> %</td>
168 <td><?php echo $max_host_percent_change_a ?> %</td>
169 <td><?php echo $average_host_percent_change ?> %</td>
170 </tr>
171 </table>
172 </div>
174 <div>
175 <table>
176 <caption><?php echo _('Hosts passively checked') ?></caption>
177 <tr>
178 <th style="width: 40%"><?php echo _('Time frame') ?></th>
179 <th><?php echo _('Hosts checked') ?></th>
180 </tr>
181 <tr class="even">
182 <td>&le; 1 <?php echo _('minute') ?></td>
183 <td><?php echo $hst_passive_1min ?> (<?php echo $hst_passive_1min_perc ?> %)</td>
184 </tr>
185 <tr class="odd">
186 <td>&le; 5 <?php echo _('minutes') ?></td>
187 <td><?php echo $hst_passive_5min ?> (<?php echo $hst_passive_5min_perc ?> %)</td>
188 </tr>
189 <tr class="even">
190 <td>&le; 15 <?php echo _('minutes') ?></td>
191 <td><?php echo $hst_passive_15min ?> (<?php echo $hst_passive_15min_perc ?> %)</td>
192 </tr>
193 <tr class="odd">
194 <td>&le; 1 <?php echo _('hour') ?></td>
195 <td><?php echo $hst_passive_1hour ?> (<?php echo $hst_passive_1hour_perc ?> %)</td>
196 </tr>
197 <tr class="even">
198 <td><?php echo _('Since program start') ?></td>
199 <td><?php echo $hst_passive_start ?> (<?php echo $hst_passive_start_perc ?> %)</td>
200 </tr>
201 </table>
202 <br />
203 <table>
204 <tr>
205 <th style="width: 40%"><?php echo _('Metric') ?></th>
206 <th style="width: 20%"><?php echo _('Min.') ?></th>
207 <th style="width: 20%"><?php echo _('Max.') ?></th>
208 <th style="width: 20%"><?php echo _('Average') ?></th>
209 </tr>
210 <tr class="even">
211 <td><?php echo _('Percent state change') ?>&nbsp;&nbsp;</td>
212 <td><?php echo $min_host_percent_change_b ?> %</td>
213 <td><?php echo $max_host_percent_change_b ?> %</td>
214 <td><?php echo $average_host_percent_change ?> %</td>
215 </tr>
216 </table>
217 </div>
219 <div>
220 <table style="margin-bottom: 15px">
221 <caption><?php echo _('Check statistics') ?></caption>
222 <tr>
223 <th style="width: 50%"><?php echo _('Type') ?></th>
224 <th style="width: 25%"><?php echo _('Total') ?></th>
225 <th style="width: 25%"><?php echo _('Rate') ?></th>
226 </tr>
227 <tr class="even">
228 <td><?php echo _('Servicechecks') ?></td>
229 <td><?php echo $program_status->service_checks ?></td>
230 <td><?php echo number_format($program_status->service_checks_rate, 2) ?>/s</td>
231 </tr>
232 <tr class="odd">
233 <td><?php echo _('Hostchecks') ?></td>
234 <td><?php echo $program_status->host_checks ?></td>
235 <td><?php echo number_format($program_status->host_checks_rate, 2) ?>/s</td>
236 </tr>
237 </table>
238 </div>