mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
Split and merge status summary in tactical overview
This commit is contained in:
parent
5853614d55
commit
067fa02263
@ -27,70 +27,38 @@ class Monitoring_TacticalController extends MonitoringController
|
||||
'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_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_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_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_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',
|
||||
'services_ok_on_ok_hosts',
|
||||
'services_ok_not_checked_on_ok_hosts',
|
||||
'services_pending_on_ok_hosts',
|
||||
'services_pending_not_checked_on_ok_hosts',
|
||||
'services_warning_on_ok_hosts',
|
||||
'services_warning_unhandled_on_ok_hosts',
|
||||
'services_warning_passive_on_ok_hosts',
|
||||
'services_warning_not_checked_on_ok_hosts',
|
||||
'services_critical_on_ok_hosts',
|
||||
'services_critical_unhandled_on_ok_hosts',
|
||||
'services_critical_passive_on_ok_hosts',
|
||||
'services_critical_not_checked_on_ok_hosts',
|
||||
'services_unknown_on_ok_hosts',
|
||||
'services_unknown_unhandled_on_ok_hosts',
|
||||
'services_unknown_passive_on_ok_hosts',
|
||||
'services_unknown_not_checked_on_ok_hosts',
|
||||
'services_ok_on_problem_hosts',
|
||||
'services_ok_not_checked_on_problem_hosts',
|
||||
'services_pending_on_problem_hosts',
|
||||
'services_pending_not_checked_on_problem_hosts',
|
||||
'services_warning_on_problem_hosts',
|
||||
'services_warning_unhandled_on_problem_hosts',
|
||||
'services_warning_passive_on_problem_hosts',
|
||||
'services_warning_not_checked_on_problem_hosts',
|
||||
'services_critical_on_problem_hosts',
|
||||
'services_critical_unhandled_on_problem_hosts',
|
||||
'services_critical_passive_on_problem_hosts',
|
||||
'services_critical_not_checked_on_problem_hosts',
|
||||
'services_unknown_on_problem_hosts',
|
||||
'services_unknown_unhandled_on_problem_hosts',
|
||||
'services_unknown_passive_on_problem_hosts',
|
||||
'services_unknown_not_checked_on_problem_hosts',
|
||||
|
||||
'hosts_active',
|
||||
'hosts_passive',
|
||||
|
@ -0,0 +1,113 @@
|
||||
<div class="box ok_hosts">
|
||||
<h2><?= $this->translate('OK Hosts'); ?></h2>
|
||||
<div class="box contents">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->translate('Hosts'); ?></th>
|
||||
<th><?= $this->translate('Services'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if ($this->statusSummary->hosts_up): ?>
|
||||
<div class="box entry state_up">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 0)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_up; ?> UP
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_up_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 0,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_up_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_up_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_up_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_pending): ?>
|
||||
<div class="box entry state_pending">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 99)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_pending; ?> PENDING
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_pending_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 99,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_pending_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_pending_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_pending_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($this->statusSummary->hosts_up || $this->statusSummary->hosts_pending): ?>
|
||||
<?= $this->partial(
|
||||
'tactical/components/parts/servicestatesummarybyhoststate.phtml',
|
||||
array(
|
||||
'host_problem' => 0,
|
||||
'services_ok' => $this->statusSummary->services_ok_on_ok_hosts,
|
||||
'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_ok_hosts,
|
||||
'services_pending' => $this->statusSummary->services_pending_on_ok_hosts,
|
||||
'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_ok_hosts,
|
||||
'services_warning' => $this->statusSummary->services_warning_on_ok_hosts,
|
||||
'services_warning_unhandled' => $this->statusSummary->services_warning_unhandled_on_ok_hosts,
|
||||
'services_warning_passive' => $this->statusSummary->services_warning_passive_on_ok_hosts,
|
||||
'services_warning_not_checked' => $this->statusSummary->services_warning_not_checked_on_ok_hosts,
|
||||
'services_critical' => $this->statusSummary->services_critical_on_ok_hosts,
|
||||
'services_critical_unhandled' => $this->statusSummary->services_critical_unhandled_on_ok_hosts,
|
||||
'services_critical_passive' => $this->statusSummary->services_critical_passive_on_ok_hosts,
|
||||
'services_critical_not_checked' => $this->statusSummary->services_critical_not_checked_on_ok_hosts,
|
||||
'services_unknown' => $this->statusSummary->services_unknown_on_ok_hosts,
|
||||
'services_unknown_unhandled' => $this->statusSummary->services_unknown_unhandled_on_ok_hosts,
|
||||
'services_unknown_passive' => $this->statusSummary->services_unknown_passive_on_ok_hosts,
|
||||
'services_unknown_not_checked' => $this->statusSummary->services_unknown_not_checked_on_ok_hosts
|
||||
)
|
||||
); ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
@ -2,14 +2,14 @@
|
||||
<div class="box entry state_critical <?= $services_critical_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 2)
|
||||
array('host_problem' => $host_problem, 'service_state' => 2)
|
||||
); ?>">
|
||||
<?= $services_critical; ?> CRITICAL
|
||||
</a>
|
||||
<?php if ($services_critical_unhandled): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 2, 'service_handled' => 0)
|
||||
array('host_problem' => $host_problem, 'service_state' => 2, 'service_handled' => 0)
|
||||
); ?>">
|
||||
<?= $services_critical_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
@ -19,7 +19,7 @@
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 2,
|
||||
'host_state' => $hostState,
|
||||
'host_problem' => $host_problem,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
@ -44,7 +44,7 @@
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 2,
|
||||
'host_state' => $hostState,
|
||||
'host_problem' => $host_problem,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
@ -70,14 +70,14 @@
|
||||
<div class="box entry state_warning <?= $services_warning_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 1)
|
||||
array('host_problem' => $host_problem, 'service_state' => 1)
|
||||
); ?>">
|
||||
<?= $services_warning; ?> WARNING
|
||||
</a>
|
||||
<?php if ($services_warning_unhandled): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 1, 'service_handled' => 0)
|
||||
array('host_problem' => $host_problem, 'service_state' => 1, 'service_handled' => 0)
|
||||
); ?>">
|
||||
<?= $services_warning_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
@ -87,7 +87,7 @@
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 1,
|
||||
'host_state' => $hostState,
|
||||
'host_problem' => $host_problem,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
@ -112,7 +112,7 @@
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 1,
|
||||
'host_state' => $hostState,
|
||||
'host_problem' => $host_problem,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
@ -138,14 +138,14 @@
|
||||
<div class="box entry state_unknown <?= $services_unknown_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 3)
|
||||
array('host_problem' => $host_problem, 'service_state' => 3)
|
||||
); ?>">
|
||||
<?= $services_unknown; ?> UNKNOWN
|
||||
</a>
|
||||
<?php if ($services_unknown_unhandled): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 3, 'service_handled' => 0)
|
||||
array('host_problem' => $host_problem, 'service_state' => 3, 'service_handled' => 0)
|
||||
); ?>">
|
||||
<?= $services_unknown_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
@ -155,7 +155,7 @@
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 3,
|
||||
'host_state' => $hostState,
|
||||
'host_problem' => $host_problem,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
@ -180,7 +180,7 @@
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 3,
|
||||
'host_state' => $hostState,
|
||||
'host_problem' => $host_problem,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
@ -206,7 +206,7 @@
|
||||
<div class="box entry state_ok">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 0)
|
||||
array('host_problem' => $host_problem, 'service_state' => 0)
|
||||
); ?>">
|
||||
<?= $services_ok; ?> OK
|
||||
</a>
|
||||
@ -215,7 +215,7 @@
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 0,
|
||||
'host_state' => $hostState,
|
||||
'host_problem' => $host_problem,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
@ -241,7 +241,7 @@
|
||||
<div class="box entry state_pending">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 99)
|
||||
array('host_problem' => $host_problem, 'service_state' => 99)
|
||||
); ?>">
|
||||
<?= $services_pending; ?> PENDING
|
||||
</a>
|
||||
@ -250,7 +250,7 @@
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 99,
|
||||
'host_state' => $hostState,
|
||||
'host_problem' => $host_problem,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
|
@ -0,0 +1,175 @@
|
||||
<div class="box problem_hosts">
|
||||
<h2><?= $this->translate('Problem Hosts'); ?></h2>
|
||||
<div class="box contents">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->translate('Hosts'); ?></th>
|
||||
<th><?= $this->translate('Services'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if ($this->statusSummary->hosts_down): ?>
|
||||
<div class="box entry state_down <?= $this->statusSummary->hosts_down_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down; ?> DOWN
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_down_unhandled): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 1, 'host_unhandled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_passive): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 1,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_down_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$this->statusSummary->hosts_down_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$this->statusSummary->hosts_down_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 1,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_down_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_down_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_down_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable): ?>
|
||||
<div class="box entry state_unreachable <?= $this->statusSummary->hosts_unreachable_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 2)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable; ?> UNREACHABLE
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_unhandled): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 2, 'host_unhandled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_passive): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 2,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_unreachable_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$this->statusSummary->hosts_unreachable_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$this->statusSummary->hosts_unreachable_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 2,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_unreachable_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_unreachable_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_unreachable_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->partial(
|
||||
'tactical/components/parts/servicestatesummarybyhoststate.phtml',
|
||||
array(
|
||||
'host_problem' => 1,
|
||||
'services_ok' => $this->statusSummary->services_ok_on_problem_hosts,
|
||||
'services_ok_not_checked' => $this->statusSummary->services_ok_not_checked_on_problem_hosts,
|
||||
'services_pending' => $this->statusSummary->services_pending_on_problem_hosts,
|
||||
'services_pending_not_checked' => $this->statusSummary->services_pending_not_checked_on_problem_hosts,
|
||||
'services_warning' => $this->statusSummary->services_warning_on_problem_hosts,
|
||||
'services_warning_unhandled' => $this->statusSummary->services_warning_unhandled_on_problem_hosts,
|
||||
'services_warning_passive' => $this->statusSummary->services_warning_passive_on_problem_hosts,
|
||||
'services_warning_not_checked' => $this->statusSummary->services_warning_not_checked_on_problem_hosts,
|
||||
'services_critical' => $this->statusSummary->services_critical_on_problem_hosts,
|
||||
'services_critical_unhandled' => $this->statusSummary->services_critical_unhandled_on_problem_hosts,
|
||||
'services_critical_passive' => $this->statusSummary->services_critical_passive_on_problem_hosts,
|
||||
'services_critical_not_checked' => $this->statusSummary->services_critical_not_checked_on_problem_hosts,
|
||||
'services_unknown' => $this->statusSummary->services_unknown_on_problem_hosts,
|
||||
'services_unknown_unhandled' => $this->statusSummary->services_unknown_unhandled_on_problem_hosts,
|
||||
'services_unknown_passive' => $this->statusSummary->services_unknown_passive_on_problem_hosts,
|
||||
'services_unknown_not_checked' => $this->statusSummary->services_unknown_not_checked_on_problem_hosts
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
@ -1,327 +0,0 @@
|
||||
<div class="box statussummary">
|
||||
<h2><?= $this->translate('Status Summary'); ?></h2>
|
||||
<div class="box contents">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->translate('Hosts'); ?></th>
|
||||
<th><?= $this->translate('Services'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($this->statusSummary->hosts_up): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="box entry state_up">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 0)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_up; ?> UP
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_up_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 0,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_up_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_up_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_up_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?= $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' => $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>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_pending): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="box entry state_pending">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 99)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_pending; ?> PENDING
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_pending_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 99,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_pending_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_pending_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_pending_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?= $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' => $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>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="box entry state_unreachable <?= $this->statusSummary->hosts_unreachable_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 2)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable; ?> UNREACHABLE
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_unhandled): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 2, 'host_unhandled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_passive): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 2,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_unreachable_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$this->statusSummary->hosts_unreachable_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$this->statusSummary->hosts_unreachable_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 2,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_unreachable_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_unreachable_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_unreachable_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?= $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' => $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>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="box entry state_down <?= $this->statusSummary->hosts_down_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down; ?> DOWN
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_down_unhandled): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 1, 'host_unhandled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_passive): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 1,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_down_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$this->statusSummary->hosts_down_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$this->statusSummary->hosts_down_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_not_checked): ?>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 1,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($this->statusSummary->hosts_down_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_down_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_down_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?= $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' => $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>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
@ -1,6 +1,7 @@
|
||||
<div class="content">
|
||||
<div class="boxview" data-base-target="col2">
|
||||
<?= $this->render('tactical/components/statussummary.phtml'); ?>
|
||||
<?= $this->render('tactical/components/problem_hosts.phtml'); ?>
|
||||
<?= $this->render('tactical/components/ok_hosts.phtml'); ?>
|
||||
<?= $this->render('tactical/components/hostservicechecks.phtml'); ?>
|
||||
<?= $this->render('tactical/components/monitoringfeatures.phtml'); ?>
|
||||
</div>
|
||||
|
@ -87,70 +87,38 @@ class StatusSummaryQuery extends IdoQuery
|
||||
'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_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)'
|
||||
'services_ok_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_not_checked_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_pending_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'services_pending_not_checked_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 1 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_passive_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 1 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_not_checked_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 1 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 2 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 2 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_passive_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 2 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_not_checked_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 2 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 3 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 3 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_passive_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 3 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_not_checked_on_ok_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 0 OR host_state = 99) AND state = 3 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 0 THEN 1 ELSE 0 END)',
|
||||
'services_ok_not_checked_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 0 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_pending_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 99 THEN 1 ELSE 0 END)',
|
||||
'services_pending_not_checked_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 99 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_unhandled_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 1 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_warning_passive_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 1 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_warning_not_checked_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 1 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 2 THEN 1 ELSE 0 END)',
|
||||
'services_critical_unhandled_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 2 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_critical_passive_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 2 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_critical_not_checked_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 2 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 3 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_unhandled_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 3 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_passive_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 3 AND is_passive_checked = 1 THEN 1 ELSE 0 END)',
|
||||
'services_unknown_not_checked_on_problem_hosts' => 'SUM(CASE WHEN object_type = \'service\' AND (host_state = 1 OR host_state = 2) AND state = 3 AND is_active_checked = 0 AND is_passive_checked = 0 THEN 1 ELSE 0 END)'
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -88,70 +88,38 @@ class StatusSummary extends DataView
|
||||
'services_flapping',
|
||||
|
||||
|
||||
'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_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_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_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_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'
|
||||
'services_ok_on_ok_hosts',
|
||||
'services_ok_not_checked_on_ok_hosts',
|
||||
'services_pending_on_ok_hosts',
|
||||
'services_pending_not_checked_on_ok_hosts',
|
||||
'services_warning_on_ok_hosts',
|
||||
'services_warning_unhandled_on_ok_hosts',
|
||||
'services_warning_passive_on_ok_hosts',
|
||||
'services_warning_not_checked_on_ok_hosts',
|
||||
'services_critical_on_ok_hosts',
|
||||
'services_critical_unhandled_on_ok_hosts',
|
||||
'services_critical_passive_on_ok_hosts',
|
||||
'services_critical_not_checked_on_ok_hosts',
|
||||
'services_unknown_on_ok_hosts',
|
||||
'services_unknown_unhandled_on_ok_hosts',
|
||||
'services_unknown_passive_on_ok_hosts',
|
||||
'services_unknown_not_checked_on_ok_hosts',
|
||||
'services_ok_on_problem_hosts',
|
||||
'services_ok_not_checked_on_problem_hosts',
|
||||
'services_pending_on_problem_hosts',
|
||||
'services_pending_not_checked_on_problem_hosts',
|
||||
'services_warning_on_problem_hosts',
|
||||
'services_warning_unhandled_on_problem_hosts',
|
||||
'services_warning_passive_on_problem_hosts',
|
||||
'services_warning_not_checked_on_problem_hosts',
|
||||
'services_critical_on_problem_hosts',
|
||||
'services_critical_unhandled_on_problem_hosts',
|
||||
'services_critical_passive_on_problem_hosts',
|
||||
'services_critical_not_checked_on_problem_hosts',
|
||||
'services_unknown_on_problem_hosts',
|
||||
'services_unknown_unhandled_on_problem_hosts',
|
||||
'services_unknown_passive_on_problem_hosts',
|
||||
'services_unknown_not_checked_on_problem_hosts'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user