summaryrefslogtreecommitdiffstats
path: root/modules/monitoring/application/views/scripts/tactical/components/monitoringfeatures.phtml
blob: eeeec16af25ee2ba22e23c5397d1aaea542b223b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<div class="box monitoringfeatures col-1-2">
    <div class="box header">
        <h2><?= $this->translate('Monitoring Features'); ?></h2>
    </div>
    <div class="box contents">
<?php if ($this->statusSummary->hosts_without_flap_detection || $this->statusSummary->services_without_flap_detection ||
    $this->statusSummary->hosts_flapping || $this->statusSummary->services_flapping): ?>
        <div class="box-separator badge feature-highlight"><?= $this->translate('Flap Detection'); ?></div>
<?php else: ?>
        <div class="box-separator badge"><?= $this->translate('Flap Detection'); ?></div>
<?php endif ?>
        <table>
            <tbody>
                <tr>
                    <td>
                        <div class="box entry">
<?php if ($this->statusSummary->hosts_without_flap_detection): ?>
                            <?= $this->qlink(
                                sprintf(
                                    $this->translatePlural('%u Host Disabled', '%u Hosts Disabled', $this->statusSummary->hosts_without_flap_detection),
                                    $this->statusSummary->hosts_without_flap_detection
                                ),
                                'monitoring/list/hosts',
                                array('host_flap_detection_enabled' => 0),
                                array(
                                    'class' => 'feature-highlight',
                                    'title' => sprintf(
                                        $this->translatePlural(
                                            'List %u host for which flap detection has been disabled',
                                            'List %u hosts for which flap detection has been disabled',
                                            $this->statusSummary->hosts_without_flap_detection
                                        ),
                                        $this->statusSummary->hosts_without_flap_detection
                                    )
                                )
                            ); ?>
<?php else: ?>
                            <?= $this->qlink(
                                $this->translate('All Hosts Enabled'),
                                'monitoring/list/hosts',
                                array('host_flap_detection_enabled' => 1),
                                array('title' => $this->translate(
                                    'List all hosts, for which flap detection is enabled entirely'
                                ))
                            ); ?>
<?php endif ?>
<?php if ($this->statusSummary->hosts_flapping): ?>
                            <?= $this->qlink(
                                sprintf(
                                    $this->translatePlural('%u Host Flapping', '%u Hosts Flapping', $this->statusSummary->hosts_flapping),
                                    $this->statusSummary->hosts_flapping
                                ),
                                'monitoring/list/hosts',
                                array('host_is_flapping' => 1),
                                array(
                                    'class' => 'feature-highlight',
                                    'title' => sprintf(
                                        $this->translatePlural(
                                            'List %u host that is currently flapping',
                                            'List %u hosts which are currently flapping',
                                            $this->statusSummary->hosts_flapping
                                        ),
                                        $this->statusSummary->hosts_flapping
                                    )
                                )
                            ); ?>
<?php endif ?>
                        </div>
                    </td>
                    <td>
                        <div class="box entry">
<?php if ($this->statusSummary->services_without_flap_detection): ?>
                            <?= $this->qlink(
                                sprintf(
                                    $this->translatePlural('%u Service Disabled', '%u Services Disabled', $this->statusSummary->services_without_flap_detection),
                                    $this->statusSummary->services_without_flap_detection
                                ),
                                'monitoring/list/services',
                                array('service_flap_detection_enabled' => 0),
                                array(
                                    'class' => 'feature-highlight',
                                    'title' => sprintf(
                                        $this->translatePlural(
                                            'List %u service for which flap detection has been disabled',
                                            'List %u services for which flap detection has been disabled',
                                            $this->statusSummary->services_without_flap_detection
                                        ),
                                        $this->statusSummary->services_without_flap_detection
                                    )
                                )
                            ); ?>
<?php else: ?>
                            <?= $this->qlink(
                                $this->translate('All Services Enabled'),
                                'monitoring/list/services',
                                array('service_flap_detection_enabled' => 1),
                                array('title' => $this->translate(
                                    'List all services, for which flap detection is enabled entirely'
                                ))
                            ); ?>
<?php endif ?>
<?php if ($this->statusSummary->services_flapping): ?>
                            <?= $this->qlink(
                                sprintf(
                                    $this->translatePlural('%u Service Flapping', '%u Services Flapping', $this->statusSummary->services_flapping),
                                    $this->statusSummary->services_flapping
                                ),
                                'monitoring/list/services',
                                array('service_is_flapping' => 1),
                                array(
                                    'class' => 'feature-highlight',
                                    'title' => sprintf(
                                        $this->translatePlural(
                                            'List %u service that is currently flapping',
                                            'List %u services which are currently flapping',
                                            $this->statusSummary->services_flapping
                                        ),
                                        $this->statusSummary->services_flapping
                                    )
                                )
                            ); ?>
<?php endif ?>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
<?php if ($this->statusSummary->hosts_not_triggering_notifications || $this->statusSummary->services_not_triggering_notifications): ?>
        <div class="box-separator badge feature-highlight"><?= $this->translate('Notifications'); ?></div>
<?php else: ?>
        <div class="box-separator badge"><?= $this->translate('Notifications'); ?></div>
<?php endif ?>
        <table>
            <tbody>
                <tr>
                    <td>
                        <div class="box entry">
