2014-09-24 07:47:26 +02:00
|
|
|
<div class="controls">
|
2015-02-02 16:28:35 +01:00
|
|
|
<?= $this->render('partials/host/objects-header.phtml') ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
2015-02-02 16:28:35 +01:00
|
|
|
<?php if (($hostCount = count($objects)) === 0): ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= $this->translate('No hosts matching the filter') ?>
|
|
|
|
<?php else: ?>
|
2014-10-01 09:24:52 +02:00
|
|
|
<h3>
|
2014-12-16 12:31:20 +01:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'%u Host',
|
|
|
|
'%u Hosts',
|
2014-12-30 10:26:19 +01:00
|
|
|
$hostCount
|
|
|
|
),
|
|
|
|
$hostCount
|
2014-12-16 12:31:20 +01:00
|
|
|
) ?>
|
2014-10-01 09:24:52 +02:00
|
|
|
</h3>
|
2014-09-24 07:47:26 +02:00
|
|
|
|
|
|
|
<div>
|
2015-02-02 16:48:13 +01:00
|
|
|
<a href="<?= $listAllLink ?>" title="<?= sprintf(
|
|
|
|
$this->translate('List all %u hosts'),
|
|
|
|
$hostCount
|
2015-01-26 14:09:39 +01:00
|
|
|
); ?>">
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= $this->translate('List all') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<?= $checkNowForm ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<a href="<?= $rescheduleAllLink ?>">
|
2015-02-12 13:47:00 +01:00
|
|
|
<?= $this->icon('reschedule', null, array('aria-hidden' => 'true')) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= $this->translate('Reschedule host checks') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<a href="<?= $downtimeAllLink ?>">
|
2015-02-12 13:47:00 +01:00
|
|
|
<?= $this->icon('plug', null, array('aria-hidden' => 'true')) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= $this->translate('Schedule host downtimes') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2014-12-11 15:52:23 +01:00
|
|
|
<div>
|
|
|
|
<a href="<?= $processCheckResultAllLink; ?>">
|
2015-02-12 13:47:00 +01:00
|
|
|
<?= $this->icon('reply', null, array('aria-hidden' => 'true')); ?>
|
2014-12-11 15:52:23 +01:00
|
|
|
<?= $this->translate('Submit passive check results'); ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2014-09-24 07:47:26 +02:00
|
|
|
<?php if (! empty($unhandledObjects)): ?>
|
2014-10-01 09:24:52 +02:00
|
|
|
<h3>
|
2014-12-30 10:30:31 +01:00
|
|
|
<?php $unhandledCount = count($unhandledObjects) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'%u Unhandled Host Problem',
|
|
|
|
'%u Unhandled Host Problems',
|
2014-12-30 10:30:31 +01:00
|
|
|
$unhandledCount
|
2014-09-24 07:47:26 +02:00
|
|
|
),
|
2014-12-30 10:30:31 +01:00
|
|
|
$unhandledCount
|
2014-09-24 07:47:26 +02:00
|
|
|
) ?>
|
2014-10-01 09:24:52 +02:00
|
|
|
</h3>
|
2014-09-24 07:47:26 +02:00
|
|
|
<div>
|
2015-02-03 12:34:22 +01:00
|
|
|
<a href="<?= $downtimeUnhandledLink ?>" title="<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'Schedule downtime for %u unhandled host problem',
|
|
|
|
'Schedule downtimes for %u unhandled host problems',
|
|
|
|
$unhandledCount
|
|
|
|
),
|
|
|
|
$unhandledCount
|
|
|
|
) ?>">
|
2015-02-12 13:47:00 +01:00
|
|
|
<?= $this->icon('plug', null, array('aria-hidden' => 'true')) ?>
|
2015-02-03 12:34:22 +01:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'Schedule downtime for unhandled host problem',
|
|
|
|
'Schedule downtimes for unhandled host problems',
|
|
|
|
$unhandledCount
|
|
|
|
),
|
|
|
|
$unhandledCount
|
|
|
|
) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div>
|
2015-02-03 12:34:22 +01:00
|
|
|
<a href="<?= $acknowledgeUnhandledLink ?>" title="<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'Acknowledge %u unhandled host problem',
|
|
|
|
'Acknowledge %u unhandled host problems',
|
|
|
|
$unhandledCount
|
|
|
|
),
|
|
|
|
$unhandledCount
|
|
|
|
) ?>">
|
2015-02-12 13:47:00 +01:00
|
|
|
<?= $this->icon('ok', null, array('aria-hidden' => 'true')) ?>
|
2015-02-03 12:34:22 +01:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'Acknowledge unhandled host problem',
|
|
|
|
'Acknowledge unhandled host problems',
|
|
|
|
$unhandledCount
|
|
|
|
),
|
|
|
|
$unhandledCount
|
|
|
|
) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if (! empty($acknowledgedObjects)): ?>
|
|
|
|
<h2>
|
2014-12-30 10:31:23 +01:00
|
|
|
<?php $acknowledgedCount = count($acknowledgedObjects) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'%u Acknowledged Host Problem',
|
|
|
|
'%u Acknowledged Host Problems',
|
2014-12-30 10:31:23 +01:00
|
|
|
$acknowledgedCount
|
2014-09-24 07:47:26 +02:00
|
|
|
),
|
2014-12-30 10:31:23 +01:00
|
|
|
$acknowledgedCount
|
2014-09-24 07:47:26 +02:00
|
|
|
) ?>
|
|
|
|
</h2>
|
|
|
|
<div>
|
|
|
|
<?= $removeAckForm ?>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if (! empty($objectsInDowntime)): ?>
|
|
|
|
<h2>
|
2014-12-30 10:33:32 +01:00
|
|
|
<?php $inDowntimeCount = count($objectsInDowntime) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<a href="<?= $inDowntimeLink ?>"
|
2015-02-02 16:48:13 +01:00
|
|
|
title="<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'List %u host which is in downtime',
|
|
|
|
'List %u hosts which are in downtime',
|
|
|
|
$inDowntimeCount
|
|
|
|
),
|
|
|
|
$inDowntimeCount
|
|
|
|
) ?>">
|
2015-02-12 13:47:00 +01:00
|
|
|
<?= $this->icon('plug', null, array('aria-hidden' => 'true')) ?>
|
2014-12-30 10:33:32 +01:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
2015-02-03 12:34:22 +01:00
|
|
|
'List %u host currently in downtime',
|
|
|
|
'List %u hosts currently downtime',
|
2014-12-30 10:33:32 +01:00
|
|
|
$inDowntimeCount
|
|
|
|
),
|
|
|
|
$inDowntimeCount
|
|
|
|
) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2015-02-03 12:34:22 +01:00
|
|
|
<?php $commentCount = count($objects->getComments()) ?>
|
|
|
|
<?php if ($commentCount): ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<h2>
|
2015-02-03 12:34:22 +01:00
|
|
|
<a href="<?= $commentsLink ?>"
|
2015-02-02 16:48:13 +01:00
|
|
|
title="<?= sprintf(
|
|
|
|
$this->translatePlural(
|
2015-02-03 12:34:22 +01:00
|
|
|
'List %u host comment',
|
|
|
|
'List %u host comments',
|
|
|
|
$commentCount
|
2015-02-02 16:48:13 +01:00
|
|
|
),
|
2015-02-03 12:34:22 +01:00
|
|
|
$commentCount
|
2015-02-02 16:48:13 +01:00
|
|
|
) ?>">
|
2015-02-12 13:47:00 +01:00
|
|
|
<?= $this->icon('comment', null, array('aria-hidden' => 'true')) ?>
|
2014-12-30 10:35:18 +01:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
2015-02-03 12:34:22 +01:00
|
|
|
'List %u host comment',
|
|
|
|
'List %u host comments',
|
|
|
|
$commentCount
|
2014-12-30 10:35:18 +01:00
|
|
|
),
|
2015-02-03 12:34:22 +01:00
|
|
|
$commentCount
|
2014-12-30 10:35:18 +01:00
|
|
|
) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php endif ?>
|
|
|
|
</div>
|