1 <?php
defined('SYSPATH') OR die('No direct access allowed.'); ?
>
2 <table
class="tablestat-widget" id
="mmm">
4 <col style
="width: 20%" />
5 <col style
="width: 20%" />
6 <col style
="width: 20%" />
7 <col style
="width: 20%" />
8 <col style
="width: 20%" />
11 <th
class="<?php echo $cmd_flap_status ?>">
12 <strong
><?php
echo $flap_detect_header_label ?
></strong
>
13 <?php
$current = str_replace('_monfeat','',$cmd_flap_status); ?
>
14 <a title
="Click to <?php echo ( $current == "enabled
" ) ? "disable
" : "enable
" ?>" href
="<?php echo $cmd_flap_link ?>">
15 <?php
echo $current; ?
>
18 <th
class="<?php echo $cmd_notification_status ?>">
19 <strong
><?php
echo $notifications_header_label ?
></strong
>
20 <?php
$current = str_replace('_monfeat','',$cmd_notification_status); ?
>
21 <a title
="Click to <?php echo ( $current == "enabled
" ) ? "disable
" : "enable
" ?>" href
="<?php echo $cmd_notification_link ?>">
27 <th
class="<?php echo $cmd_event_status ?>">
28 <strong
><?php
echo $eventhandler_header_label ?
></strong
>
29 <?php
$current = str_replace('_monfeat','',$cmd_event_status); ?
>
30 <a title
="Click to <?php echo ( $current == "enabled
" ) ? "disable
" : "enable
" ?>" href
="<?php echo $cmd_event_link ?>">
31 <?php
echo $current; ?
>
34 <th
class="<?php echo $cmd_activecheck_status ?>">
35 <strong
><?php
echo $activechecks_header_label ?
></strong
>
36 <?php
$current = str_replace('_monfeat','',$cmd_activecheck_status); ?
>
37 <a title
="Click to <?php echo ( $current == "enabled
" ) ? "disable
" : "enable
" ?>" href
="<?php echo $cmd_activecheck_link ?>">
38 <?php
echo $current; ?
>
41 <th
class="<?php echo $cmd_passivecheck_status ?>">
42 <strong
><?php
echo $passivechecks_header_label ?
></strong
>
43 <?php
$current = str_replace('_monfeat','',$cmd_passivecheck_status); ?
>
44 <a title
="Click to <?php echo ( $current == "enabled
" ) ? "disable
" : "enable
" ?>" href
="<?php echo $cmd_passivecheck_link ?>">
45 <?php
echo $current; ?
>
51 <table
class="no_border">
52 <?php
if ($enable_flap_detection) { ?
>
53 <?php
if ($flap_disabled_services > 0) {?
>
55 <td
class="icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
56 <td style
="white-space: normal">
57 <?php
echo $flap_disabled_services.' '.($flap_disabled_services==1 ?
$lable_service_singular : $lable_service_plural).' '.$lable_disabled ?
>
62 <td
class="icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
63 <td style
="white-space: normal"><?php
echo $lable_all_services.' '.$lable_enabled ?
></td
>
65 <?php
} if ($flapping_services > 0) {?
>
67 <td
class="icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
68 <td style
="white-space: normal"><?php
echo html
::anchor('/status/service/?service_props='.nagstat
::SERVICE_IS_FLAPPING
,$flapping_services.' '.($flapping_services==1 ?
$lable_service_singular : $lable_service_plural).' '.$lable_flapping) ?
></td
>
72 <td
class="icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
73 <td style
="white-space: normal"><?php
echo $lable_no_services.' '.$lable_flapping ?
></td
>
75 <?php
} if ($flap_disabled_hosts > 0) {?
>
77 <td
class="icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
78 <td style
="white-space: normal"><?php
echo $flap_disabled_hosts.' '.($flap_disabled_hosts==1 ?
$lable_host_singular : $lable_host_plural).' '.$lable_disabled ?
></td
>
82 <td
class="icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
83 <td style
="white-space: normal"><?php
echo $lable_all_hosts.' '.$lable_enabled ?
></td
>
85 <?php
} if ($flapping_hosts > 0) {?
>
87 <td
class="icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
88 <td style
="white-space: normal"><?php
echo html
::anchor('/status/host/?hostprops='.nagstat
::HOST_IS_FLAPPING
,$flapping_hosts.' '.($flapping_hosts==1 ?
$lable_host_singular : $lable_host_plural).' '.$lable_flapping) ?
></td
>
92 <td
class="icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
93 <td style
="white-space: normal"><?php
echo $lable_no_hosts.' '.$lable_flapping ?
></td
>
97 <td style
="padding: 6.5px"><?php
echo _('N/A') ?
></td
>
103 <table
class="no_border">
104 <?php
if ($enable_notifications) { ?
>
105 <?php
if ($notification_disabled_services > 0) { ?
>
107 <td
class="icon icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
108 <td style
="white-space: normal"><?php
echo html
::anchor('/status/service/?service_props='.nagstat
::SERVICE_NOTIFICATIONS_DISABLED
, $notification_disabled_services.' '.($notification_disabled_services==1 ?
$lable_service_singular : $lable_service_plural).' '.$lable_disabled) ?
></td
>
112 <td
class="icon icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
113 <td style
="white-space: normal"><?php
echo $lable_all_services.' '.$lable_enabled ?
></td
>
116 <?php
if ($notification_disabled_hosts > 0) { ?
>
118 <td
class="icon icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
119 <td style
="white-space: normal"><?php
echo html
::anchor('/status/host/?hostprops='.nagstat
::HOST_NOTIFICATIONS_DISABLED
, $notification_disabled_hosts.' '.($notification_disabled_hosts==1 ?
$lable_host_singular : $lable_host_plural).' '.$lable_disabled) ?
></td
>
123 <td
class="icon icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
124 <td style
="white-space: normal"><?php
echo $lable_all_hosts.' '.$lable_enabled ?
></td
>
129 <td style
="padding: 6.5px"><?php
echo _('N/A') ?
></td
>
135 <table
class="no_border">
136 <?php
if ($enable_event_handlers) { ?
>
137 <?php
if ($event_handler_disabled_svcs > 0) { ?
>
139 <td
class="icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
140 <td style
="white-space: normal"><?php
echo html
::anchor('/status/service/?service_props='.nagstat
::SERVICE_EVENT_HANDLER_DISABLED
, $event_handler_disabled_svcs.' '.($event_handler_disabled_svcs==1 ?
$lable_service_singular : $lable_service_plural).' '.$lable_disabled) ?
></td
>
144 <td
class="icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
145 <td style
="white-space: normal"><?php
echo $lable_all_services.' '.$lable_enabled ?
></td
>
148 <?php
if ($event_handler_disabled_hosts > 0) { ?
>
150 <td
class="icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
151 <td style
="white-space: normal"><?php
echo html
::anchor('/status/host/?hostprops='.nagstat
::HOST_EVENT_HANDLER_DISABLED
, $event_handler_disabled_hosts.' '.($event_handler_disabled_hosts==1 ?
$lable_host_singular : $lable_host_plural).' '.$lable_disabled) ?
></td
>
155 <td
class="icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
156 <td style
="white-space: normal"><?php
echo $lable_all_hosts.' '.$lable_enabled ?
></td
>
161 <td style
="padding: 6.5px"><?php
echo _('N/A') ?
></td
>
168 <table
class="no_border">
169 <?php
if ($execute_service_checks) { ?
>
170 <?php
if ($active_checks_disabled_svcs > 0) { ?
>
172 <td
class="icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
173 <td style
="white-space: normal"><?php
echo html
::anchor('/status/service/?service_props='.nagstat
::SERVICE_CHECKS_DISABLED
, $active_checks_disabled_svcs.' '.($active_checks_disabled_svcs==1 ?
$lable_service_singular : $lable_service_plural).' '.$lable_disabled) ?
></td
>
177 <td
class="icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
178 <td style
="white-space: normal"><?php
echo $lable_all_services.' '.$lable_enabled ?
></td
>
181 <?php
if ($active_checks_disabled_hosts > 0) { ?
>
183 <td
class="icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
184 <td style
="white-space: normal"><?php
echo html
::anchor('/status/host/?hostprops='.nagstat
::HOST_CHECKS_DISABLED
, $active_checks_disabled_hosts.' '.($active_checks_disabled_hosts==1 ?
$lable_host_singular : $lable_host_plural).' '.$lable_disabled) ?
></td
>
188 <td
class="icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
189 <td style
="white-space: normal"><?php
echo $lable_all_hosts.' '.$lable_enabled ?
></td
>
194 <td style
="padding: 6.5px"><?php
echo _('N/A') ?
></td
>
200 <table
class="no_border">
201 <?php
if ($accept_passive_service_checks) { ?
>
202 <?php
if ($passive_checks_disabled_svcs > 0) { ?
>
204 <td
class="icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
205 <td style
="white-space: normal"><?php
echo html
::anchor('/status/service/?service_props='.nagstat
::SERVICE_PASSIVE_CHECKS_DISABLED
, $passive_checks_disabled_svcs.' '.($passive_checks_disabled_svcs==1 ?
$lable_service_singular : $lable_service_plural).' '.$lable_disabled) ?
></td
>
209 <td
class="icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
210 <td style
="white-space: normal"><?php
echo $lable_all_services.' '.$lable_enabled ?
></td
>
213 <?php
if ($passive_checks_disabled_hosts > 0) { ?
>
215 <td
class="icon"><span
class="icon-16 x16-shield-disabled" title
="<?php echo _('Disabled'); ?>"></span
></td
>
216 <td style
="white-space: normal"><?php
echo html
::anchor('/status/host/?hostprops='.nagstat
::HOST_PASSIVE_CHECKS_DISABLED
, $passive_checks_disabled_hosts.' '.($passive_checks_disabled_hosts==1 ?
$lable_host_singular : $lable_host_plural).' '.$lable_disabled) ?
></td
>
220 <td
class="icon"><span
class="icon-16 x16-shield-ok" title
="<?php echo _('Enabled'); ?>"></span
></td
>
221 <td style
="white-space: normal"><?php
echo $lable_all_hosts.' '.$lable_enabled ?
></td
>
226 <td style
="padding: 6.5px"><?php
echo _('N/A') ?
></td
>