2013-07-22 16:03:36 +02:00
|
|
|
<?php
|
2013-07-22 17:10:43 +02:00
|
|
|
|
2013-07-22 16:03:36 +02:00
|
|
|
$servicegroupLinkList = array();
|
2013-07-22 17:10:43 +02:00
|
|
|
if (!empty($this->servicegroups)) {
|
|
|
|
foreach ($this->servicegroups as $name => $alias) {
|
2013-08-20 20:12:40 +02:00
|
|
|
$servicegroupLinkList[] = '<a href="' . $this->href(
|
2013-07-22 16:03:36 +02:00
|
|
|
'monitoring/list/services',
|
|
|
|
array(
|
|
|
|
'servicegroups' => $name
|
|
|
|
)
|
2013-08-20 20:12:40 +02:00
|
|
|
) . '">' . $alias . '</a>';
|
2013-07-22 16:03:36 +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-08-22 17:17:58 +02:00
|
|
|
<div>
|
|
|
|
<div>
|
2013-08-20 20:12:40 +02:00
|
|
|
<span>Plugin output</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<?= $this->pluginOutput($this->service->service_output); ?>
|
|
|
|
<?= $this->pluginOutput($this->service->service_long_output); ?>
|
|
|
|
</div>
|
2013-07-22 16:03:36 +02:00
|
|
|
</div>
|
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{{CHECK_ICON}} <span>Check Command</span>
|
2013-08-20 20:12:40 +02:00
|
|
|
</div>
|
2013-07-22 16:03:36 +02:00
|
|
|
|
2013-08-20 20:12:40 +02:00
|
|
|
<div>
|
|
|
|
<?php
|
2013-08-22 17:17:58 +02:00
|
|
|
$explodedCommand = explode('!', $this->service->service_check_command, 2);
|
2013-08-20 20:12:40 +02:00
|
|
|
echo array_shift($explodedCommand);
|
|
|
|
?>
|
|
|
|
<?= $this->commandArguments($this->service->service_check_command); ?>
|
|
|
|
</div>
|
2013-07-22 16:03:36 +02:00
|
|
|
</div>
|
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{{GROUP_ICON}} <span>Groups and Contacts</span>
|
2013-08-20 20:12:40 +02:00
|
|
|
</div>
|
|
|
|
<?php if (count($servicegroupLinkList)) { ?>
|
2013-08-22 17:17:58 +02:00
|
|
|
{{SERVICEGROUP_ICON}} <strong>Servicegroups:</strong>
|
2013-08-20 20:12:40 +02:00
|
|
|
<?= implode(' ', $servicegroupLinkList); ?>
|
|
|
|
<?php } ?>
|
2013-07-22 16:03:36 +02:00
|
|
|
|
2013-08-20 20:12:40 +02:00
|
|
|
<?= $this->render('show/components/contacts.phtml') ?>
|
2013-07-22 16:03:36 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?= $this->render('show/components/comments.phtml'); ?>
|
|
|
|
|
|
|
|
<?= $this->render('show/components/downtime.phtml'); ?>
|
|
|
|
|
|
|
|
<?= $this->render('show/components/customvars.phtml'); ?>
|
|
|
|
|
2013-06-27 13:13:31 +02:00
|
|
|
<?php if ($this->service->service_perfdata): ?>
|
2013-08-22 17:17:58 +02:00
|
|
|
<div>
|
2013-07-22 17:10:43 +02:00
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div>
|
2013-08-20 20:12:40 +02:00
|
|
|
<span>Perfdata</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<?= $this->perfdata($this->service->service_perfdata); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-06-27 13:13:31 +02:00
|
|
|
<?php endif; ?>
|
2013-06-27 10:14:41 +02:00
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div>
|
|
|
|
<div>
|
2013-08-20 20:12:40 +02:00
|
|
|
<span>Flags</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<?= $this->render('show/components/flags.phtml'); ?>
|
|
|
|
</div>
|
2013-07-22 16:03:36 +02:00
|
|
|
</div>
|
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div>
|
|
|
|
<div>
|
2013-08-20 20:12:40 +02:00
|
|
|
<span>Properties</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<?= $this->render('show/components/properties.phtml'); ?>
|
|
|
|
</div>
|
2013-07-22 16:03:36 +02:00
|
|
|
</div>
|
|
|
|
|
2013-08-22 17:17:58 +02:00
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{{COMMAND_ICON}} <span>Commands</span>
|
2013-08-20 20:12:40 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<?= $this->monitoringCommands($this->service, 'full'); ?>
|
|
|
|
</div>
|
2013-07-22 16:03:36 +02:00
|
|
|
</div>
|