2013-07-02 16:00:41 +02:00
|
|
|
<?php
|
2013-07-23 16:32:00 +02:00
|
|
|
$hostgroupLinkList = array();
|
|
|
|
if (!empty($this->hostgroups)) {
|
|
|
|
foreach ($this->hostgroups as $name => $alias) {
|
2013-08-20 20:12:40 +02:00
|
|
|
$hostgroupLinkList[] = '<a href="' . $this->href(
|
|
|
|
'monitoring/list/hosts',
|
2013-07-23 16:32:00 +02:00
|
|
|
array(
|
|
|
|
'hostgroups' => $name
|
|
|
|
)
|
2013-08-20 20:12:40 +02:00
|
|
|
) . '">'.$alias. '</a>';
|
2013-07-02 16:00:41 +02:00
|
|
|
}
|
2013-07-23 16:32:00 +02:00
|
|
|
}
|
2013-06-27 10:14:41 +02:00
|
|
|
?>
|
2013-07-02 16:00:41 +02:00
|
|
|
<?=
|
2013-07-23 16:32:00 +02:00
|
|
|
$this->partial(
|
|
|
|
'show/header.phtml',
|
|
|
|
array(
|
|
|
|
'host' => $this->host,
|
|
|
|
'service' => $this->service,
|
|
|
|
'tabs' => $this->tabs,
|
|
|
|
'compact' => $this->compact
|
|
|
|
)
|
|
|
|
);
|
2013-07-02 16:00:41 +02:00
|
|
|
?>
|
2013-06-27 10:14:41 +02:00
|
|
|
<?= $this->preview_image ?>
|
2013-08-22 17:17:58 +02:00
|
|
|
<br/>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<span>Plugin Output</span>
|
2013-08-20 20:12:40 +02:00
|
|
|
</div>
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel-body">
|
2013-08-20 20:12:40 +02:00
|
|
|
<?= $this->pluginOutput($this->host->host_output); ?>
|
|
|
|
<?= $this->pluginOutput($this->host->host_long_output); ?>
|
|
|
|
</div>
|
2013-07-02 16:00:41 +02:00
|
|
|
</div>
|
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
{{CHECK_ICON}} <span>Check Command</span>
|
2013-08-20 20:12:40 +02:00
|
|
|
</div>
|
2013-07-02 16:00:41 +02:00
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel-body">
|
2013-08-20 20:12:40 +02:00
|
|
|
<?php
|
2013-07-23 16:32:00 +02:00
|
|
|
$explodedCommand = explode('!', $this->host->host_check_command, 2);
|
2013-08-20 20:12:40 +02:00
|
|
|
array_shift($explodedCommand);
|
|
|
|
?>
|
|
|
|
<?= $this->commandArguments($this->host->host_check_command); ?>
|
|
|
|
</div>
|
2013-07-02 16:00:41 +02:00
|
|
|
</div>
|
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2013-08-20 20:12:40 +02:00
|
|
|
<span>Groups and Contacts</span>
|
|
|
|
</div>
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel-body">
|
2013-08-20 20:12:40 +02:00
|
|
|
<?php if (count($hostgroupLinkList)): ?>
|
2013-08-22 17:17:58 +02:00
|
|
|
{{HOSTGROUP_ICON}} <strong>Hostgroups:</strong>
|
2013-08-20 20:12:40 +02:00
|
|
|
<?= implode(' ', $hostgroupLinkList); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?= $this->render('show/components/contacts.phtml') ?>
|
2013-08-22 17:17:58 +02:00
|
|
|
</div>
|
2013-07-02 16:00:41 +02:00
|
|
|
</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): ?>
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2013-08-20 20:12:40 +02:00
|
|
|
<span>Perfdata</span>
|
|
|
|
</div>
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel-body">
|
2013-08-20 20:12:40 +02:00
|
|
|
<?= $this->perfdata($this->host->host_perfdata); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-07-03 14:37:49 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2013-08-20 20:12:40 +02:00
|
|
|
<span>Flags</span>
|
|
|
|
</div>
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel-body">
|
2013-08-20 20:12:40 +02:00
|
|
|
<?= $this->render('show/components/flags.phtml'); ?>
|
|
|
|
</div>
|
2013-07-04 14:48:30 +02:00
|
|
|
</div>
|
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2013-08-20 20:12:40 +02:00
|
|
|
<span>Properties</span>
|
|
|
|
</div>
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel-body">
|
2013-08-20 20:12:40 +02:00
|
|
|
<?= $this->render('show/components/properties.phtml'); ?>
|
|
|
|
</div>
|
2013-07-08 14:50:18 +02:00
|
|
|
</div>
|
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
{{COMMAND_ICON}} <span>Commands</span>
|
2013-08-20 20:12:40 +02:00
|
|
|
</div>
|
2013-08-22 17:17:58 +02:00
|
|
|
<div class="panel-body">
|
2013-08-20 20:12:40 +02:00
|
|
|
<?= $this->monitoringCommands($this->host, 'full'); ?>
|
|
|
|
</div>
|
2013-07-22 16:03:36 +02:00
|
|
|
</div>
|