diff --git a/modules/monitoring/application/controllers/TacticalController.php b/modules/monitoring/application/controllers/TacticalController.php index 3a3354d15..edfb1aa12 100644 --- a/modules/monitoring/application/controllers/TacticalController.php +++ b/modules/monitoring/application/controllers/TacticalController.php @@ -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' ) diff --git a/modules/monitoring/application/views/scripts/tactical/components/monitoringfeatures.phtml b/modules/monitoring/application/views/scripts/tactical/components/monitoringfeatures.phtml index a59ad6889..fe6656fb9 100644 --- a/modules/monitoring/application/views/scripts/tactical/components/monitoringfeatures.phtml +++ b/modules/monitoring/application/views/scripts/tactical/components/monitoringfeatures.phtml @@ -1,19 +1,3 @@ -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; - -?>

translate('Monitoring Features'); ?>

@@ -22,13 +6,13 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p - +statusSummary->hosts_without_flap_detection): ?>
- + statusSummary->hosts_without_flap_detection); ?>
@@ -39,24 +23,24 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p translate('All hosts enabled'); ?> -hosts_flapping): ?> +statusSummary->hosts_flapping): ?> - hosts_flapping); ?> + statusSummary->hosts_flapping); ?>
- +statusSummary->services_without_flap_detection): ?>
- + statusSummary->services_without_flap_detection); ?>
@@ -67,12 +51,12 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p translate('All services enabled'); ?> -services_flapping): ?> +statusSummary->services_flapping): ?> - services_flapping); ?> + statusSummary->services_flapping); ?>
@@ -85,13 +69,13 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p - +statusSummary->hosts_not_triggering_notifications): ?>
- + statusSummary->hosts_not_triggering_notifications); ?>
@@ -105,13 +89,13 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
- +statusSummary->services_not_triggering_notifications): ?>
- + statusSummary->services_not_triggering_notifications); ?>
@@ -132,13 +116,13 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p - +statusSummary->hosts_not_processing_event_handlers): ?>
- + statusSummary->hosts_not_processing_event_handlers); ?>
@@ -152,13 +136,13 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
- +statusSummary->services_not_processing_event_handlers): ?>
- + statusSummary->services_not_processing_event_handlers); ?>
diff --git a/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml b/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml index 96bca7cd4..61d384eb5 100644 --- a/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml +++ b/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml @@ -1,18 +1,3 @@ - -
href( 'monitoring/list/services', array( @@ -40,21 +25,21 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled; ) ); ?>"> 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 ); } ?> - + 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; translate('Unhandled'); ?> - + 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 ); } ?> - + 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; translate('Unhandled'); ?> - + 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 ); } ?> - + 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 ); } ?> diff --git a/modules/monitoring/application/views/scripts/tactical/components/statussummary.phtml b/modules/monitoring/application/views/scripts/tactical/components/statussummary.phtml index c1ac10b61..683a8e8c8 100644 --- a/modules/monitoring/application/views/scripts/tactical/components/statussummary.phtml +++ b/modules/monitoring/application/views/scripts/tactical/components/statussummary.phtml @@ -49,29 +49,23 @@ 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 ) ); ?> @@ -117,29 +111,23 @@ 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 ) ); ?> @@ -163,7 +151,7 @@ statusSummary->hosts_unreachable_unhandled . ' ' . $this->translate('Unhandled'); ?> -statusSummary->hosts_unreachable_unhandled_passive): ?> +statusSummary->hosts_unreachable_passive): ?> 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 ); } ?> -statusSummary->hosts_unreachable_unhandled_not_checked): ?> +statusSummary->hosts_unreachable_not_checked): ?> 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 @@ 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 ) ); ?> @@ -263,7 +245,7 @@ statusSummary->hosts_down_unhandled . ' ' . $this->translate('Unhandled'); ?> -statusSummary->hosts_down_unhandled_passive): ?> +statusSummary->hosts_down_passive): ?> 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 ); } ?> -statusSummary->hosts_down_unhandled_not_checked): ?> +statusSummary->hosts_down_not_checked): ?> 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 @@ 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 ) ); ?> diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusSummaryQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusSummaryQuery.php index 42c8916ca..3c2bbd338 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusSummaryQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusSummaryQuery.php @@ -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)' ) ); diff --git a/modules/monitoring/library/Monitoring/DataView/StatusSummary.php b/modules/monitoring/library/Monitoring/DataView/StatusSummary.php index 74a03771c..0e4a8d417 100644 --- a/modules/monitoring/library/Monitoring/DataView/StatusSummary.php +++ b/modules/monitoring/library/Monitoring/DataView/StatusSummary.php @@ -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' ); } }