<?php if ($this->statusSummary->hosts_not_triggering_notifications): ?>
                            <?= $this->qlink(
                                sprintf(
                                    $this->translatePlural('%u Host Disabled', '%u Hosts Disabled', $this->statusSummary->hosts_not_triggering_notifications),
                                    $this->statusSummary->hosts_not_triggering_notifications
                                ),
                                'monitoring/list/hosts',
                                array('host_notifications_enabled' => 0),
                                array(
                                    'class' => 'feature-highlight',
                                    'title' => sprintf(
                                        $this->translatePlural(
                                            'List %u host for which notifications are suppressed',
                                            'List %u hosts for which notifications are suppressed',
                                            $this->statusSummary->hosts_not_triggering_notifications
                                        ),
                                        $this->statusSummary->hosts_not_triggering_notifications
                                    )
                                )
                            ); ?>
<?php else: ?>
                            <?= $this->qlink(
                                $this->translate('All Hosts Enabled'),
                                'monitoring/list/hosts',
                                array('host_notifications_enabled' => 1),
                                array('title' => $this->translate(
                                    'List all hosts, for which notifications are enabled entirely'
                                ))
                            ); ?>
<?php endif ?>
                        </div>
                    </td>
                    <td>
                        <div class="box entry">
<?php if ($this->statusSummary->services_not_triggering_notifications): ?>
                            <?= $this->qlink(
                                sprintf(
                                    $this->translatePlural('%u Service Disabled', '%u Services Disabled', $this->statusSummary->services_not_triggering_notifications),
                                    $this->statusSummary->services_not_triggering_notifications
                                ),
                                'monitoring/list/services',
                                array('service_notifications_enabled' => 0),
                                array(
                                    'class' => 'feature-highlight',
                                    'title' => sprintf(
                                        $this->translatePlural(
                                            'List %u service for which notifications are suppressed',
                                            'List %u services for which notifications are suppressed',
                                            $this->statusSummary->services_not_triggering_notifications
                                        ),
                                        $this->statusSummary->services_not_triggering_notifications
                                    )
                                )
                            ); ?>
<?php else: ?>
                            <?= $this->qlink(
                                $this->translate('All Services Enabled'),
                                'monitoring/list/services',
                                array('service_notifications_enabled' => 1),
                                array('title' => $this->translate(
                                    'List all services, for which notifications are enabled entirely'
                                ))
                            ); ?>
<?php endif ?>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
<?php if ($this->statusSummary->hosts_not_processing_event_handlers || $this->statusSummary->services_not_processing_event_handlers): ?>
        <div class="box-separator badge feature-highlight"><?= $this->translate('Event Handlers'); ?></div>
<?php else: ?>
        <div class="box-separator badge"><?= $this->translate('Event Handlers'); ?></div>
<?php endif ?>
        <table>
            <tbody>
                <tr>
                    <td>
                        <div class="box entry">
<?php if ($this->statusSummary->hosts_not_processing_event_handlers): ?>
                            <?= $this->qlink(
                                sprintf(
                                    $this->translatePlural('%u Host Disabled', '%u Hosts Disabled', $this->statusSummary->hosts_not_processing_event_handlers),
                                    $this->statusSummary->hosts_not_processing_event_handlers
                                ),
                                'monitoring/list/hosts',
                                array('host_event_handler_enabled' => 0),
                                array(
                                    'class' => 'feature-highlight',
                                    'title' => sprintf(
                                        $this->translatePlural(
                                            'List %u host that is not processing any event handlers',
                                            'List %u hosts which are not processing any event handlers',
                                            $this->statusSummary->hosts_not_processing_event_handlers
                                        ),
                                        $this->statusSummary->hosts_not_processing_event_handlers
                                    )
                                )
                            ); ?>
<?php else: ?>
                            <?= $this->qlink(
                                $this->translate('All Hosts Enabled'),
                                'monitoring/list/hosts',
                                array('host_event_handler_enabled' => 1),
                                array('title' => $this->translate(
                                    'List all hosts, which are processing event handlers entirely'
                                ))
                            ); ?>
<?php endif ?>
                        </div>
                    </td>
                    <td>
                        <div class="box entry">
<?php if ($this->statusSummary->services_not_processing_event_handlers): ?>
                            <?= $this->qlink(
                                sprintf(
                                    $this->translatePlural('%u Service Disabled', '%u Services Disabled', $this->statusSummary->services_not_processing_event_handlers),
                                    $this->statusSummary->services_not_processing_event_handlers
                                ),
                                'monitoring/list/services',
                                array('service_event_handler_enabled' => 0),
                                array(
                                    'class' => 'feature-highlight',
                                    'title' => sprintf(
                                        $this->translatePlural(
                                            'List %u service that is not processing any event handlers',
                                            'List %u services which are not processing any event handlers',
                                            $this->statusSummary->services_not_processing_event_handlers
                                        ),
                                        $this->statusSummary->services_not_processing_event_handlers
                                    )
                                )
                            ); ?>
<?php else: ?>
                            <?= $this->qlink(
                                $this->translate('All Services Enabled'),
                                'monitoring/list/services',
                                array('service_event_handler_enabled' => 1),
                                array('title' => $this->translate(
                                    'List all services, which are processing event handlers entirely'
                                ))
                            ); ?>
<?php endif ?>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>