Refactor tactical overview style
This commit is contained in:
parent
bd7ce10efc
commit
3692993d20
|
@ -1,76 +1,81 @@
|
|||
<span class="state">
|
||||
<table>
|
||||
<thead>
|
||||
<th>Host checks</th>
|
||||
<th>Service checks</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="box hostservicechecks">
|
||||
<h2><?= $this->translate('Host- and Servicechecks'); ?></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_active): ?>
|
||||
<span class="state check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_active_checks_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<div class="box entry">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_active_checks_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_active . ' ' . $this->translate('Active'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_passive): ?>
|
||||
<span class="state check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_active_checks_enabled' => 0, 'host_passive_checks_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<div class="box entry">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_active_checks_enabled' => 0, 'host_passive_checks_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_passive . ' ' . $this->translate('Passive'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_not_checked): ?>
|
||||
<span class="state check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_active_checks_enabled' => 0, 'host_passive_checks_enabled' => 0)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<div class="box entry">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_active_checks_enabled' => 0, 'host_passive_checks_enabled' => 0)
|
||||
); ?>" style="color: red;">
|
||||
<?= $this->statusSummary->hosts_not_checked . ' ' . $this->translate('Disabled'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($this->statusSummary->services_active): ?>
|
||||
<span class="state check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_active_checks_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->services_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<div class="box entry">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_active_checks_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->services_active . ' ' . $this->translate('Active'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->services_passive): ?>
|
||||
<span class="state check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_active_checks_enabled' => 0, 'service_passive_checks_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->services_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<div class="box entry">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_active_checks_enabled' => 0, 'service_passive_checks_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->services_passive . ' ' . $this->translate('Passive'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->services_not_checked): ?>
|
||||
<span class="state check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_active_checks_enabled' => 0, 'service_passive_checks_enabled' => 0)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->services_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<div class="box entry">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_active_checks_enabled' => 0, 'service_passive_checks_enabled' => 0)
|
||||
); ?>" style="color: red;">
|
||||
<?= $this->statusSummary->services_not_checked . ' ' . $this->translate('Disabled'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,315 +0,0 @@
|
|||
<span class="state">
|
||||
<table>
|
||||
<caption>Hosts offline</caption>
|
||||
<thead>
|
||||
<th>Hosts</th>
|
||||
<th>Services</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($this->statusSummary->hosts_down): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="state down">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down; ?> DOWN
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_down_unhandled): ?>
|
||||
<span class="state down unhandled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 1, 'host_handled' => 0)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down_unhandled; ?> unhandled
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_down_unhandled_active): ?>
|
||||
<span class="state down unhandled check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 1,
|
||||
'host_handled' => 0,
|
||||
'host_active_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down_unhandled_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_unhandled_passive): ?>
|
||||
<span class="state down unhandled check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 1,
|
||||
'host_handled' => 0,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down_unhandled_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_unhandled_not_checked): ?>
|
||||
<span class="state down unhandled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 1,
|
||||
'host_handled' => 0,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down_unhandled_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_handled): ?>
|
||||
<span class="state down handled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 1, 'host_handled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down_handled; ?> handled
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_down_handled_active): ?>
|
||||
<span class="state down handled check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 1,
|
||||
'host_handled' => 1,
|
||||
'host_active_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down_handled_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_handled_passive): ?>
|
||||
<span class="state down handled check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 1,
|
||||
'host_handled' => 1,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down_handled_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_handled_not_checked): ?>
|
||||
<span class="state down handled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 1,
|
||||
'host_handled' => 1,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_down_handled_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</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_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
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="state unreachable">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 2)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable; ?> UNREACHABLE
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_unhandled): ?>
|
||||
<span class="state unreachable unhandled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 2, 'host_handled' => 0)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable_unhandled; ?> unhandled
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_unhandled_active): ?>
|
||||
<span class="state unreachable unhandled check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 2,
|
||||
'host_handled' => 0,
|
||||
'host_active_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable_unhandled_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_unhandled_passive): ?>
|
||||
<span class="state unreachable unhandled check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 2,
|
||||
'host_handled' => 0,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable_unhandled_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_unhandled_not_checked): ?>
|
||||
<span class="state unreachable unhandled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 2,
|
||||
'host_handled' => 0,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable_unhandled_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_handled): ?>
|
||||
<span class="state unreachable handled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_state' => 2, 'host_handled' => 1)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable_handled; ?> handled
|
||||
</a>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_handled_active): ?>
|
||||
<span class="state unreachable handled check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 2,
|
||||
'host_handled' => 1,
|
||||
'host_active_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable_handled_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_handled_passive): ?>
|
||||
<span class="state unreachable handled check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 2,
|
||||
'host_handled' => 1,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable_handled_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_handled_not_checked): ?>
|
||||
<span class="state unreachable handled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 2,
|
||||
'host_handled' => 1,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_unreachable_handled_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</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_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
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
|
@ -1,127 +0,0 @@
|
|||
<span class="state">
|
||||
<table>
|
||||
<caption>Hosts online</caption>
|
||||
<thead>
|
||||
<th>Hosts</th>
|
||||
<th>Services</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($this->statusSummary->hosts_up): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="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): ?>
|
||||
<span class="state up check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 0,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_up_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</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_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
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_pending): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="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): ?>
|
||||
<span class="state pending check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array(
|
||||
'host_state' => 99,
|
||||
'host_active_checks_enabled' => 0,
|
||||
'host_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $this->statusSummary->hosts_pending_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</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_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
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
|
@ -14,175 +14,165 @@ $hosts_not_processing_event_handlers = $total_hosts - $summary->hosts_processing
|
|||
$services_not_processing_event_handlers = $total_services - $summary->services_processing_event_handlers;
|
||||
|
||||
?>
|
||||
<span class="state">
|
||||
<table>
|
||||
<caption>Monitoring features</caption>
|
||||
<thead>
|
||||
<th>Hosts</th>
|
||||
<th>Services</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span class="state subtitle">Flap detection</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="box monitoringfeatures">
|
||||
<h2><?= $this->translate('Monitoring Features'); ?></h2>
|
||||
<div class="box contents">
|
||||
<div class="box-separator"><?= $this->translate('Flap detection'); ?></div>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if ($hosts_without_flap_detection): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_flap_detection_enabled' => 0)
|
||||
); ?>">
|
||||
<?= $hosts_without_flap_detection; ?> hosts disabled
|
||||
</a>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_flap_detection_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d hosts disabled', $hosts_without_flap_detection); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_flap_detection_enabled' => 1)
|
||||
); ?>">
|
||||
All hosts enabled
|
||||
</a>
|
||||
<div class="box entry feature_enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_flap_detection_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->translate('All hosts enabled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($summary->hosts_flapping): ?>
|
||||
<span class="state flapping">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_is_flapping' => 1)
|
||||
); ?>">
|
||||
<?= $summary->hosts_flapping; ?> hosts flapping
|
||||
); ?>" style="color: red;">
|
||||
<?= sprintf('%d hosts flapping', $summary->hosts_flapping); ?>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($services_without_flap_detection): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_flap_detection_enabled' => 0)
|
||||
); ?>">
|
||||
<?= $services_without_flap_detection; ?> services disabled
|
||||
</a>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_flap_detection_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d services disabled', $services_without_flap_detection); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_flap_detection_enabled' => 1)
|
||||
); ?>">
|
||||
All services enabled
|
||||
</a>
|
||||
<div class="box entry feature_enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_flap_detection_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->translate('All services enabled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($summary->services_flapping): ?>
|
||||
<span class="state flapping">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_is_flapping' => 1)
|
||||
); ?>">
|
||||
<?= $summary->services_flapping; ?> services flapping
|
||||
); ?>" style="color: red;">
|
||||
<?= sprintf('%d services flapping', $summary->services_flapping); ?>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span class="state subtitle">Notifications</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="box-separator"><?= $this->translate('Notifications'); ?></div>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if ($hosts_not_triggering_notifications): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_notifications_enabled' => 0)
|
||||
); ?>">
|
||||
<?= $hosts_not_triggering_notifications; ?> hosts disabled
|
||||
</a>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_notifications_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d hosts disabled', $hosts_not_triggering_notifications); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_notifications_enabled' => 1)
|
||||
); ?>">
|
||||
All hosts enabled
|
||||
</a>
|
||||
<div class="box entry feature_enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_notifications_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->translate('All hosts enabled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($services_not_triggering_notifications): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_notifications_enabled' => 0)
|
||||
); ?>">
|
||||
<?= $services_not_triggering_notifications; ?> hosts disabled
|
||||
</a>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_notifications_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d services disabled', $services_not_triggering_notifications); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_notifications_enabled' => 1)
|
||||
); ?>">
|
||||
All services enabled
|
||||
</a>
|
||||
<div class="box entry feature_enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_notifications_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->translate('All services enabled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<span class="state subtitle">Event handlers</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="box-separator"><?= $this->translate('Event handlers'); ?></div>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if ($hosts_not_processing_event_handlers): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_event_handler_enabled' => 0)
|
||||
); ?>">
|
||||
<?= $hosts_not_processing_event_handlers; ?> hosts disabled
|
||||
</a>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_event_handler_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d hosts disabled', $hosts_not_processing_event_handlers); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_event_handler_enabled' => 1)
|
||||
); ?>">
|
||||
All hosts enabled
|
||||
</a>
|
||||
<div class="box entry feature_enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/hosts',
|
||||
array('host_event_handler_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->translate('All hosts enabled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($services_not_processing_event_handlers): ?>
|
||||
<span class="state disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_event_handler_enabled' => 0)
|
||||
); ?>">
|
||||
<?= $services_not_processing_event_handlers; ?> hosts disabled
|
||||
</a>
|
||||
<div class="box entry feature_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_event_handler_enabled' => 0)
|
||||
); ?>">
|
||||
<?= sprintf('%d services disabled', $services_not_processing_event_handlers); ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="state enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_event_handler_enabled' => 1)
|
||||
); ?>">
|
||||
All services enabled
|
||||
</a>
|
||||
<div class="box entry feature_enabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('service_event_handler_enabled' => 1)
|
||||
); ?>">
|
||||
<?= $this->translate('All services enabled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -14,7 +14,7 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
|||
?>
|
||||
|
||||
<?php if ($services_critical): ?>
|
||||
<span class="state critical">
|
||||
<div class="box entry state_critical <?= $services_critical_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 2)
|
||||
|
@ -22,123 +22,67 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
|||
<?= $services_critical; ?> CRITICAL
|
||||
</a>
|
||||
<?php if ($services_critical_unhandled): ?>
|
||||
<span class="state critical unhandled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 2, 'service_handled' => 0)
|
||||
); ?>">
|
||||
<?= $services_critical_unhandled; ?> unhandled
|
||||
</a>
|
||||
<?php if ($services_critical_unhandled_active): ?>
|
||||
<span class="state critical unhandled check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 2,
|
||||
'service_handled' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_critical_unhandled_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 2, 'service_handled' => 0)
|
||||
); ?>">
|
||||
<?= $services_critical_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_critical_unhandled_passive): ?>
|
||||
<span class="state critical unhandled check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 2,
|
||||
'service_handled' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_critical_unhandled_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 2,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_critical_unhandled_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$services_critical_unhandled_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$services_critical_unhandled_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_critical_unhandled_not_checked): ?>
|
||||
<span class="state critical unhandled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 2,
|
||||
'service_handled' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_critical_unhandled_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 2,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_critical_unhandled_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$services_critical_unhandled_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$services_critical_unhandled_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($services_critical_handled): ?>
|
||||
<span class="state critical handled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 2, 'service_handled' => 1)
|
||||
); ?>">
|
||||
<?= $services_critical_handled; ?> handled
|
||||
</a>
|
||||
<?php if ($services_critical_handled_active): ?>
|
||||
<span class="state critical handled check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 2,
|
||||
'service_handled' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_critical_handled_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($services_critical_handled_passive): ?>
|
||||
<span class="state critical handled check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 2,
|
||||
'service_handled' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_critical_handled_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($services_critical_handled_not_checked): ?>
|
||||
<span class="state critical handled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 2,
|
||||
'service_handled' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_critical_handled_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($services_warning): ?>
|
||||
<span class="state warning">
|
||||
<div class="box entry state_warning <?= $services_warning_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 1)
|
||||
|
@ -146,123 +90,67 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
|||
<?= $services_warning; ?> WARNING
|
||||
</a>
|
||||
<?php if ($services_warning_unhandled): ?>
|
||||
<span class="state warning unhandled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 1, 'service_handled' => 0)
|
||||
); ?>">
|
||||
<?= $services_warning_unhandled; ?> unhandled
|
||||
</a>
|
||||
<?php if ($services_warning_unhandled_active): ?>
|
||||
<span class="state warning unhandled check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 1,
|
||||
'service_handled' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_warning_unhandled_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 1, 'service_handled' => 0)
|
||||
); ?>">
|
||||
<?= $services_warning_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_warning_unhandled_passive): ?>
|
||||
<span class="state warning unhandled check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 1,
|
||||
'service_handled' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_warning_unhandled_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_warning_unhandled_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$services_warning_unhandled_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$services_warning_unhandled_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_warning_unhandled_not_checked): ?>
|
||||
<span class="state warning unhandled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 1,
|
||||
'service_handled' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_warning_unhandled_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_warning_unhandled_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$services_warning_unhandled_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$services_warning_unhandled_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($services_warning_handled): ?>
|
||||
<span class="state warning handled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 1, 'service_handled' => 1)
|
||||
); ?>">
|
||||
<?= $services_warning_handled; ?> handled
|
||||
</a>
|
||||
<?php if ($services_warning_handled_active): ?>
|
||||
<span class="state warning handled check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 1,
|
||||
'service_handled' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_warning_handled_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($services_warning_handled_passive): ?>
|
||||
<span class="state warning handled check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 1,
|
||||
'service_handled' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_warning_handled_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($services_warning_handled_not_checked): ?>
|
||||
<span class="state warning handled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 1,
|
||||
'service_handled' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_warning_handled_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($services_unknown): ?>
|
||||
<span class="state unknown">
|
||||
<div class="box entry state_unknown <?= $services_unknown_unhandled ? '' : 'handled'; ?>">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 3)
|
||||
|
@ -270,123 +158,67 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
|||
<?= $services_unknown; ?> UNKNOWN
|
||||
</a>
|
||||
<?php if ($services_unknown_unhandled): ?>
|
||||
<span class="state unknown unhandled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 3, 'service_handled' => 0)
|
||||
); ?>">
|
||||
<?= $services_unknown_unhandled; ?> unhandled
|
||||
</a>
|
||||
<?php if ($services_unknown_unhandled_active): ?>
|
||||
<span class="state unknown unhandled check_active">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 3,
|
||||
'service_handled' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_unknown_unhandled_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 3, 'service_handled' => 0)
|
||||
); ?>">
|
||||
<?= $services_unknown_unhandled . ' ' . $this->translate('Unhandled'); ?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_unknown_unhandled_passive): ?>
|
||||
<span class="state unknown unhandled check_passive">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 3,
|
||||
'service_handled' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_unknown_unhandled_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 3,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_unknown_unhandled_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$services_unknown_unhandled_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$services_unknown_unhandled_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($services_unknown_unhandled_not_checked): ?>
|
||||
<span class="state unknown unhandled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 3,
|
||||
'service_handled' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_unknown_unhandled_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 3,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_unknown_unhandled_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$services_unknown_unhandled_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$services_unknown_unhandled_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($services_unknown_handled): ?>
|
||||
<span class="state unknown handled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 3, 'service_handled' => 1)
|
||||
); ?>">
|
||||
<?= $services_unknown_handled; ?> handled
|
||||
</a>
|
||||
<?php if ($services_unknown_handled_active): ?>
|
||||
<span class="state unknown handled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 3,
|
||||
'service_handled' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 1,
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_unknown_handled_active; ?> Active
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($services_unknown_handled_passive): ?>
|
||||
<span class="state unknown handled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 3,
|
||||
'service_handled' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 1
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_unknown_handled_passive; ?> Passive
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
<?php if ($services_unknown_handled_not_checked): ?>
|
||||
<span class="state unknown handled check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 3,
|
||||
'service_handled' => 1,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_unknown_handled_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($services_ok): ?>
|
||||
<span class="state ok">
|
||||
<div class="box entry state_ok">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 0)
|
||||
|
@ -394,24 +226,34 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
|||
<?= $services_ok; ?> OK
|
||||
</a>
|
||||
<?php if ($services_ok_not_checked): ?>
|
||||
<span class="state ok check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_ok_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 0,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_ok_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$services_ok_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$services_ok_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if ($services_pending): ?>
|
||||
<span class="state pending">
|
||||
<div class="box entry state_pending">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array('host_state' => $hostState, 'service_state' => 99)
|
||||
|
@ -419,19 +261,29 @@ $services_unknown = $services_unknown_handled + $services_unknown_unhandled;
|
|||
<?= $services_pending; ?> PENDING
|
||||
</a>
|
||||
<?php if ($services_pending_not_checked): ?>
|
||||
<span class="state pending check_disabled">
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 99,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?= $services_pending_not_checked; ?> Not checked
|
||||
</a>
|
||||
</span>
|
||||
<a href="<?= $this->href(
|
||||
'monitoring/list/services',
|
||||
array(
|
||||
'service_state' => 99,
|
||||
'host_state' => $hostState,
|
||||
'service_active_checks_enabled' => 0,
|
||||
'service_passive_checks_enabled' => 0
|
||||
)
|
||||
); ?>">
|
||||
<?php
|
||||
if ($services_pending_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$services_pending_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$services_pending_not_checked
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
|
|
@ -0,0 +1,351 @@
|
|||
<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_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
|
||||
)
|
||||
); ?>
|
||||
</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_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
|
||||
)
|
||||
); ?>
|
||||
</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_unhandled_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_unhandled_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$this->statusSummary->hosts_unreachable_unhandled_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$this->statusSummary->hosts_unreachable_unhandled_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_unreachable_unhandled_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_unhandled_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_unreachable_unhandled_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_unreachable_unhandled_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_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
|
||||
)
|
||||
); ?>
|
||||
</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_unhandled_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_unhandled_passive > 1) {
|
||||
printf(
|
||||
$this->translate('%d are passively checked'),
|
||||
$this->statusSummary->hosts_down_unhandled_passive
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is passively checked'),
|
||||
$this->statusSummary->hosts_down_unhandled_passive
|
||||
);
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
<?php if ($this->statusSummary->hosts_down_unhandled_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_unhandled_not_checked > 1) {
|
||||
printf(
|
||||
$this->translate('%d are not checked at all'),
|
||||
$this->statusSummary->hosts_down_unhandled_not_checked
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
$this->translate('%d is not checked at all'),
|
||||
$this->statusSummary->hosts_down_unhandled_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_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
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
|
@ -1,7 +1,6 @@
|
|||
<div class="content">
|
||||
<div class="summary" data-base-target="col2">
|
||||
<?= $this->render('tactical/components/hostsonline.phtml'); ?>
|
||||
<?= $this->render('tactical/components/hostsoffline.phtml'); ?>
|
||||
<div class="boxview" data-base-target="col2">
|
||||
<?= $this->render('tactical/components/statussummary.phtml'); ?>
|
||||
<?= $this->render('tactical/components/hostservicechecks.phtml'); ?>
|
||||
<?= $this->render('tactical/components/monitoringfeatures.phtml'); ?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue