mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Clean up StatusSummary query
This commit is contained in:
parent
d1026c240b
commit
1b503fd187
@ -19,110 +19,78 @@ class Monitoring_TacticalController extends MonitoringController
|
||||
'hosts_down',
|
||||
'hosts_down_handled',
|
||||
'hosts_down_unhandled',
|
||||
'hosts_down_handled_active',
|
||||
'hosts_down_handled_passive',
|
||||
'hosts_down_handled_not_checked',
|
||||
'hosts_down_unhandled_active',
|
||||
'hosts_down_unhandled_passive',
|
||||
'hosts_down_unhandled_not_checked',
|
||||
'hosts_down_passive',
|
||||
'hosts_down_not_checked',
|
||||
'hosts_unreachable',
|
||||
'hosts_unreachable_handled',
|
||||
'hosts_unreachable_unhandled',
|
||||
'hosts_unreachable_handled_active',
|
||||
'hosts_unreachable_handled_passive',
|
||||
'hosts_unreachable_handled_not_checked',
|
||||
'hosts_unreachable_unhandled_active',
|
||||
'hosts_unreachable_unhandled_passive',
|
||||
'hosts_unreachable_unhandled_not_checked',
|
||||
'hosts_unreachable_passive',
|
||||
'hosts_unreachable_not_checked',
|
||||
|
||||
'services_ok_on_up_hosts',
|
||||
'services_ok_not_checked_on_up_hosts',
|
||||
'services_pending_on_up_hosts',
|
||||
'services_pending_not_checked_on_up_hosts',
|
||||
'services_warning_handled_active_on_up_hosts',
|
||||
'services_warning_handled_passive_on_up_hosts',
|
||||
'services_warning_handled_not_checked_on_up_hosts',
|
||||
'services_warning_unhandled_active_on_up_hosts',
|
||||
'services_warning_unhandled_passive_on_up_hosts',
|
||||
'services_warning_unhandled_not_checked_on_up_hosts',
|
||||
'services_critical_handled_active_on_up_hosts',
|
||||
'services_critical_handled_passive_on_up_hosts',
|
||||
'services_critical_handled_not_checked_on_up_hosts',
|
||||
'services_critical_unhandled_active_on_up_hosts',
|
||||
'services_critical_unhandled_passive_on_up_hosts',
|
||||
'services_critical_unhandled_not_checked_on_up_hosts',
|
||||
'services_unknown_handled_active_on_up_hosts',
|
||||
'services_unknown_handled_passive_on_up_hosts',
|
||||
'services_unknown_handled_not_checked_on_up_hosts',
|
||||
'services_unknown_unhandled_active_on_up_hosts',
|
||||
'services_unknown_unhandled_passive_on_up_hosts',
|
||||
'services_unknown_unhandled_not_checked_on_up_hosts',
|
||||
'services_warning_on_up_hosts',
|
||||
'services_warning_unhandled_on_up_hosts',
|
||||
'services_warning_passive_on_up_hosts',
|
||||
'services_warning_not_checked_on_up_hosts',
|
||||
'services_critical_on_up_hosts',
|
||||
'services_critical_unhandled_on_up_hosts',
|
||||
'services_critical_passive_on_up_hosts',
|
||||
'services_critical_not_checked_on_up_hosts',
|
||||
'services_unknown_on_up_hosts',
|
||||
'services_unknown_unhandled_on_up_hosts',
|
||||
'services_unknown_passive_on_up_hosts',
|
||||
'services_unknown_not_checked_on_up_hosts',
|
||||
'services_ok_on_down_hosts',
|
||||
'services_ok_not_checked_on_down_hosts',
|
||||
'services_pending_on_down_hosts',
|
||||
'services_pending_not_checked_on_down_hosts',
|
||||
'services_warning_handled_active_on_down_hosts',
|
||||
'services_warning_handled_passive_on_down_hosts',
|
||||
'services_warning_handled_not_checked_on_down_hosts',
|
||||
'services_warning_unhandled_active_on_down_hosts',
|
||||
'services_warning_unhandled_passive_on_down_hosts',
|
||||
'services_warning_unhandled_not_checked_on_down_hosts',
|
||||
'services_critical_handled_active_on_down_hosts',
|
||||
'services_critical_handled_passive_on_down_hosts',
|
||||
'services_critical_handled_not_checked_on_down_hosts',
|
||||
'services_critical_unhandled_active_on_down_hosts',
|
||||
'services_critical_unhandled_passive_on_down_hosts',
|
||||
'services_critical_unhandled_not_checked_on_down_hosts',
|
||||
'services_unknown_handled_active_on_down_hosts',
|
||||
'services_unknown_handled_passive_on_down_hosts',
|
||||
'services_unknown_handled_not_checked_on_down_hosts',
|
||||
'services_unknown_unhandled_active_on_down_hosts',
|
||||
'services_unknown_unhandled_passive_on_down_hosts',
|
||||
'services_unknown_unhandled_not_checked_on_down_hosts',
|
||||
'services_warning_on_down_hosts',
|
||||
'services_warning_unhandled_on_down_hosts',
|
||||
'services_warning_passive_on_down_hosts',
|
||||
'services_warning_not_checked_on_down_hosts',
|
||||
'services_critical_on_down_hosts',
|
||||
'services_critical_unhandled_on_down_hosts',
|
||||
'services_critical_passive_on_down_hosts',
|
||||
'services_critical_not_checked_on_down_hosts',
|
||||
'services_unknown_on_down_hosts',
|
||||
'services_unknown_unhandled_on_down_hosts',
|
||||
'services_unknown_passive_on_down_hosts',
|
||||
'services_unknown_not_checked_on_down_hosts',
|
||||
'services_ok_on_unreachable_hosts',
|
||||
'services_ok_not_checked_on_unreachable_hosts',
|
||||
'services_pending_on_unreachable_hosts',
|
||||
'services_pending_not_checked_on_unreachable_hosts',
|
||||
'services_warning_handled_active_on_unreachable_hosts',
|
||||
'services_warning_handled_passive_on_unreachable_hosts',
|
||||
'services_warning_handled_not_checked_on_unreachable_hosts',
|
||||
'services_warning_unhandled_active_on_unreachable_hosts',
|
||||
'services_warning_unhandled_passive_on_unreachable_hosts',
|
||||
'services_warning_unhandled_not_checked_on_unreachable_hosts',
|
||||
'services_critical_handled_active_on_unreachable_hosts',
|
||||
'services_critical_handled_passive_on_unreachable_hosts',
|
||||
'services_critical_handled_not_checked_on_unreachable_hosts',
|
||||
'services_critical_unhandled_active_on_unreachable_hosts',
|
||||
'services_critical_unhandled_passive_on_unreachable_hosts',
|
||||
'services_critical_unhandled_not_checked_on_unreachable_hosts',
|
||||
'services_unknown_handled_active_on_unreachable_hosts',
|
||||
'services_unknown_handled_passive_on_unreachable_hosts',
|
||||
'services_unknown_handled_not_checked_on_unreachable_hosts',
|
||||
'services_unknown_unhandled_active_on_unreachable_hosts',
|
||||
'services_unknown_unhandled_passive_on_unreachable_hosts',
|
||||
'services_unknown_unhandled_not_checked_on_unreachable_hosts',
|
||||
'services_warning_on_unreachable_hosts',
|
||||
'services_warning_unhandled_on_unreachable_hosts',
|
||||
'services_warning_passive_on_unreachable_hosts',
|
||||
'services_warning_not_checked_on_unreachable_hosts',
|
||||
'services_critical_on_unreachable_hosts',
|
||||
'services_critical_unhandled_on_unreachable_hosts',
|
||||
'services_critical_passive_on_unreachable_hosts',
|
||||
'services_critical_not_checked_on_unreachable_hosts',
|
||||
'services_unknown_on_unreachable_hosts',
|
||||
'services_unknown_unhandled_on_unreachable_hosts',
|
||||
'services_unknown_passive_on_unreachable_hosts',
|
||||
'services_unknown_not_checked_on_unreachable_hosts',
|
||||
'services_ok_on_pending_hosts',
|
||||
'services_ok_not_checked_on_pending_hosts',
|
||||
'services_pending_on_pending_hosts',
|
||||
'services_pending_not_checked_on_pending_hosts',
|
||||
'services_warning_handled_active_on_pending_hosts',
|
||||
'services_warning_handled_passive_on_pending_hosts',
|
||||
'services_warning_handled_not_checked_on_pending_hosts',
|
||||
'services_warning_unhandled_active_on_pending_hosts',
|
||||
'services_warning_unhandled_passive_on_pending_hosts',
|
||||
'services_warning_unhandled_not_checked_on_pending_hosts',
|
||||
'services_critical_handled_active_on_pending_hosts',
|
||||
'services_critical_handled_passive_on_pending_hosts',
|
||||
'services_critical_handled_not_checked_on_pending_hosts',
|
||||
'services_critical_unhandled_active_on_pending_hosts',
|
||||
'services_critical_unhandled_passive_on_pending_hosts',
|
||||
'services_critical_unhandled_not_checked_on_pending_hosts',
|
||||
'services_unknown_handled_active_on_pending_hosts',
|
||||
'services_unknown_handled_passive_on_pending_hosts',
|
||||
'services_unknown_handled_not_checked_on_pending_hosts',
|
||||
'services_unknown_unhandled_active_on_pending_hosts',
|
||||
'services_unknown_unhandled_passive_on_pending_hosts',
|
||||
'services_unknown_unhandled_not_checked_on_pending_hosts',
|
||||
'services_warning_on_pending_hosts',
|
||||
'services_warning_unhandled_on_pending_hosts',
|
||||
'services_warning_passive_on_pending_hosts',
|
||||
'services_warning_not_checked_on_pending_hosts',
|
||||
'services_critical_on_pending_hosts',
|
||||
'services_critical_unhandled_on_pending_hosts',
|
||||
'services_critical_passive_on_pending_hosts',
|
||||
'services_critical_not_checked_on_pending_hosts',
|
||||
'services_unknown_on_pending_hosts',
|
||||
'services_unknown_unhandled_on_pending_hosts',
|
||||
'services_unknown_passive_on_pending_hosts',
|
||||
'services_unknown_not_checked_on_pending_hosts',
|
||||
|
||||
'hosts_active',
|
||||
'hosts_passive',
|
||||
@ -130,12 +98,12 @@ class Monitoring_TacticalController extends MonitoringController
|
||||
'services_active',
|
||||
'services_passive',
|
||||
'services_not_checked',
|
||||
'hosts_processing_event_handlers',
|
||||
'services_processing_event_handlers',
|
||||
'hosts_triggering_notifications',
|
||||
'services_triggering_notifications',
|
||||
'hosts_with_flap_detection',
|
||||
'services_with_flap_detection',
|
||||
'hosts_not_processing_event_handlers',
|
||||
'services_not_processing_event_handlers',
|
||||
'hosts_not_triggering_notifications',
|
||||
'services_not_triggering_notifications',
|
||||
'hosts_without_flap_detection',
|
||||
'services_without_flap_detection',
|
||||
'hosts_flapping',
|
||||
'services_flapping'
|
||||
)
|
||||
|
@ -1,19 +1,3 @@
|
||||
<?php
|
||||
|
||||
$summary = $this->statusSummary;
|
||||
$total_services = $summary->services_active + $summary->services_passive + $summary->services_not_checked;
|
||||
$total_hosts = $summary->hosts_active + $summary->hosts_passive + $summary->hosts_not_checked;
|
||||
|
||||
$services_without_flap_detection = $total_services - $summary->services_with_flap_detection;
|
||||
$hosts_without_flap_detection = $total_hosts - $summary->hosts_with_flap_detection;
|
||||
$non_flapping_services = $total_services - $summary->services_flapping;
|
||||
$non_flapping_hosts = $total_hosts - $summary->hosts_flapping;
|
||||
$hosts_not_triggering_notifications = $total_hosts - $summary->hosts_triggering_notifications;
|
||||
$services_not_triggering_notifications = $total_services - $summary->services_triggering_notifications;
|
||||
$hosts_not_processing_event_handlers = $total_hosts - $summary->hosts_processing_event_handlers;
|
||||
$services_not_processing_event_handlers = $total_services - $summary->services_processing_event_handlers;
|
||||
|
||||
?>
|
||||
<div class="box monitoringfeatures">
|
||||
<h2><?= $this->translate('Monitoring Features'); ?></h2>
|
||||
<div class="box contents">
|
||||
@ -22,13 +6,13 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if ($hosts_without_flap_detection): ?>
|
||||
<?php if ($this->statusSummary->hosts_without_flap_detection): ?>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_flap_detection_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d hosts disabled', $hosts_without_flap_detection); ?>
|
||||
<?= sprintf('%d hosts disabled', $this->statusSummary->hosts_without_flap_detection); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<div class="box entry feature_enabled">
|
||||
@ -39,24 +23,24 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
||||
<?= $this->translate('All hosts enabled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($summary->hosts_flapping): ?>
|
||||
<?php if ($this->statusSummary->hosts_flapping): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_is_flapping' => 1)
|
||||
); ?>" style="color: red;">
|
||||
<?= sprintf('%d hosts flapping', $summary->hosts_flapping); ?>
|
||||
<?= sprintf('%d hosts flapping', $this->statusSummary->hosts_flapping); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($services_without_flap_detection): ?>
|
||||
<?php if ($this->statusSummary->services_without_flap_detection): ?>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_flap_detection_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d services disabled', $services_without_flap_detection); ?>
|
||||
<?= sprintf('%d services disabled', $this->statusSummary->services_without_flap_detection); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<div class="box entry feature_enabled">
|
||||
@ -67,12 +51,12 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
||||
<?= $this->translate('All services enabled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($summary->services_flapping): ?>
|
||||
<?php if ($this->statusSummary->services_flapping): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_is_flapping' => 1)
|
||||
); ?>" style="color: red;">
|
||||
<?= sprintf('%d services flapping', $summary->services_flapping); ?>
|
||||
<?= sprintf('%d services flapping', $this->statusSummary->services_flapping); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
@ -85,13 +69,13 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if ($hosts_not_triggering_notifications): ?>
|
||||
<?php if ($this->statusSummary->hosts_not_triggering_notifications): ?>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_notifications_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d hosts disabled', $hosts_not_triggering_notifications); ?>
|
||||
<?= sprintf('%d hosts disabled', $this->statusSummary->hosts_not_triggering_notifications); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<div class="box entry feature_enabled">
|
||||
@ -105,13 +89,13 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($services_not_triggering_notifications): ?>
|
||||
<?php if ($this->statusSummary->services_not_triggering_notifications): ?>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_notifications_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d services disabled', $services_not_triggering_notifications); ?>
|
||||
<?= sprintf('%d services disabled', $this->statusSummary->services_not_triggering_notifications); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<div class="box entry feature_enabled">
|
||||
@ -132,13 +116,13 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if ($hosts_not_processing_event_handlers): ?>
|
||||
<?php if ($this->statusSummary->hosts_not_processing_event_handlers): ?>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_event_handler_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d hosts disabled', $hosts_not_processing_event_handlers); ?>
|
||||
<?= sprintf('%d hosts disabled', $this->statusSummary->hosts_not_processing_event_handlers); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<div class="box entry feature_enabled">
|
||||
@ -152,13 +136,13 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($services_not_processing_event_handlers): ?>
|
||||
<?php if ($this->statusSummary->services_not_processing_event_handlers): ?>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_event_handler_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d services disabled', $services_not_processing_event_handlers); ?>
|
||||
<?= sprintf('%d services disabled', $this->statusSummary->services_not_processing_event_handlers); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<div class="box entry feature_enabled">
|
||||
|
@ -1,18 +1,3 @@
|
||||
<?php
|
||||
|
||||
$services_warning_handled = $services_warning_handled_active + $services_warning_handled_passive + $services_warning_handled_not_checked;
|
||||
$services_warning_unhandled = $services_warning_unhandled_active + $services_warning_unhandled_passive + $services_warning_unhandled_not_checked;
|
||||
$services_critical_handled = $services_critical_handled_active + $services_critical_handled_passive + $services_critical_handled_not_checked;
|
||||
$services_critical_unhandled = $services_critical_unhandled_active + $services_critical_unhandled_passive + $services_critical_unhandled_not_checked;
|
||||
$services_unknown_handled = $services_unknown_handled_active + $services_unknown_handled_passive + $services_unknown_handled_not_checked;
|
||||
$services_unknown_unhandled = $services_unknown_unhandled_active + $services_unknown_unhandled_passive + $services_unknown_unhandled_not_checked;
|
||||
|
||||
$services_warning = $services_warning_handled + $services_warning_unhandled;
|
||||
$services_critical = $services_critical_handled + $services_critical_unhandled;
|
||||
$services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($services_critical): ?>
|
||||
<div class="box entry state_critical <?= $services_critical_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
@ -29,7 +14,7 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
||||
<?= $services_critical_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_critical_unhandled_passive): ?>
|
||||
<?php if ($services_critical_passive): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
@ -40,21 +25,21 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_critical_unhandled_passive > 1) {
|
||||
if ($services_critical_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$services_critical_unhandled_passive
|
||||
$services_critical_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$services_critical_unhandled_passive
|
||||
$services_critical_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_critical_unhandled_not_checked): ?>
|
||||
<?php if ($services_critical_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
@ -65,15 +50,15 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_critical_unhandled_not_checked > 1) {
|
||||
if ($services_critical_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$services_critical_unhandled_not_checked
|
||||
$services_critical_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$services_critical_unhandled_not_checked
|
||||
$services_critical_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
@ -97,7 +82,7 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
||||
<?= $services_warning_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_warning_unhandled_passive): ?>
|
||||
<?php if ($services_warning_passive): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
@ -108,21 +93,21 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_warning_unhandled_passive > 1) {
|
||||
if ($services_warning_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$services_warning_unhandled_passive
|
||||
$services_warning_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$services_warning_unhandled_passive
|
||||
$services_warning_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_warning_unhandled_not_checked): ?>
|
||||
<?php if ($services_warning_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
@ -133,15 +118,15 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_warning_unhandled_not_checked > 1) {
|
||||
if ($services_warning_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$services_warning_unhandled_not_checked
|
||||
$services_warning_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$services_warning_unhandled_not_checked
|
||||
$services_warning_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
@ -165,7 +150,7 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
||||
<?= $services_unknown_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_unknown_unhandled_passive): ?>
|
||||
<?php if ($services_unknown_passive): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
@ -176,21 +161,21 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_unknown_unhandled_passive > 1) {
|
||||
if ($services_unknown_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$services_unknown_unhandled_passive
|
||||
$services_unknown_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$services_unknown_unhandled_passive
|
||||
$services_unknown_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_unknown_unhandled_not_checked): ?>
|
||||
<?php if ($services_unknown_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
@ -201,15 +186,15 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_unknown_unhandled_not_checked > 1) {
|
||||
if ($services_unknown_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$services_unknown_unhandled_not_checked
|
||||
$services_unknown_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$services_unknown_unhandled_not_checked
|
||||
$services_unknown_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
@ -49,29 +49,23 @@
|
||||
<?= $this->partial(
|
||||
'tactical/components/parts/servicestatesummarybyhoststate.phtml',
|
||||
array(
|
||||
'hostState' => 0,
|
||||
'services_ok' => $this->statusSummary->services_ok_on_up_hosts,
|
||||
'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_up_hosts,
|
||||
'services_pending' => $this->statusSummary->services_pending_on_up_hosts,
|
||||
'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_up_hosts,
|
||||
'services_warning_handled_active' => $this->statusSummary->services_warning_handled_active_on_up_hosts,
|
||||
'services_warning_handled_passive' => $this->statusSummary->services_warning_handled_passive_on_up_hosts,
|
||||
'services_warning_handled_not_checked' => $this->statusSummary->services_warning_handled_not_checked_on_up_hosts,
|
||||
'services_warning_unhandled_active' => $this->statusSummary->services_warning_unhandled_active_on_up_hosts,
|
||||
'services_warning_unhandled_passive' => $this->statusSummary->services_warning_unhandled_passive_on_up_hosts,
|
||||
'services_warning_unhandled_not_checked' => $this->statusSummary->services_warning_unhandled_not_checked_on_up_hosts,
|
||||
'services_critical_handled_active' => $this->statusSummary->services_critical_handled_active_on_up_hosts,
|
||||
'services_critical_handled_passive' => $this->statusSummary->services_critical_handled_passive_on_up_hosts,
|
||||
'services_critical_handled_not_checked' => $this->statusSummary->services_critical_handled_not_checked_on_up_hosts,
|
||||
'services_critical_unhandled_active' => $this->statusSummary->services_critical_unhandled_active_on_up_hosts,
|
||||
'services_critical_unhandled_passive' => $this->statusSummary->services_critical_unhandled_passive_on_up_hosts,
|
||||
'services_critical_unhandled_not_checked' => $this->statusSummary->services_critical_unhandled_not_checked_on_up_hosts,
|
||||
'services_unknown_handled_active' => $this->statusSummary->services_unknown_handled_active_on_up_hosts,
|
||||
'services_unknown_handled_passive' => $this->statusSummary->services_unknown_handled_passive_on_up_hosts,
|
||||
'services_unknown_handled_not_checked' => $this->statusSummary->services_unknown_handled_not_checked_on_up_hosts,
|
||||
'services_unknown_unhandled_active' => $this->statusSummary->services_unknown_unhandled_active_on_up_hosts,
|
||||
'services_unknown_unhandled_passive' => $this->statusSummary->services_unknown_unhandled_passive_on_up_hosts,
|
||||
'services_unknown_unhandled_not_checked' => $this->statusSummary->services_unknown_unhandled_not_checked_on_up_hosts
|
||||
'hostState' => 0,
|
||||
'services_ok' => $this->statusSummary->services_ok_on_up_hosts,
|
||||
'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_up_hosts,
|
||||
'services_pending' => $this->statusSummary->services_pending_on_up_hosts,
|
||||
'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_up_hosts,
|
||||
'services_warning' => $this->statusSummary->services_warning_on_up_hosts,
|
||||
'services_warning_unhandled' => $this->statusSummary->services_warning_unhandled_on_up_hosts,
|
||||
'services_warning_passive' => $this->statusSummary->services_warning_passive_on_up_hosts,
|
||||
'services_warning_not_checked' => $this->statusSummary->services_warning_not_checked_on_up_hosts,
|
||||
'services_critical' => $this->statusSummary->services_critical_on_up_hosts,
|
||||
'services_critical_unhandled' => $this->statusSummary->services_critical_unhandled_on_up_hosts,
|
||||
'services_critical_passive' => $this->statusSummary->services_critical_passive_on_up_hosts,
|
||||
'services_critical_not_checked' => $this->statusSummary->services_critical_not_checked_on_up_hosts,
|
||||
'services_unknown' => $this->statusSummary->services_unknown_on_up_hosts,
|
||||
'services_unknown_unhandled' => $this->statusSummary->services_unknown_unhandled_on_up_hosts,
|
||||
'services_unknown_passive' => $this->statusSummary->services_unknown_passive_on_up_hosts,
|
||||
'services_unknown_not_checked' => $this->statusSummary->services_unknown_not_checked_on_up_hosts
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
@ -117,29 +111,23 @@
|
||||
<?= $this->partial(
|
||||
'tactical/components/parts/servicestatesummarybyhoststate.phtml',
|
||||
array(
|
||||
'hostState' => 99,
|
||||
'services_ok' => $this->statusSummary->services_ok_on_pending_hosts,
|
||||
'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_pending_hosts,
|
||||
'services_pending' => $this->statusSummary->services_pending_on_pending_hosts,
|
||||
'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_pending_hosts,
|
||||
'services_warning_handled_active' => $this->statusSummary->services_warning_handled_active_on_pending_hosts,
|
||||
'services_warning_handled_passive' => $this->statusSummary->services_warning_handled_passive_on_pending_hosts,
|
||||
'services_warning_handled_not_checked' => $this->statusSummary->services_warning_handled_not_checked_on_pending_hosts,
|
||||
'services_warning_unhandled_active' => $this->statusSummary->services_warning_unhandled_active_on_pending_hosts,
|
||||
'services_warning_unhandled_passive' => $this->statusSummary->services_warning_unhandled_passive_on_pending_hosts,
|
||||
'services_warning_unhandled_not_checked' => $this->statusSummary->services_warning_unhandled_not_checked_on_pending_hosts,
|
||||
'services_critical_handled_active' => $this->statusSummary->services_critical_handled_active_on_pending_hosts,
|
||||
'services_critical_handled_passive' => $this->statusSummary->services_critical_handled_passive_on_pending_hosts,
|
||||
'services_critical_handled_not_checked' => $this->statusSummary->services_critical_handled_not_checked_on_pending_hosts,
|
||||
'services_critical_unhandled_active' => $this->statusSummary->services_critical_unhandled_active_on_pending_hosts,
|
||||
'services_critical_unhandled_passive' => $this->statusSummary->services_critical_unhandled_passive_on_pending_hosts,
|
||||
'services_critical_unhandled_not_checked' => $this->statusSummary->services_critical_unhandled_not_checked_on_pending_hosts,
|
||||
'services_unknown_handled_active' => $this->statusSummary->services_unknown_handled_active_on_pending_hosts,
|
||||
'services_unknown_handled_passive' => $this->statusSummary->services_unknown_handled_passive_on_pending_hosts,
|
||||
'services_unknown_handled_not_checked' => $this->statusSummary->services_unknown_handled_not_checked_on_pending_hosts,
|
||||
'services_unknown_unhandled_active' => $this->statusSummary->services_unknown_unhandled_active_on_pending_hosts,
|
||||
'services_unknown_unhandled_passive' => $this->statusSummary->services_unknown_unhandled_passive_on_pending_hosts,
|
||||
'services_unknown_unhandled_not_checked' => $this->statusSummary->services_unknown_unhandled_not_checked_on_pending_hosts
|
||||
'hostState' => 99,
|
||||
'services_ok' => $this->statusSummary->services_ok_on_pending_hosts,
|
||||
'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_pending_hosts,
|
||||
'services_pending' => $this->statusSummary->services_pending_on_pending_hosts,
|
||||
'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_pending_hosts,
|
||||
'services_warning' => $this->statusSummary->services_warning_on_pending_hosts,
|
||||
'services_warning_unhandled' => $this->statusSummary->services_warning_unhandled_on_pending_hosts,
|
||||
'services_warning_passive' => $this->statusSummary->services_warning_passive_on_pending_hosts,
|
||||
'services_warning_not_checked' => $this->statusSummary->services_warning_not_checked_on_pending_hosts,
|
||||
'services_critical' => $this->statusSummary->services_critical_on_pending_hosts,
|
||||
'services_critical_unhandled' => $this->statusSummary->services_critical_unhandled_on_pending_hosts,
|
||||
'services_critical_passive' => $this->statusSummary->services_critical_passive_on_pending_hosts,
|
||||
'services_critical_not_checked' => $this->statusSummary->services_critical_not_checked_on_pending_hosts,
|
||||
'services_unknown' => $this->statusSummary->services_unknown_on_pending_hosts,
|
||||
'services_unknown_unhandled' => $this->statusSummary->services_unknown_unhandled_on_pending_hosts,
|
||||
'services_unknown_passive' => $this->statusSummary->services_unknown_passive_on_pending_hosts,
|
||||
'services_unknown_not_checked' => $this->statusSummary->services_unknown_not_checked_on_pending_hosts
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
@ -163,7 +151,7 @@
|
||||
<?= $this->statusSummary->hosts_unreachable_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_unhandled_passive): ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_passive): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
@ -173,21 +161,21 @@
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_unreachable_unhandled_passive > 1) {
|
||||
if ($this->statusSummary->hosts_unreachable_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$this->statusSummary->hosts_unreachable_unhandled_passive
|
||||
$this->statusSummary->hosts_unreachable_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$this->statusSummary->hosts_unreachable_unhandled_passive
|
||||
$this->statusSummary->hosts_unreachable_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_unhandled_not_checked): ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
@ -197,15 +185,15 @@
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_unreachable_unhandled_not_checked > 1) {
|
||||
if ($this->statusSummary->hosts_unreachable_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_unreachable_unhandled_not_checked
|
||||
$this->statusSummary->hosts_unreachable_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_unreachable_unhandled_not_checked
|
||||
$this->statusSummary->hosts_unreachable_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
@ -217,29 +205,23 @@
|
||||
<?= $this->partial(
|
||||
'tactical/components/parts/servicestatesummarybyhoststate.phtml',
|
||||
array(
|
||||
'hostState' => 2,
|
||||
'services_ok' => $this->statusSummary->services_ok_on_unreachable_hosts,
|
||||
'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_unreachable_hosts,
|
||||
'services_pending' => $this->statusSummary->services_pending_on_unreachable_hosts,
|
||||
'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_unreachable_hosts,
|
||||
'services_warning_handled_active' => $this->statusSummary->services_warning_handled_active_on_unreachable_hosts,
|
||||
'services_warning_handled_passive' => $this->statusSummary->services_warning_handled_passive_on_unreachable_hosts,
|
||||
'services_warning_handled_not_checked' => $this->statusSummary->services_warning_handled_not_checked_on_unreachable_hosts,
|
||||
'services_warning_unhandled_active' => $this->statusSummary->services_warning_unhandled_active_on_unreachable_hosts,
|
||||
'services_warning_unhandled_passive' => $this->statusSummary->services_warning_unhandled_passive_on_unreachable_hosts,
|
||||
'services_warning_unhandled_not_checked' => $this->statusSummary->services_warning_unhandled_not_checked_on_unreachable_hosts,
|
||||
'services_critical_handled_active' => $this->statusSummary->services_critical_handled_active_on_unreachable_hosts,
|
||||
'services_critical_handled_passive' => $this->statusSummary->services_critical_handled_passive_on_unreachable_hosts,
|
||||
'services_critical_handled_not_checked' => $this->statusSummary->services_critical_handled_not_checked_on_unreachable_hosts,
|
||||
'services_critical_unhandled_active' => $this->statusSummary->services_critical_unhandled_active_on_unreachable_hosts,
|
||||
'services_critical_unhandled_passive' => $this->statusSummary->services_critical_unhandled_passive_on_unreachable_hosts,
|
||||
'services_critical_unhandled_not_checked' => $this->statusSummary->services_critical_unhandled_not_checked_on_unreachable_hosts,
|
||||
'services_unknown_handled_active' => $this->statusSummary->services_unknown_handled_active_on_unreachable_hosts,
|
||||
'services_unknown_handled_passive' => $this->statusSummary->services_unknown_handled_passive_on_unreachable_hosts,
|
||||
'services_unknown_handled_not_checked' => $this->statusSummary->services_unknown_handled_not_checked_on_unreachable_hosts,
|
||||
'services_unknown_unhandled_active' => $this->statusSummary->services_unknown_unhandled_active_on_unreachable_hosts,
|
||||
'services_unknown_unhandled_passive' => $this->statusSummary->services_unknown_unhandled_passive_on_unreachable_hosts,
|
||||
'services_unknown_unhandled_not_checked' => $this->statusSummary->services_unknown_unhandled_not_checked_on_unreachable_hosts
|
||||
'hostState' => 2,
|
||||
'services_ok' => $this->statusSummary->services_ok_on_unreachable_hosts,
|
||||
'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_unreachable_hosts,
|
||||
'services_pending' => $this->statusSummary->services_pending_on_unreachable_hosts,
|
||||
'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_unreachable_hosts,
|
||||
'services_warning' => $this->statusSummary->services_warning_on_unreachable_hosts,
|
||||
'services_warning_unhandled' => $this->statusSummary->services_warning_unhandled_on_unreachable_hosts,
|
||||
'services_warning_passive' => $this->statusSummary->services_warning_passive_on_unreachable_hosts,
|
||||
'services_warning_not_checked' => $this->statusSummary->services_warning_not_checked_on_unreachable_hosts,
|
||||
'services_critical' => $this->statusSummary->services_critical_on_unreachable_hosts,
|
||||
'services_critical_unhandled' => $this->statusSummary->services_critical_unhandled_on_unreachable_hosts,
|
||||
'services_critical_passive' => $this->statusSummary->services_critical_passive_on_unreachable_hosts,
|
||||
'services_critical_not_checked' => $this->statusSummary->services_critical_not_checked_on_unreachable_hosts,
|
||||
'services_unknown' => $this->statusSummary->services_unknown_on_unreachable_hosts,
|
||||
'services_unknown_unhandled' => $this->statusSummary->services_unknown_unhandled_on_unreachable_hosts,
|
||||
'services_unknown_passive' => $this->statusSummary->services_unknown_passive_on_unreachable_hosts,
|
||||
'services_unknown_not_checked' => $this->statusSummary->services_unknown_not_checked_on_unreachable_hosts
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
@ -263,7 +245,7 @@
|
||||
<?= $this->statusSummary->hosts_down_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_unhandled_passive): ?>
|
||||
<?php if ($this->statusSummary->hosts_down_passive): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
@ -273,21 +255,21 @@
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_down_unhandled_passive > 1) {
|
||||
if ($this->statusSummary->hosts_down_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$this->statusSummary->hosts_down_unhandled_passive
|
||||
$this->statusSummary->hosts_down_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$this->statusSummary->hosts_down_unhandled_passive
|
||||
$this->statusSummary->hosts_down_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_unhandled_not_checked): ?>
|
||||
<?php if ($this->statusSummary->hosts_down_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
@ -297,15 +279,15 @@
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_down_unhandled_not_checked > 1) {
|
||||
if ($this->statusSummary->hosts_down_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_down_unhandled_not_checked
|
||||
$this->statusSummary->hosts_down_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_down_unhandled_not_checked
|
||||
$this->statusSummary->hosts_down_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
@ -317,29 +299,23 @@
|
||||
<?= $this->partial(
|
||||
'tactical/components/parts/servicestatesummarybyhoststate.phtml',
|
||||
array(
|
||||
'hostState' => 1,
|
||||
'services_ok' => $this->statusSummary->services_ok_on_down_hosts,
|
||||
'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_down_hosts,
|
||||
'services_pending' => $this->statusSummary->services_pending_on_down_hosts,
|
||||
'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_down_hosts,
|
||||
'services_warning_handled_active' => $this->statusSummary->services_warning_handled_active_on_down_hosts,
|
||||
'services_warning_handled_passive' => $this->statusSummary->services_warning_handled_passive_on_down_hosts,
|
||||
'services_warning_handled_not_checked' => $this->statusSummary->services_warning_handled_not_checked_on_down_hosts,
|
||||
'services_warning_unhandled_active' => $this->statusSummary->services_warning_unhandled_active_on_down_hosts,
|
||||
'services_warning_unhandled_passive' => $this->statusSummary->services_warning_unhandled_passive_on_down_hosts,
|
||||
'services_warning_unhandled_not_checked' => $this->statusSummary->services_warning_unhandled_not_checked_on_down_hosts,
|
||||
'services_critical_handled_active' => $this->statusSummary->services_critical_handled_active_on_down_hosts,
|
||||
'services_critical_handled_passive' => $this->statusSummary->services_critical_handled_passive_on_down_hosts,
|
||||
'services_critical_handled_not_checked' => $this->statusSummary->services_critical_handled_not_checked_on_down_hosts,
|
||||
'services_critical_unhandled_active' => $this->statusSummary->services_critical_unhandled_active_on_down_hosts,
|
||||
'services_critical_unhandled_passive' => $this->statusSummary->services_critical_unhandled_passive_on_down_hosts,
|
||||
'services_critical_unhandled_not_checked' => $this->statusSummary->services_critical_unhandled_not_checked_on_down_hosts,
|
||||
'services_unknown_handled_active' => $this->statusSummary->services_unknown_handled_active_on_down_hosts,
|
||||
'services_unknown_handled_passive' => $this->statusSummary->services_unknown_handled_passive_on_down_hosts,
|
||||
'services_unknown_handled_not_checked' => $this->statusSummary->services_unknown_handled_not_checked_on_down_hosts,
|
||||
'services_unknown_unhandled_active' => $this->statusSummary->services_unknown_unhandled_active_on_down_hosts,
|
||||
'services_unknown_unhandled_passive' => $this->statusSummary->services_unknown_unhandled_passive_on_down_hosts,
|
||||
'services_unknown_unhandled_not_checked' => $this->statusSummary->services_unknown_unhandled_not_checked_on_down_hosts
|
||||
'hostState' => 1,
|
||||
'services_ok' => $this->statusSummary->services_ok_on_down_hosts,
|
||||
'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_down_hosts,
|
||||
'services_pending' => $this->statusSummary->services_pending_on_down_hosts,
|
||||
'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_down_hosts,
|
||||
'services_warning' => $this->statusSummary->services_warning_on_down_hosts,
|
||||
'services_warning_unhandled' => $this->statusSummary->services_warning_unhandled_on_down_hosts,
|
||||
'services_warning_passive' => $this->statusSummary->services_warning_passive_on_down_hosts,
|
||||
'services_warning_not_checked' => $this->statusSummary->services_warning_not_checked_on_down_hosts,
|
||||
'services_critical' => $this->statusSummary->services_critical_on_down_hosts,
|
||||
'services_critical_unhandled' => $this->statusSummary->services_critical_unhandled_on_down_hosts,
|
||||
'services_critical_passive' => $this->statusSummary->services_critical_passive_on_down_hosts,
|
||||
'services_critical_not_checked' => $this->statusSummary->services_critical_not_checked_on_down_hosts,
|
||||
'services_unknown' => $this->statusSummary->services_unknown_on_down_hosts,
|
||||
'services_unknown_unhandled' => $this->statusSummary->services_unknown_unhandled_on_down_hosts,
|
||||
'services_unknown_passive' => $this->statusSummary->services_unknown_passive_on_down_hosts,
|
||||
'services_unknown_not_checked' => $this->statusSummary->services_unknown_not_checked_on_down_hosts
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
|
@ -36,35 +36,27 @@ class StatusSummaryQuery extends IdoQuery
|
||||
{
|
||||
protected $columnMap = array(
|
||||
'hoststatussummary' => array(
|
||||
'hosts_up' => 'SUM(CASE WHEN object_type = \'host\' AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_up_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_pending' => 'SUM(CASE WHEN object_type = \'host\' AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'hosts_pending_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_down' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_handled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime > 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_unhandled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_handled_active' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_handled_passive' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_handled_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_unhandled_active' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_unhandled_passive' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_unhandled_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_handled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime > 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_unhandled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_handled_active' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_handled_passive' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_handled_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_unhandled_active' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_unhandled_passive' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_unhandled_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_active' => 'SUM(CASE WHEN object_type = \'host\' AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_passive' => 'SUM(CASE WHEN object_type = \'host\' AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_processing_event_handlers' => 'SUM(CASE WHEN object_type = \'host\' AND is_processing_events = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_triggering_notifications' => 'SUM(CASE WHEN object_type = \'host\' AND is_triggering_notifications = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_with_flap_detection' => 'SUM(CASE WHEN object_type = \'host\' AND is_allowed_to_flap = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_flapping' => 'SUM(CASE WHEN object_type = \'host\' AND is_flapping = 1 THEN 1 ELSE 0 END)'
|
||||
'hosts_up' => 'SUM(CASE WHEN object_type = \'host\' AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_up_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_pending' => 'SUM(CASE WHEN object_type = \'host\' AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'hosts_pending_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_down' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_handled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime > 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_unhandled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_passive' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_down_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_handled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime > 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_unhandled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_passive' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_unreachable_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND state = 2 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_active' => 'SUM(CASE WHEN object_type = \'host\' AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_passive' => 'SUM(CASE WHEN object_type = \'host\' AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'hosts_not_checked' => 'SUM(CASE WHEN object_type = \'host\' AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_not_processing_event_handlers' => 'SUM(CASE WHEN object_type = \'host\' AND is_processing_events = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_not_triggering_notifications' => 'SUM(CASE WHEN object_type = \'host\' AND is_triggering_notifications = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_without_flap_detection' => 'SUM(CASE WHEN object_type = \'host\' AND is_allowed_to_flap = 0 THEN 1 ELSE 0 END)',
|
||||
'hosts_flapping' => 'SUM(CASE WHEN object_type = \'host\' AND is_flapping = 1 THEN 1 ELSE 0 END)'
|
||||
),
|
||||
'servicestatussummary' => array(
|
||||
'services_ok' => 'SUM(CASE WHEN object_type = \'service\' AND state = 0 THEN 1 ELSE 0 END)',
|
||||
@ -74,127 +66,91 @@ class StatusSummaryQuery extends IdoQuery
|
||||
'services_warning' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_active' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_passive' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_not_checked' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_active' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_passive' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_not_checked' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_passive' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_not_checked' => 'SUM(CASE WHEN object_type = \'service\' AND state = 1 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_active' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_passive' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_not_checked' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_active' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_passive' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_not_checked' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_passive' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_not_checked' => 'SUM(CASE WHEN object_type = \'service\' AND state = 2 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_active' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_passive' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_not_checked' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_active' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_passive' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_not_checked' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 AND (acknowledged + in_downtime + COALESCE(host_state, 0)) = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_passive' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_not_checked' => 'SUM(CASE WHEN object_type = \'service\' AND state = 3 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_active' => 'SUM(CASE WHEN object_type = \'service\' AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_passive' => 'SUM(CASE WHEN object_type = \'service\' AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_not_checked' => 'SUM(CASE WHEN object_type = \'service\' AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_processing_event_handlers' => 'SUM(CASE WHEN object_type = \'service\' AND is_processing_events = 1 THEN 1 ELSE 0 END)',
|
||||
'services_triggering_notifications' => 'SUM(CASE WHEN object_type = \'service\' AND is_triggering_notifications = 1 THEN 1 ELSE 0 END)',
|
||||
'services_with_flap_detection' => 'SUM(CASE WHEN object_type = \'service\' AND is_allowed_to_flap = 1 THEN 1 ELSE 0 END)',
|
||||
'services_not_processing_event_handlers' => 'SUM(CASE WHEN object_type = \'service\' AND is_processing_events = 0 THEN 1 ELSE 0 END)',
|
||||
'services_not_triggering_notifications' => 'SUM(CASE WHEN object_type = \'service\' AND is_triggering_notifications = 0 THEN 1 ELSE 0 END)',
|
||||
'services_without_flap_detection' => 'SUM(CASE WHEN object_type = \'service\' AND is_allowed_to_flap = 0 THEN 1 ELSE 0 END)',
|
||||
'services_flapping' => 'SUM(CASE WHEN object_type = \'service\' AND is_flapping = 1 THEN 1 ELSE 0 END)',
|
||||
|
||||
|
||||
'services_ok_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_pending_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'services_pending_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_active_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 1 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_passive_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 1 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 1 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_active_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 1 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_passive_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 1 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 1 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_active_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 2 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_passive_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 2 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 2 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_active_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 2 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_passive_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 2 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 2 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_active_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 3 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_passive_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 3 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 3 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_active_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 3 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_passive_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 3 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 3 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_pending_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'services_pending_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_active_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 1 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_passive_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 1 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 1 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_active_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 1 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_passive_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 1 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 1 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_active_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 2 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_passive_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 2 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 2 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_active_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 2 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_passive_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 2 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 2 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_active_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 3 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_passive_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 3 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 3 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_active_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 3 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_passive_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 3 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 3 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_pending_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'services_pending_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_active_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 1 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_passive_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 1 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 1 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_active_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 1 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_passive_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 1 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 1 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_active_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 2 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_passive_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 2 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 2 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_active_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 2 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_passive_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 2 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 2 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_active_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 3 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_passive_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 3 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 3 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_active_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 3 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_passive_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 3 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 3 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_pending_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'services_pending_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_active_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 1 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_passive_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 1 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_handled_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 1 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_active_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 1 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_passive_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 1 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 1 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_active_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 2 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_passive_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 2 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_handled_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 2 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_active_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 2 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_passive_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 2 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 2 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_active_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 3 AND acknowledged + in_downtime > 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_passive_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 3 AND acknowledged + in_downtime > 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_handled_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 3 AND acknowledged + in_downtime > 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_active_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 3 AND acknowledged + in_downtime = 0 AND is_active_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_passive_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 3 AND acknowledged + in_downtime = 0 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 3 AND acknowledged + in_downtime = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)'
|
||||
'services_ok_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_pending_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'services_pending_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 1 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_passive_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 1 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 1 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 2 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 2 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_passive_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 2 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 2 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 3 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 3 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_passive_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 3 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_not_checked_on_up_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 0 AND state = 3 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_pending_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'services_pending_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 1 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_passive_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 1 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 1 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 2 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 2 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_passive_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 2 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 2 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 3 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 3 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_passive_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 3 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_not_checked_on_down_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 1 AND state = 3 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_pending_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'services_pending_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 1 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_passive_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 1 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 1 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 2 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 2 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_passive_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 2 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 2 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 3 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 3 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_passive_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 3 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_not_checked_on_unreachable_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 2 AND state = 3 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_pending_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'services_pending_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 1 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_passive_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 1 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 1 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 2 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 2 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_passive_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 2 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 2 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 3 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 3 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_passive_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 3 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_not_checked_on_pending_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND host_state = 99 AND state = 3 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)'
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -46,27 +46,19 @@ class StatusSummary extends DataView
|
||||
'hosts_down',
|
||||
'hosts_down_handled',
|
||||
'hosts_down_unhandled',
|
||||
'hosts_down_handled_active',
|
||||
'hosts_down_handled_passive',
|
||||
'hosts_down_handled_not_checked',
|
||||
'hosts_down_unhandled_active',
|
||||
'hosts_down_unhandled_passive',
|
||||
'hosts_down_unhandled_not_checked',
|
||||
'hosts_down_passive',
|
||||
'hosts_down_not_checked',
|
||||
'hosts_unreachable',
|
||||
'hosts_unreachable_handled',
|
||||
'hosts_unreachable_unhandled',
|
||||
'hosts_unreachable_handled_active',
|
||||
'hosts_unreachable_handled_passive',
|
||||
'hosts_unreachable_handled_not_checked',
|
||||
'hosts_unreachable_unhandled_active',
|
||||
'hosts_unreachable_unhandled_passive',
|
||||
'hosts_unreachable_unhandled_not_checked',
|
||||
'hosts_unreachable_passive',
|
||||
'hosts_unreachable_not_checked',
|
||||
'hosts_active',
|
||||
'hosts_passive',
|
||||
'hosts_not_checked',
|
||||
'hosts_processing_event_handlers',
|
||||
'hosts_triggering_notifications',
|
||||
'hosts_with_flap_detection',
|
||||
'hosts_not_processing_event_handlers',
|
||||
'hosts_not_triggering_notifications',
|
||||
'hosts_without_flap_detection',
|
||||
'hosts_flapping',
|
||||
'services_ok',
|
||||
'services_ok_not_checked',
|
||||
@ -75,36 +67,24 @@ class StatusSummary extends DataView
|
||||
'services_warning',
|
||||
'services_warning_handled',
|
||||
'services_warning_unhandled',
|
||||
'services_warning_handled_active',
|
||||
'services_warning_handled_passive',
|
||||
'services_warning_handled_not_checked',
|
||||
'services_warning_unhandled_active',
|
||||
'services_warning_unhandled_passive',
|
||||
'services_warning_unhandled_not_checked',
|
||||
'services_warning_passive',
|
||||
'services_warning_not_checked',
|
||||
'services_critical',
|
||||
'services_critical_handled',
|
||||
'services_critical_unhandled',
|
||||
'services_critical_handled_active',
|
||||
'services_critical_handled_passive',
|
||||
'services_critical_handled_not_checked',
|
||||
'services_critical_unhandled_active',
|
||||
'services_critical_unhandled_passive',
|
||||
'services_critical_unhandled_not_checked',
|
||||
'services_critical_passive',
|
||||
'services_critical_not_checked',
|
||||
'services_unknown',
|
||||
'services_unknown_handled',
|
||||
'services_unknown_unhandled',
|
||||
'services_unknown_handled_active',
|
||||
'services_unknown_handled_passive',
|
||||
'services_unknown_handled_not_checked',
|
||||
'services_unknown_unhandled_active',
|
||||
'services_unknown_unhandled_passive',
|
||||
'services_unknown_unhandled_not_checked',
|
||||
'services_unknown_passive',
|
||||
'services_unknown_not_checked',
|
||||
'services_active',
|
||||
'services_passive',
|
||||
'services_not_checked',
|
||||
'services_processing_event_handlers',
|
||||
'services_triggering_notifications',
|
||||
'services_with_flap_detection',
|
||||
'services_not_processing_event_handlers',
|
||||
'services_not_triggering_notifications',
|
||||
'services_without_flap_detection',
|
||||
'services_flapping',
|
||||
|
||||
|
||||
@ -112,90 +92,66 @@ class StatusSummary extends DataView
|
||||
'services_ok_not_checked_on_up_hosts',
|
||||
'services_pending_on_up_hosts',
|
||||
'services_pending_not_checked_on_up_hosts',
|
||||
'services_warning_handled_active_on_up_hosts',
|
||||
'services_warning_handled_passive_on_up_hosts',
|
||||
'services_warning_handled_not_checked_on_up_hosts',
|
||||
'services_warning_unhandled_active_on_up_hosts',
|
||||
'services_warning_unhandled_passive_on_up_hosts',
|
||||
'services_warning_unhandled_not_checked_on_up_hosts',
|
||||
'services_critical_handled_active_on_up_hosts',
|
||||
'services_critical_handled_passive_on_up_hosts',
|
||||
'services_critical_handled_not_checked_on_up_hosts',
|
||||
'services_critical_unhandled_active_on_up_hosts',
|
||||
'services_critical_unhandled_passive_on_up_hosts',
|
||||
'services_critical_unhandled_not_checked_on_up_hosts',
|
||||
'services_unknown_handled_active_on_up_hosts',
|
||||
'services_unknown_handled_passive_on_up_hosts',
|
||||
'services_unknown_handled_not_checked_on_up_hosts',
|
||||
'services_unknown_unhandled_active_on_up_hosts',
|
||||
'services_unknown_unhandled_passive_on_up_hosts',
|
||||
'services_unknown_unhandled_not_checked_on_up_hosts',
|
||||
'services_warning_on_up_hosts',
|
||||
'services_warning_unhandled_on_up_hosts',
|
||||
'services_warning_passive_on_up_hosts',
|
||||
'services_warning_not_checked_on_up_hosts',
|
||||
'services_critical_on_up_hosts',
|
||||
'services_critical_unhandled_on_up_hosts',
|
||||
'services_critical_passive_on_up_hosts',
|
||||
'services_critical_not_checked_on_up_hosts',
|
||||
'services_unknown_on_up_hosts',
|
||||
'services_unknown_unhandled_on_up_hosts',
|
||||
'services_unknown_passive_on_up_hosts',
|
||||
'services_unknown_not_checked_on_up_hosts',
|
||||
'services_ok_on_down_hosts',
|
||||
'services_ok_not_checked_on_down_hosts',
|
||||
'services_pending_on_down_hosts',
|
||||
'services_pending_not_checked_on_down_hosts',
|
||||
'services_warning_handled_active_on_down_hosts',
|
||||
'services_warning_handled_passive_on_down_hosts',
|
||||
'services_warning_handled_not_checked_on_down_hosts',
|
||||
'services_warning_unhandled_active_on_down_hosts',
|
||||
'services_warning_unhandled_passive_on_down_hosts',
|
||||
'services_warning_unhandled_not_checked_on_down_hosts',
|
||||
'services_critical_handled_active_on_down_hosts',
|
||||
'services_critical_handled_passive_on_down_hosts',
|
||||
'services_critical_handled_not_checked_on_down_hosts',
|
||||
'services_critical_unhandled_active_on_down_hosts',
|
||||
'services_critical_unhandled_passive_on_down_hosts',
|
||||
'services_critical_unhandled_not_checked_on_down_hosts',
|
||||
'services_unknown_handled_active_on_down_hosts',
|
||||
'services_unknown_handled_passive_on_down_hosts',
|
||||
'services_unknown_handled_not_checked_on_down_hosts',
|
||||
'services_unknown_unhandled_active_on_down_hosts',
|
||||
'services_unknown_unhandled_passive_on_down_hosts',
|
||||
'services_unknown_unhandled_not_checked_on_down_hosts',
|
||||
'services_warning_on_down_hosts',
|
||||
'services_warning_unhandled_on_down_hosts',
|
||||
'services_warning_passive_on_down_hosts',
|
||||
'services_warning_not_checked_on_down_hosts',
|
||||
'services_critical_on_down_hosts',
|
||||
'services_critical_unhandled_on_down_hosts',
|
||||
'services_critical_passive_on_down_hosts',
|
||||
'services_critical_not_checked_on_down_hosts',
|
||||
'services_unknown_on_down_hosts',
|
||||
'services_unknown_unhandled_on_down_hosts',
|
||||
'services_unknown_passive_on_down_hosts',
|
||||
'services_unknown_not_checked_on_down_hosts',
|
||||
'services_ok_on_unreachable_hosts',
|
||||
'services_ok_not_checked_on_unreachable_hosts',
|
||||
'services_pending_on_unreachable_hosts',
|
||||
'services_pending_not_checked_on_unreachable_hosts',
|
||||
'services_warning_handled_active_on_unreachable_hosts',
|
||||
'services_warning_handled_passive_on_unreachable_hosts',
|
||||
'services_warning_handled_not_checked_on_unreachable_hosts',
|
||||
'services_warning_unhandled_active_on_unreachable_hosts',
|
||||
'services_warning_unhandled_passive_on_unreachable_hosts',
|
||||
'services_warning_unhandled_not_checked_on_unreachable_hosts',
|
||||
'services_critical_handled_active_on_unreachable_hosts',
|
||||
'services_critical_handled_passive_on_unreachable_hosts',
|
||||
'services_critical_handled_not_checked_on_unreachable_hosts',
|
||||
'services_critical_unhandled_active_on_unreachable_hosts',
|
||||
'services_critical_unhandled_passive_on_unreachable_hosts',
|
||||
'services_critical_unhandled_not_checked_on_unreachable_hosts',
|
||||
'services_unknown_handled_active_on_unreachable_hosts',
|
||||
'services_unknown_handled_passive_on_unreachable_hosts',
|
||||
'services_unknown_handled_not_checked_on_unreachable_hosts',
|
||||
'services_unknown_unhandled_active_on_unreachable_hosts',
|
||||
'services_unknown_unhandled_passive_on_unreachable_hosts',
|
||||
'services_unknown_unhandled_not_checked_on_unreachable_hosts',
|
||||
'services_warning_on_unreachable_hosts',
|
||||
'services_warning_unhandled_on_unreachable_hosts',
|
||||
'services_warning_passive_on_unreachable_hosts',
|
||||
'services_warning_not_checked_on_unreachable_hosts',
|
||||
'services_critical_on_unreachable_hosts',
|
||||
'services_critical_unhandled_on_unreachable_hosts',
|
||||
'services_critical_passive_on_unreachable_hosts',
|
||||
'services_critical_not_checked_on_unreachable_hosts',
|
||||
'services_unknown_on_unreachable_hosts',
|
||||
'services_unknown_unhandled_on_unreachable_hosts',
|
||||
'services_unknown_passive_on_unreachable_hosts',
|
||||
'services_unknown_not_checked_on_unreachable_hosts',
|
||||
'services_ok_on_pending_hosts',
|
||||
'services_ok_not_checked_on_pending_hosts',
|
||||
'services_pending_on_pending_hosts',
|
||||
'services_pending_not_checked_on_pending_hosts',
|
||||
'services_warning_handled_active_on_pending_hosts',
|
||||
'services_warning_handled_passive_on_pending_hosts',
|
||||
'services_warning_handled_not_checked_on_pending_hosts',
|
||||
'services_warning_unhandled_active_on_pending_hosts',
|
||||
'services_warning_unhandled_passive_on_pending_hosts',
|
||||
'services_warning_unhandled_not_checked_on_pending_hosts',
|
||||
'services_critical_handled_active_on_pending_hosts',
|
||||
'services_critical_handled_passive_on_pending_hosts',
|
||||
'services_critical_handled_not_checked_on_pending_hosts',
|
||||
'services_critical_unhandled_active_on_pending_hosts',
|
||||
'services_critical_unhandled_passive_on_pending_hosts',
|
||||
'services_critical_unhandled_not_checked_on_pending_hosts',
|
||||
'services_unknown_handled_active_on_pending_hosts',
|
||||
'services_unknown_handled_passive_on_pending_hosts',
|
||||
'services_unknown_handled_not_checked_on_pending_hosts',
|
||||
'services_unknown_unhandled_active_on_pending_hosts',
|
||||
'services_unknown_unhandled_passive_on_pending_hosts',
|
||||
'services_unknown_unhandled_not_checked_on_pending_hosts'
|
||||
'services_warning_on_pending_hosts',
|
||||
'services_warning_unhandled_on_pending_hosts',
|
||||
'services_warning_passive_on_pending_hosts',
|
||||
'services_warning_not_checked_on_pending_hosts',
|
||||
'services_critical_on_pending_hosts',
|
||||
'services_critical_unhandled_on_pending_hosts',
|
||||
'services_critical_passive_on_pending_hosts',
|
||||
'services_critical_not_checked_on_pending_hosts',
|
||||
'services_unknown_on_pending_hosts',
|
||||
'services_unknown_unhandled_on_pending_hosts',
|
||||
'services_unknown_passive_on_pending_hosts',
|
||||
'services_unknown_not_checked_on_pending_hosts'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user