mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
parent
a3d3ba229d
commit
2576754958
@ -1,52 +1,55 @@
|
|||||||
<?php
|
<?php
|
||||||
use Icinga\Module\Monitoring\Object\Host;
|
|
||||||
use Icinga\Module\Monitoring\Web\Widget\StateBadges;
|
use Icinga\Module\Monitoring\Web\Widget\StateBadges;
|
||||||
|
|
||||||
if (! $this->compact): ?>
|
if (! $this->compact): ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<?= $this->sortBox ?>
|
<?= $this->sortBox ?>
|
||||||
<?= $this->limiter ?>
|
<?= $this->limiter ?>
|
||||||
<?= $this->paginator ?>
|
<?= $this->paginator ?>
|
||||||
<?= $this->filterEditor ?>
|
<?= $this->filterEditor ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<?php if (! $hostgroups->hasResult()): ?>
|
<?php if (! $hostgroups->hasResult()): ?>
|
||||||
<p><?= $this->translate('No host groups found matching the filter.') ?></p>
|
<p><?= $this->translate('No host groups found matching the filter.') ?></p>
|
||||||
</div>
|
</div>
|
||||||
<?php return; endif ?>
|
<?php return; endif ?>
|
||||||
<table class="action-table listing-table" data-base-target="_next">
|
<table class="action-table listing-table" data-base-target="_next">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= $this->translate('Host Group') ?></th>
|
<th><?= $this->translate('Host Group') ?></th>
|
||||||
<th><?= $this->translate('Total Hosts') ?></th>
|
<th><?= $this->translate('Total Hosts') ?></th>
|
||||||
<th><?= $this->translate('Host States') ?></th>
|
<th><?= $this->translate('Host States') ?></th>
|
||||||
<th><?= $this->translate('Total Services') ?></th>
|
<th><?= $this->translate('Total Services') ?></th>
|
||||||
<th><?= $this->translate('Service States') ?></th>
|
<th><?= $this->translate('Service States') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($hostgroups as $hostgroup): ?>
|
<?php foreach ($hostgroups as $hostgroup): ?>
|
||||||
<tr href="<?= $this->href('monitoring/list/hosts', array('hostgroup_name' => $hostgroup->hostgroup_name)) ?>">
|
<tr href="<?= $this->href('monitoring/list/hosts', array('hostgroup_name' => $hostgroup->hostgroup_name)) ?>">
|
||||||
<td class="groupname">
|
<td class="groupname">
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$hostgroup->hostgroup_alias,
|
$hostgroup->hostgroup_alias,
|
||||||
'monitoring/list/hosts',
|
'monitoring/list/hosts',
|
||||||
array('hostgroup_name' => $hostgroup->hostgroup_name),
|
array('hostgroup_name' => $hostgroup->hostgroup_name),
|
||||||
array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $hostgroup->hostgroup_alias))
|
array('title' => sprintf(
|
||||||
) ?>
|
$this->translate('List all hosts in the group "%s"'),
|
||||||
|
$hostgroup->hostgroup_alias
|
||||||
|
))
|
||||||
|
) ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="total">
|
<td class="total">
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$hostgroup->hosts_total,
|
$hostgroup->hosts_total,
|
||||||
'monitoring/list/hosts',
|
'monitoring/list/hosts',
|
||||||
array('hostgroup_name' => $hostgroup->hostgroup_name),
|
array('hostgroup_name' => $hostgroup->hostgroup_name),
|
||||||
array('title' => sprintf(
|
array('title' => sprintf(
|
||||||
$this->translate('List all hosts in host group "%s"'),
|
$this->translate('List all hosts in host group "%s"'),
|
||||||
$hostgroup->hostgroup_alias
|
$hostgroup->hostgroup_alias
|
||||||
))
|
))
|
||||||
) ?>
|
) ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
@ -131,19 +134,19 @@ if (! $this->compact): ?>
|
|||||||
'List %u hosts which are currently in state PENDING in the host group "%s"',
|
'List %u hosts which are currently in state PENDING in the host group "%s"',
|
||||||
array($hostgroup->hosts_pending, $hostgroup->hostgroup_alias)
|
array($hostgroup->hosts_pending, $hostgroup->hostgroup_alias)
|
||||||
);
|
);
|
||||||
echo $stateBadges->render();
|
echo $stateBadges->render();
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td class="total">
|
<td class="total">
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$hostgroup->services_total,
|
$hostgroup->services_total,
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
array('hostgroup_name' => $hostgroup->hostgroup_name),
|
array('hostgroup_name' => $hostgroup->hostgroup_name),
|
||||||
array('title' => sprintf(
|
array('title' => sprintf(
|
||||||
$this->translate('List all services of all hosts in host group "%s"'),
|
$this->translate('List all services of all hosts in host group "%s"'),
|
||||||
$hostgroup->hostgroup_alias
|
$hostgroup->hostgroup_alias
|
||||||
))
|
))
|
||||||
) ?>
|
) ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
@ -262,19 +265,19 @@ if (! $this->compact): ?>
|
|||||||
echo $stateBadges->render();
|
echo $stateBadges->render();
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php if ($hostgroups->hasMore()): ?>
|
<?php if ($hostgroups->hasMore()): ?>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$this->translate('Show More'),
|
$this->translate('Show More'),
|
||||||
$this->url()->without(array('view', 'limit')),
|
$this->url()->without(array('view', 'limit')),
|
||||||
null,
|
null,
|
||||||
array(
|
array(
|
||||||
'data-base-target' => '_next',
|
'data-base-target' => '_next',
|
||||||
'class' => 'pull-right show-more'
|
'class' => 'pull-right show-more'
|
||||||
)
|
)
|
||||||
) ?>
|
) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user