mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-04-09 19:16:09 -04:00
Now the whole page gets refreshed on container changes, if we encounter issues with that we can improve it afterwards or roll back some cahnges already made in previous commits refs #4611
107 lines
No EOL
2.6 KiB
PHTML
107 lines
No EOL
2.6 KiB
PHTML
<?php
|
|
|
|
$hostgroupLinkList = array();
|
|
if (!empty($this->hostgroups)) {
|
|
foreach ($this->hostgroups as $name => $alias) {
|
|
$hostgroupLinkList[] = '<a href="' . $this->href(
|
|
'monitoring/list/hosts',
|
|
array(
|
|
'hostgroups' => $name
|
|
)
|
|
) . '">'.$alias. '</a>';
|
|
}
|
|
}
|
|
?>
|
|
<?=
|
|
$this->partial(
|
|
'show/header.phtml',
|
|
array(
|
|
'host' => $this->host,
|
|
'service' => $this->service,
|
|
'tabs' => $this->tabs,
|
|
'compact' => $this->compact
|
|
)
|
|
);
|
|
?>
|
|
<?= $this->preview_image ?>
|
|
<br/>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<span>Plugin Output</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<?= $this->pluginOutput($this->host->host_output); ?>
|
|
<?= $this->pluginOutput($this->host->host_long_output); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
{{CHECK_ICON}} <span>Check Command</span>
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
<?php
|
|
$explodedCommand = explode('!', $this->host->host_check_command, 2);
|
|
array_shift($explodedCommand);
|
|
?>
|
|
<?= $this->commandArguments($this->host->host_check_command); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<span>Groups and Contacts</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<?php if (count($hostgroupLinkList)): ?>
|
|
{{HOSTGROUP_ICON}} <strong>Hostgroups:</strong>
|
|
<?= implode(' ', $hostgroupLinkList); ?>
|
|
<?php endif; ?>
|
|
<?= $this->render('show/components/contacts.phtml') ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?= $this->render('show/components/comments.phtml'); ?>
|
|
|
|
<?= $this->render('show/components/downtime.phtml'); ?>
|
|
|
|
<?= $this->render('show/components/customvars.phtml'); ?>
|
|
|
|
<?php if ($this->host->host_perfdata): ?>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<span>Perfdata</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<?= $this->perfdata($this->host->host_perfdata); ?>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<span>Flags</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<?= $this->render('show/components/flags.phtml'); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<span>Properties</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<?= $this->render('show/components/properties.phtml'); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
{{COMMAND_ICON}} <span>Commands</span>
|
|
</div>
|
|
<div class="panel-body">
|
|
<?= $this->monitoringCommands($this->host, 'full'); ?>
|
|
</div>
|
|
</div>
|