mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
parent
6eade9c023
commit
df7a3a4cbe
@ -1,7 +1,7 @@
|
|||||||
<?php if (empty($this->hosts)): ?>
|
<?php if (empty($this->hosts)): ?>
|
||||||
- no hosts is matching this filter -
|
- no hosts is matching this filter -
|
||||||
<? return; endif ?>
|
<?php return; endif; ?>
|
||||||
<? $hosts = $this->hosts->paginate(); ?>
|
<?php $hosts = $this->hosts->paginate(); ?>
|
||||||
<table class="hosts action">
|
<table class="hosts action">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -10,7 +10,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<? foreach ($hosts as $host): ?>
|
<?php foreach ($hosts as $host): ?>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$icons = array();
|
$icons = array();
|
||||||
@ -54,6 +54,6 @@ $state_title = strtoupper($this->monitoringState($host, 'host'))
|
|||||||
array('class' => 'row-action')
|
array('class' => 'row-action')
|
||||||
) ?></td>
|
) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<? endforeach ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -43,9 +43,9 @@ if (isset($_GET['dir'])) {
|
|||||||
$always['dir'] = $_GET['dir'];
|
$always['dir'] = $_GET['dir'];
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<? if (! empty($fparams)): ?>
|
<?php if (! empty($fparams)): ?>
|
||||||
<div style="float: right; width: 20em; font-size: 0.8em;"><b>Filters</b><br>
|
<div style="float: right; width: 20em; font-size: 0.8em;"><b>Filters</b><br>
|
||||||
<? foreach ($fparams as $k => $v): ?>
|
<?php foreach ($fparams as $k => $v): ?>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
'x',
|
'x',
|
||||||
'monitoring/list/hosts',
|
'monitoring/list/hosts',
|
||||||
@ -54,9 +54,9 @@ if (isset($_GET['dir'])) {
|
|||||||
'style' => array('color' => 'red')
|
'style' => array('color' => 'red')
|
||||||
)
|
)
|
||||||
) ?> <?= $this->escape("$k = $v") ?></br>
|
) ?> <?= $this->escape("$k = $v") ?></br>
|
||||||
<? endforeach ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<form method="get" action="<?= $this->qUrl(
|
<form method="get" action="<?= $this->qUrl(
|
||||||
'monitoring/list/hosts?' . http_build_query(
|
'monitoring/list/hosts?' . http_build_query(
|
||||||
$this->hosts->getAppliedFilter()->toParams()
|
$this->hosts->getAppliedFilter()->toParams()
|
||||||
@ -77,19 +77,19 @@ Sort by <?= $this->formSelect(
|
|||||||
<input type="text" placeholder="Add filter..." name="search" />
|
<input type="text" placeholder="Add filter..." name="search" />
|
||||||
</form>
|
</form>
|
||||||
<?php // end filter ?>
|
<?php // end filter ?>
|
||||||
<? if (empty($hosts)): ?>
|
<?php if (empty($hosts)): ?>
|
||||||
|
|
||||||
<div class="alert alert-info fullpage_infobox">
|
<div class="alert alert-info fullpage_infobox">
|
||||||
Sorry, no host found for this search
|
Sorry, no host found for this search
|
||||||
</div>
|
</div>
|
||||||
<? return; endif ?>
|
<?php return; endif; ?>
|
||||||
|
|
||||||
<?= $this->paginationControl($hosts, null, null, array('preserve' => $this->preserve)) ?>
|
<?= $this->paginationControl($hosts, null, null, array('preserve' => $this->preserve)) ?>
|
||||||
|
|
||||||
<table class="action">
|
<table class="action">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<? foreach ($hosts as $host):
|
<?php foreach ($hosts as $host):
|
||||||
list($icons,$state_classes,$state_title) = getRowProperties($host,$this); ?>
|
list($icons,$state_classes,$state_title) = getRowProperties($host,$this); ?>
|
||||||
<tr class="<?= implode(' ', $state_classes) ?>">
|
<tr class="<?= implode(' ', $state_classes) ?>">
|
||||||
<td class="state" title="<?= $state_title ?>"><?= $this->qlink(
|
<td class="state" title="<?= $state_title ?>"><?= $this->qlink(
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<? if (empty($this->services)): ?>
|
<?php if (empty($this->services)): ?>
|
||||||
<div class="alert alert-info fullpage_infobox">
|
<div class="alert alert-info fullpage_infobox">
|
||||||
Sorry, no services found for this search
|
Sorry, no services found for this search
|
||||||
</div>
|
</div>
|
||||||
<? return; endif ?>
|
<?php return; endif; ?>
|
||||||
<?
|
<?
|
||||||
|
|
||||||
$services = $this->services->paginate();
|
$services = $this->services->paginate();
|
||||||
@ -16,7 +16,7 @@ $services = $this->services->paginate();
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<? foreach ($services as $service): ?>
|
<?php foreach ($services as $service): ?>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$icons = array();
|
$icons = array();
|
||||||
@ -68,6 +68,6 @@ if (isset($this->preserve['backend'])) {
|
|||||||
<?= $this->qlink($service->service_description, 'monitoring/show/service', $params, array('class' => 'row-action')) ?>
|
<?= $this->qlink($service->service_description, 'monitoring/show/service', $params, array('class' => 'row-action')) ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? endforeach ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
@ -63,9 +63,9 @@ if (isset($_GET['dir'])) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="dontprint">
|
<div class="dontprint">
|
||||||
<? if (! empty($fparams)): ?>
|
<?php if (! empty($fparams)): ?>
|
||||||
<div style="float: right; width: 20em; font-size: 0.8em;"><b>Filters</b><br>
|
<div style="float: right; width: 20em; font-size: 0.8em;"><b>Filters</b><br>
|
||||||
<? foreach ($fparams as $k => $v): ?>
|
<?php foreach ($fparams as $k => $v): ?>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
'x',
|
'x',
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
@ -74,9 +74,9 @@ if (isset($_GET['dir'])) {
|
|||||||
'style' => array('color' => 'red')
|
'style' => array('color' => 'red')
|
||||||
)
|
)
|
||||||
) ?> <?= $this->escape("$k = $v") ?></br>
|
) ?> <?= $this->escape("$k = $v") ?></br>
|
||||||
<? endforeach ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<form method="get" action="<?= $this->qUrl(
|
<form method="get" action="<?= $this->qUrl(
|
||||||
'monitoring/list/services?' . http_build_query(
|
'monitoring/list/services?' . http_build_query(
|
||||||
$this->services->getAppliedFilter()->toParams()
|
$this->services->getAppliedFilter()->toParams()
|
||||||
@ -106,11 +106,11 @@ Sort by <?= $this->formSelect(
|
|||||||
Sorry, no services found for this search
|
Sorry, no services found for this search
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php return; endif ?>
|
<?php return; endif; ?>
|
||||||
<?= $this->paginationControl($services, null, null, array('preserve' => $this->preserve )); ?>
|
<?= $this->paginationControl($services, null, null, array('preserve' => $this->preserve )); ?>
|
||||||
<table class="action">
|
<table class="action">
|
||||||
<tbody>
|
<tbody>
|
||||||
<? foreach ($services as $service):
|
<?php foreach ($services as $service):
|
||||||
list($host_col,$icons,$state_classes,$state_title,$graph) = getRowProperties($service,$last_host,$this); ?>
|
list($host_col,$icons,$state_classes,$state_title,$graph) = getRowProperties($service,$last_host,$this); ?>
|
||||||
<tr class="<?= implode(' ', $state_classes) ?>">
|
<tr class="<?= implode(' ', $state_classes) ?>">
|
||||||
<td class="state" title="<?= $state_title ?>">
|
<td class="state" title="<?= $state_title ?>">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<? if (! empty($this->comments)): ?>
|
<?php if (! empty($this->comments)): ?>
|
||||||
<?
|
<?
|
||||||
$list = array();
|
$list = array();
|
||||||
foreach ($this->comments as $comment) {
|
foreach ($this->comments as $comment) {
|
||||||
@ -22,4 +22,4 @@ foreach ($this->comments as $comment) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<b>Comments:</b><blockquote> <?= implode('<br />', $list) ?></blockquote>
|
<b>Comments:</b><blockquote> <?= implode('<br />', $list) ?></blockquote>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<? if (! empty($this->contacts)): ?>
|
<?php if (! empty($this->contacts)): ?>
|
||||||
<?
|
<?
|
||||||
$list = array();
|
$list = array();
|
||||||
foreach ($this->contacts as $contact) {
|
foreach ($this->contacts as $contact) {
|
||||||
@ -8,9 +8,9 @@ foreach ($this->contacts as $contact) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<b>Contacts:</b> <?= implode(', ', $list) ?><br />
|
<b>Contacts:</b> <?= implode(', ', $list) ?><br />
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<? if (! empty($this->contactgroups)): ?>
|
<?php if (! empty($this->contactgroups)): ?>
|
||||||
<?
|
<?
|
||||||
$list = array();
|
$list = array();
|
||||||
foreach ($this->contactgroups as $contactgroup) {
|
foreach ($this->contactgroups as $contactgroup) {
|
||||||
@ -20,5 +20,5 @@ foreach ($this->contactgroups as $contactgroup) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<b>Contactgroups:</b> <?= implode(', ', $list) ?><br />
|
<b>Contactgroups:</b> <?= implode(', ', $list) ?><br />
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
$showService = isset($this->service) && $this->tabs->getActiveName() !== 'host';
|
$showService = isset($this->service) && $this->tabs->getActiveName() !== 'host';
|
||||||
?>
|
?>
|
||||||
<? if (! $this->compact): ?>
|
<?php if (! $this->compact): ?>
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<table style="margin-bottom: 1em">
|
<table style="margin-bottom: 1em">
|
||||||
<tr class="<?= $this->monitoringState($this->host, 'host') ?><?= $this->host->host_handled ? ' handled' : '' ?>">
|
<tr class="<?= $this->monitoringState($this->host, 'host') ?><?= $this->host->host_handled ? ' handled' : '' ?>">
|
||||||
<td><b><?= $this->escape($this->host->host_name) ?><?
|
<td><b><?= $this->escape($this->host->host_name) ?><?
|
||||||
if ($this->host->host_address && $this->host->host_address !== $this->host->host_name): ?>
|
if ($this->host->host_address && $this->host->host_address !== $this->host->host_name): ?>
|
||||||
(<?= $this->escape($this->host->host_address) ?>)
|
(<?= $this->escape($this->host->host_address) ?>)
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
</b></td>
|
</b></td>
|
||||||
<td class="state"<?= $showService ? '' : ' rowspan="2"' ?>>
|
<td class="state"<?= $showService ? '' : ' rowspan="2"' ?>>
|
||||||
<?= $this->util()->getHostStateName($this->host->host_state); ?><br />
|
<?= $this->util()->getHostStateName($this->host->host_state); ?><br />
|
||||||
since <?= $this->timeSince($this->host->host_last_state_change) ?>
|
since <?= $this->timeSince($this->host->host_last_state_change) ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? if ($showService): ?>
|
<?php if ($showService): ?>
|
||||||
<tr class="<?= $this->monitoringState($this->service, 'service'); ?><?= $this->service->service_handled ? ' handled' : '' ?>">
|
<tr class="<?= $this->monitoringState($this->service, 'service'); ?><?= $this->service->service_handled ? ' handled' : '' ?>">
|
||||||
<td><b>Service: <?= $this->escape($this->service->service_description) ?></b></td>
|
<td><b>Service: <?= $this->escape($this->service->service_description) ?></b></td>
|
||||||
<td class="state">
|
<td class="state">
|
||||||
@ -24,7 +24,7 @@ $showService = isset($this->service) && $this->tabs->getActiveName() !== 'host';
|
|||||||
since <?= $this->timeSince($this->service->service_last_state_change) ?>
|
since <?= $this->timeSince($this->service->service_last_state_change) ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? else: ?>
|
<?php else: ?>
|
||||||
<tr><td><b>Host state</b></td></tr>
|
<tr><td><b>Host state</b></td></tr>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
@ -8,13 +8,13 @@ $history = $this->history->paginate();
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<? if (empty($history)): ?>
|
<?php if (empty($history)): ?>
|
||||||
There are no matching history entries right now
|
There are no matching history entries right now
|
||||||
<? else: ?>
|
<?php else: ?>
|
||||||
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>
|
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>
|
||||||
<table class="paginatable">
|
<table class="paginatable">
|
||||||
<tbody>
|
<tbody>
|
||||||
<? foreach ($history as $event): ?>
|
<?php foreach ($history as $event): ?>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ($event->object_type == 'host') {
|
if ($event->object_type == 'host') {
|
||||||
@ -27,11 +27,11 @@ $row_class = array_key_exists($event->state, $states) ? $states[$event->state] :
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr class="<?= $row_class ?>"><td class="state"><?= date('d.m. H:i', $event->timestamp ) ?></td>
|
<tr class="<?= $row_class ?>"><td class="state"><?= date('d.m. H:i', $event->timestamp ) ?></td>
|
||||||
<? if (! isset($this->host)): ?>
|
<?php if (! isset($this->host)): ?>
|
||||||
<td><?= $this->escape($event->host_name) ?></td>
|
<td><?= $this->escape($event->host_name) ?></td>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<? if (! isset($this->service)): ?>
|
<?php if (! isset($this->service)): ?>
|
||||||
<td><? if (isset($this->host)): ?>
|
<td><?php if (isset($this->host)): ?>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$event->service_description,
|
$event->service_description,
|
||||||
'monitoring/show/service',
|
'monitoring/show/service',
|
||||||
@ -40,11 +40,11 @@ $row_class = array_key_exists($event->state, $states) ? $states[$event->state] :
|
|||||||
'service' => $event->service_description
|
'service' => $event->service_description
|
||||||
)
|
)
|
||||||
) ?>
|
) ?>
|
||||||
<? else: ?>
|
<?php else: ?>
|
||||||
<?= $this->escape($event->service_description) ?>
|
<?= $this->escape($event->service_description) ?>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<td style="padding: 0.2em;"><?php
|
<td style="padding: 0.2em;"><?php
|
||||||
|
|
||||||
$imgparams = array(
|
$imgparams = array(
|
||||||
@ -83,9 +83,9 @@ switch ($event->type) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<? if ($event->attempt !== null): ?>
|
<?php if ($event->attempt !== null): ?>
|
||||||
[ <?= $event->attempt ?>/<?=$event->max_attempts ?> ]
|
[ <?= $event->attempt ?>/<?=$event->max_attempts ?> ]
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<?= $this->ticket_pattern ? preg_replace(
|
<?= $this->ticket_pattern ? preg_replace(
|
||||||
$this->ticket_pattern,
|
$this->ticket_pattern,
|
||||||
$this->ticket_link,
|
$this->ticket_link,
|
||||||
@ -93,7 +93,7 @@ switch ($event->type) {
|
|||||||
) : $this->pluginOutput($event->output) ?>
|
) : $this->pluginOutput($event->output) ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<? endforeach ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
'<b>Command:</b> ' . array_shift(preg_split('|!|', $this->host->host_check_command)),
|
'<b>Command:</b> ' . array_shift(preg_split('|!|', $this->host->host_check_command)),
|
||||||
$this->commandArguments($this->host->host_check_command)
|
$this->commandArguments($this->host->host_check_command)
|
||||||
) ?>
|
) ?>
|
||||||
<? if (! empty($this->hostgroups)): ?>
|
<?php if (! empty($this->hostgroups)): ?>
|
||||||
<?
|
<?
|
||||||
$list = array();
|
$list = array();
|
||||||
foreach ($this->hostgroups as $name => $alias) {
|
foreach ($this->hostgroups as $name => $alias) {
|
||||||
@ -22,19 +22,19 @@ foreach ($this->hostgroups as $name => $alias) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<b>Hostgroups:</b> <?= implode(', ', $list) ?><br />
|
<b>Hostgroups:</b> <?= implode(', ', $list) ?><br />
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<?= $this->render('show/components/contacts.phtml') ?>
|
<?= $this->render('show/components/contacts.phtml') ?>
|
||||||
<?= $this->render('show/components/comments.phtml') ?>
|
<?= $this->render('show/components/comments.phtml') ?>
|
||||||
|
|
||||||
<? foreach ($this->customvars as $name => $value): ?>
|
<?php foreach ($this->customvars as $name => $value): ?>
|
||||||
<b><?= $this->escape($name) ?>:</b> <?= $this->escape($value) ?><br />
|
<b><?= $this->escape($name) ?>:</b> <?= $this->escape($value) ?><br />
|
||||||
<? endforeach ?>
|
<?php endforeach; ?>
|
||||||
<? if ($this->host->host_perfdata): ?>
|
<?php if ($this->host->host_perfdata): ?>
|
||||||
<?= $this->expandable(
|
<?= $this->expandable(
|
||||||
'<b>Performance data</b>',
|
'<b>Performance data</b>',
|
||||||
$this->perfdata($this->host->host_perfdata),
|
$this->perfdata($this->host->host_perfdata),
|
||||||
array('collapsed' => false)
|
array('collapsed' => false)
|
||||||
) ?>
|
) ?>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<?= $this->preview_image ?>
|
<?= $this->preview_image ?>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="alert alert-info fullpage_infobox">
|
<div class="alert alert-info fullpage_infobox">
|
||||||
No service selected
|
No service selected
|
||||||
</div>
|
</div>
|
||||||
<?php return; endif ?>
|
<?php return; endif; ?>
|
||||||
<br>
|
<br>
|
||||||
<?= $this->expandable(
|
<?= $this->expandable(
|
||||||
'<b>'
|
'<b>'
|
||||||
|
@ -12,20 +12,20 @@
|
|||||||
<?= $this->render('show/components/contacts.phtml') ?>
|
<?= $this->render('show/components/contacts.phtml') ?>
|
||||||
<?= $this->render('show/components/comments.phtml') ?>
|
<?= $this->render('show/components/comments.phtml') ?>
|
||||||
|
|
||||||
<? foreach ($this->customvars as $name => $value): ?>
|
<?php foreach ($this->customvars as $name => $value): ?>
|
||||||
<b><?= $this->escape($name) ?>:</b> <?= $this->escape($value) ?><br />
|
<b><?= $this->escape($name) ?>:</b> <?= $this->escape($value) ?><br />
|
||||||
<? endforeach ?>
|
<?php endforeach; ?>
|
||||||
<?= $this->expandable(
|
<?= $this->expandable(
|
||||||
'<b>Command:</b> ' . array_shift(preg_split('|!|', $this->service->service_check_command)),
|
'<b>Command:</b> ' . array_shift(preg_split('|!|', $this->service->service_check_command)),
|
||||||
$this->commandArguments($this->service->service_check_command)
|
$this->commandArguments($this->service->service_check_command)
|
||||||
) ?>
|
) ?>
|
||||||
<? if ($this->service->service_perfdata): ?>
|
<?php if ($this->service->service_perfdata): ?>
|
||||||
<?= $this->expandable(
|
<?= $this->expandable(
|
||||||
'<b>Performance data</b>:',
|
'<b>Performance data</b>:',
|
||||||
$this->perfdata($this->service->service_perfdata),
|
$this->perfdata($this->service->service_perfdata),
|
||||||
array('collapsed' => false)
|
array('collapsed' => false)
|
||||||
) ?>
|
) ?>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?= $this->partial('show/legacy-service.phtml', array('service' => $this->service)) ?>
|
<?= $this->partial('show/legacy-service.phtml', array('service' => $this->service)) ?>
|
||||||
<?= $this->preview_image ?>
|
<?= $this->preview_image ?>
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
<? if (! $this->compact): ?>
|
<?php if (! $this->compact): ?>
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<? if (empty($this->summary)): ?>
|
<?php if (empty($this->summary)): ?>
|
||||||
There are no such services right now
|
There are no such services right now
|
||||||
<? else: ?>
|
<?php else: ?>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<? if (! $this->compact && $this->summary instanceof \Zend_Paginator): ?>
|
<?php if (! $this->compact && $this->summary instanceof \Zend_Paginator): ?>
|
||||||
<?= $this->paginationControl($this->summary, null, null, array('preserve' => $this->preserve)); ?>
|
<?= $this->paginationControl($this->summary, null, null, array('preserve' => $this->preserve)); ?>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<table class="pivot action">
|
<table class="pivot action">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -20,11 +20,11 @@ $now = time();
|
|||||||
<th style="width: 5em;">Critical</th>
|
<th style="width: 5em;">Critical</th>
|
||||||
<th style="width: 5em;">Unknown</th>
|
<th style="width: 5em;">Unknown</th>
|
||||||
<th style="width: 5em;">Warning</th>
|
<th style="width: 5em;">Warning</th>
|
||||||
<? if (! $this->compact): ?> <th style="width: 9%;">OK</th><? endif ?>
|
<?php if (! $this->compact): ?> <th style="width: 9%;">OK</th><?php endif; ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<? foreach ($this->summary as $row): ?>
|
<?php foreach ($this->summary as $row): ?>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$class_ok = '';
|
$class_ok = '';
|
||||||
@ -149,19 +149,19 @@ if (isset($row->hostgroup_name)) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<!-- <td class="<?= $name_class ?>"><? if ($row->last_state_change + 600 > $now): ?>
|
<!-- <td class="<?= $name_class ?>"><?php if ($row->last_state_change + 600 > $now): ?>
|
||||||
<blink><?= $this->timeSince($row->last_state_change) ?></blink>
|
<blink><?= $this->timeSince($row->last_state_change) ?></blink>
|
||||||
<? else: ?>
|
<?php else: ?>
|
||||||
<?= $this->timeSince($row->last_state_change) ?>
|
<?= $this->timeSince($row->last_state_change) ?>
|
||||||
<? endif ?></td>-->
|
<?php endif; ?></td>-->
|
||||||
<td style="text-align: left;"><?= $name_html ?></td>
|
<td style="text-align: left;"><?= $name_html ?></td>
|
||||||
<td class="<?= $class_critical ?>"><?= $html_critical ?></td>
|
<td class="<?= $class_critical ?>"><?= $html_critical ?></td>
|
||||||
<td class="<?= $class_unknown ?>"><?= $html_unknown ?></td>
|
<td class="<?= $class_unknown ?>"><?= $html_unknown ?></td>
|
||||||
<td class="<?= $class_warning ?>"><?= $html_warning ?></td>
|
<td class="<?= $class_warning ?>"><?= $html_warning ?></td>
|
||||||
<? if (! $this->compact): ?><td class="ok"><?= $html_ok ?></td><? endif ?>
|
<?php if (! $this->compact): ?><td class="ok"><?= $html_ok ?></td><?php endif; ?>
|
||||||
</tr>
|
</tr>
|
||||||
<? endforeach ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<? endif ?>
|
<?php endif; ?>
|
||||||
<? if ($this->compact): ?><a href="<?= $this->baseUrl('monitoring/summary/group') ?>">more</a><? endif ?>
|
<?php if ($this->compact): ?><a href="<?= $this->baseUrl('monitoring/summary/group') ?>">more</a><?php endif; ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user