2013-07-02 16:00:41 +02:00
|
|
|
<?php
|
|
|
|
$hostgroupLinkList = array();
|
|
|
|
if (!empty($this->hostgroups)) {
|
|
|
|
foreach ($this->hostgroups as $name => $alias) {
|
|
|
|
$hostgroupLinkList[] = $this->qlink(
|
|
|
|
$alias,
|
|
|
|
'monitoring/list/services',
|
|
|
|
array(
|
|
|
|
'hostgroups' => $name
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2013-06-27 10:14:41 +02:00
|
|
|
?>
|
2013-07-02 16:00:41 +02:00
|
|
|
<?=
|
|
|
|
$this->partial(
|
|
|
|
'show/header.phtml',
|
|
|
|
array(
|
|
|
|
'host' => $this->host,
|
|
|
|
'service' => $this->service,
|
|
|
|
'tabs' => $this->tabs,
|
|
|
|
'compact' => $this->compact
|
|
|
|
)
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
|
2013-06-27 10:14:41 +02:00
|
|
|
<?= $this->preview_image ?>
|
|
|
|
|
2013-07-02 16:00:41 +02:00
|
|
|
<div class="information-container">
|
|
|
|
<div class="head">
|
|
|
|
<span>Plugin output</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<?= $this->pluginOutput($this->host->host_output); ?>
|
|
|
|
<?= $this->pluginOutput($this->host->host_long_output); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="information-container">
|
|
|
|
<div class="head">
|
|
|
|
<span>Command</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<strong>Command:</strong>
|
|
|
|
<?= array_shift(explode('!', $this->host->host_check_command, 2)); ?>
|
|
|
|
<?= $this->commandArguments($this->host->host_check_command); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="information-container">
|
|
|
|
<div class="head">
|
|
|
|
<span>Groups and Contacts</span>
|
|
|
|
</div>
|
|
|
|
<?php if (count($hostgroupLinkList)) { ?>
|
|
|
|
<strong>Hostgroups:</strong>
|
|
|
|
<?= implode(' ', $hostgroupLinkList); ?>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?= $this->render('show/components/contacts.phtml') ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?= $this->render('show/components/comments.phtml'); ?>
|
|
|
|
|
2013-07-04 17:29:47 +02:00
|
|
|
<?= $this->render('show/components/downtime.phtml'); ?>
|
|
|
|
|
2013-07-02 16:00:41 +02:00
|
|
|
<?= $this->render('show/components/customvars.phtml'); ?>
|
|
|
|
|
|
|
|
<?php if ($this->host->host_perfdata): ?>
|
|
|
|
<div class="information-container">
|
|
|
|
<div class="head">
|
|
|
|
<span>Perfdata</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<?= $this->perfdata($this->host->host_perfdata); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-07-03 14:37:49 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<div class="information-container">
|
|
|
|
<div class="head">
|
|
|
|
<span>Flags</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<?= $this->render('show/components/flags.phtml'); ?>
|
|
|
|
</div>
|
2013-07-04 14:48:30 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="information-container">
|
|
|
|
<div class="head">
|
|
|
|
<span>Commands</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<?= $this->monitoringCommands($this->host, 'full'); ?>
|
|
|
|
</div>
|
2013-07-03 14:37:49 +02:00
|
|
|
</div>
|