parent
dc2aad75d1
commit
bff45a1eb2
|
@ -17,6 +17,7 @@
|
|||
|
||||
<!-- Bootstrap and components -->
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/vendor/bootstrap/bootstrap.min.css') ?>" media="screen">
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/vendor/bootstrap/bootstrap-theme.min.css') ?>" media="screen">
|
||||
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/main.css') ?>">
|
||||
<link rel="stylesheet" href="<?= $this->baseUrl('css/vendor/bootstrap/datetimepicker.min.css') ?>">
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<div class="well" style="margin:auto;width: 40%;max-width:25em;margin-top:10%;">
|
||||
<h1> Login </h1>
|
||||
<?php echo $this->form->render() ?>
|
||||
<?php if (isset($this->errorInfo)): ?>
|
||||
|
||||
<div class="well">
|
||||
<h1>Login</h1>
|
||||
|
||||
<?= $this->form->render(); ?>
|
||||
<?php if (isset($this->errorInfo)): ?>
|
||||
<div class="alert alert-error">
|
||||
<?= $this->errorInfo ?>
|
||||
<?= $this->errorInfo ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -17,19 +17,19 @@ $createDbBackend = Url::fromPath(
|
|||
$errors = $this->form->getErrorMessages();
|
||||
if (!empty($errors)):
|
||||
?>
|
||||
<div class="alert alert-danger">
|
||||
<h4>There are errors in your configuration</h4>
|
||||
<br/>
|
||||
<ul>
|
||||
<div class="alert alert-danger">
|
||||
<h4>There are errors in your configuration</h4>
|
||||
<br/>
|
||||
<ul>
|
||||
<?php foreach($errors as $error): ?>
|
||||
<li><?= $error ?></li>
|
||||
<li><?= $error ?></li>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div>
|
||||
<a href="<?= $createLdapBackend ?>">Create a new LDAP authentication backend</a><br/>
|
||||
<a href="<?= $createDbBackend ?>">Create a new DB authentication backend</a>
|
||||
<a href="<?= $createLdapBackend ?>">Create a new LDAP authentication backend</a><br/>
|
||||
<a href="<?= $createDbBackend ?>">Create a new DB authentication backend</a>
|
||||
</div>
|
||||
<?= $this->form ?>
|
|
@ -4,15 +4,15 @@
|
|||
|
||||
<?php if (!empty($errors)) : ?>
|
||||
<div class="alert alert-danger">
|
||||
<h4>Errors occured when trying to save the project</h4>
|
||||
<p>
|
||||
The following errors occured when trying to save the configuration:
|
||||
</p>
|
||||
<ul>
|
||||
<?php foreach($errors as $error): ?>
|
||||
<li><?= $this->escape($error) ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<h4>Errors occured when trying to save the project</h4>
|
||||
<p>
|
||||
The following errors occured when trying to save the configuration:
|
||||
</p>
|
||||
<ul>
|
||||
<?php foreach($errors as $error): ?>
|
||||
<li><?= $this->escape($error) ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -6,33 +6,32 @@ $modules = $this->modules->paginate();
|
|||
|
||||
?>
|
||||
<?= $this->tabs->render($this); ?>
|
||||
|
||||
<h3>Installed Modules</h3>
|
||||
<?= $this->paginationControl($modules, null, null, array(
|
||||
'preserve' => $this->preserve
|
||||
)); ?>
|
||||
<table >
|
||||
<tbody>
|
||||
<? foreach ($modules as $module): ?>
|
||||
));
|
||||
?>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<? foreach ($modules as $module): ?>
|
||||
<?php
|
||||
$enableUrl = Url::fromPath('config/moduleenable/',array('name' => $module->name))->getAbsoluteUrl();
|
||||
$disableUrl = Url::fromPath('config/moduledisable/',array('name' => $module->name))->getAbsoluteUrl();
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<? if ($module->enabled): ?>
|
||||
<i class="icon-ok-sign"></i>
|
||||
<a href="<?= $disableUrl ?>"><?= $this->escape($module->name); ?></a>
|
||||
|
||||
<? else: ?>
|
||||
<i class="icon-remove-sign"></i>
|
||||
<a href="<?= $enableUrl ?>"><?= $this->escape($module->name); ?></a>
|
||||
<? endif ?>
|
||||
(<?=
|
||||
$module->enabled
|
||||
? ($module->loaded ? 'enabled' : 'failed')
|
||||
: 'disabled'
|
||||
?>)</td>
|
||||
</tr>
|
||||
<? endforeach ?>
|
||||
</tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<? if ($module->enabled): ?>
|
||||
<i class="icon-ok-sign"></i>
|
||||
<a href="<?= $disableUrl ?>"><?= $this->escape($module->name); ?></a>
|
||||
<? else: ?>
|
||||
<i class="icon-remove-sign"></i>
|
||||
<a href="<?= $enableUrl ?>"><?= $this->escape($module->name); ?></a>
|
||||
<? endif ?>
|
||||
(<?=
|
||||
$module->enabled ? ($module->loaded ? 'enabled' : 'failed') : 'disabled' ?>)
|
||||
</td>
|
||||
</tr>
|
||||
<? endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -1,24 +1,18 @@
|
|||
<?php $container = $this->container('modules-container',array(
|
||||
"class" => "expanded_absolute"
|
||||
))->beginContent() ?>
|
||||
<table class="table table-bordered" style="width:100%">
|
||||
<thead>
|
||||
<tr style="text-align:left">
|
||||
<th width="70%">Module</th>
|
||||
<th width="15%">Type</th>
|
||||
<th width="15%">Active</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->modules as $module): ?>
|
||||
<tr>
|
||||
<td><?= $module["name"] ?></td>
|
||||
<td><?= $module["type"] ?></td>
|
||||
<td><?= $module["active"] ?></td>
|
||||
<table class="table table-bordered" >
|
||||
<thead>
|
||||
<tr style="text-align:left">
|
||||
<th width="70%">Module</th>
|
||||
<th width="15%">Type</th>
|
||||
<th width="15%">Active</th>
|
||||
</tr>
|
||||
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->modules as $module): ?>
|
||||
<tr>
|
||||
<td><?= $module["name"]; ?></td>
|
||||
<td><?= $module["type"]; ?></td>
|
||||
<td><?= $module["active"]; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?= $container; ?>
|
|
@ -1,30 +1,29 @@
|
|||
<?= $this->tabs->render($this); ?>
|
||||
<br/>
|
||||
<div class="alert alert-error">
|
||||
<h4><i class="icon-warning-sign"> </i>Saving <?= $this->escape($this->file); ?>.ini failed</h4>
|
||||
<br/>
|
||||
<p>
|
||||
Your <?= $this->escape($this->file); ?> configuration couldn't be stored (error: "<?= $this->exceptionMessage; ?>").<br/>
|
||||
This could have one or more of the following reasons:
|
||||
</p>
|
||||
<ul>
|
||||
<li>You don't have file-system permissions to write to the <?= $this->escape($this->file); ?>.ini file</li>
|
||||
<li>Something went wrong while writing the file</li>
|
||||
<li>There's an application error preventing you from persisting the configuration</li>
|
||||
</ul>
|
||||
<h4><i>WARNING ICON</i>Saving <?= $this->escape($this->file); ?>.ini failed</h4>
|
||||
<br/>
|
||||
<p>
|
||||
Your <?= $this->escape($this->file); ?> configuration couldn't be stored (error: "<?= $this->exceptionMessage; ?>").<br/>
|
||||
This could have one or more of the following reasons:
|
||||
</p>
|
||||
<ul>
|
||||
<li>You don't have file-system permissions to write to the <?= $this->escape($this->file); ?>.ini file</li>
|
||||
<li>Something went wrong while writing the file</li>
|
||||
<li>There's an application error preventing you from persisting the configuration</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Details can be seen in your application log (if you don't have access to this file, call your administrator in this case).
|
||||
<br/>
|
||||
In case you can access the configuration file (config/<?= $this->escape($this->file); ?>.ini) by yourself, you can open it and
|
||||
insert the config manually:
|
||||
|
||||
Details can be seen in your application log (if you don't have access to this file, call your administrator in this case).
|
||||
<br/>
|
||||
In case you can access the configuration file (config/<?= $this->escape($this->file); ?>.ini) by yourself, you can open it and
|
||||
insert the config manually:
|
||||
</p>
|
||||
<p>
|
||||
<pre>
|
||||
<code>
|
||||
<pre>
|
||||
<code>
|
||||
<?= $this->escape($this->iniConfigurationString); ?>
|
||||
</code>
|
||||
</pre>
|
||||
</code>
|
||||
</pre>
|
||||
</p>
|
|
@ -1,24 +1,23 @@
|
|||
<br/>
|
||||
<div class="alert alert-error">
|
||||
<h4><i class="icon-warning-sign"> </i>Saving dashboard failed</h4>
|
||||
<br/>
|
||||
<p>
|
||||
Your dashboard couldn't be stored (error: "<?= $this->exceptionMessage; ?>"). This could have one or more
|
||||
of the following reasons:
|
||||
</p>
|
||||
<ul>
|
||||
<li>You don't have permissions to write to the dashboard file</li>
|
||||
<li>Something went wrong while writing the file</li>
|
||||
<li>There's an application error preventing you from persisting the configuration</li>
|
||||
</ul>
|
||||
<h4><i>ICON WARNING</i>Saving dashboard failed</h4>
|
||||
<br/>
|
||||
<p>
|
||||
Your dashboard couldn't be stored (error: "<?= $this->exceptionMessage; ?>"). This could have one or more
|
||||
of the following reasons:
|
||||
</p>
|
||||
<ul>
|
||||
<li>You don't have permissions to write to the dashboard file</li>
|
||||
<li>Something went wrong while writing the file</li>
|
||||
<li>There's an application error preventing you from persisting the configuration</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Details can be seen in your application log (if you don't have access to this file, call your administrator in this case).
|
||||
<br/>
|
||||
In case you can access the configuration file (config/dashboard/dashboard.ini) by yourself, you can open it and
|
||||
insert the config manually:
|
||||
|
||||
Details can be seen in your application log (if you don't have access to this file, call your administrator in this case).
|
||||
<br/>
|
||||
In case you can access the configuration file (config/dashboard/dashboard.ini) by yourself, you can open it and
|
||||
insert the config manually:
|
||||
</p>
|
||||
<p>
|
||||
<pre>
|
||||
|
|
|
@ -1,32 +1,36 @@
|
|||
<div class="alert alert-error fullpage_infobox">
|
||||
|
||||
<h1>An error occurred</h1>
|
||||
<p>
|
||||
<div class="alert alert-error">
|
||||
<h1>An error occurred</h1>
|
||||
<p>
|
||||
<?php echo $this->message ?>
|
||||
</p>
|
||||
|
||||
<?php if (isset($this->exception)): ?>
|
||||
<div style="text-align:left;">
|
||||
<h3>Exception information:</h3>
|
||||
|
||||
<p>
|
||||
<b>Message:</b>
|
||||
<?= $this->exception->getMessage(); ?>
|
||||
|
||||
<?php if (isset($this->exception->action)): ?>
|
||||
<br/>
|
||||
<b>Action</b>: <?= $this->exception->action; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($this->exception->action)): ?>
|
||||
<br/>
|
||||
<b>Target</b>: <?= $this->exception->target; ?>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
|
||||
<?php if (isset($this->exception)): ?>
|
||||
<div style="text-align:left;">
|
||||
<h3>Exception information:</h3>
|
||||
<h3>Stack trace:</h3>
|
||||
<pre>
|
||||
<?= $this->exception->getTraceAsString(); ?>
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
<b>Message:</b> <?php echo $this->exception->getMessage() ?>
|
||||
<?php if (isset($this->exception->action)): ?>
|
||||
<br/><b>Action</b>: <?= $this->exception->action; ?>
|
||||
<?php endif ?>
|
||||
<?php if (isset($this->exception->action)): ?>
|
||||
<br/><b>Target</b>: <?= $this->exception->target; ?>
|
||||
<?php endif ?>
|
||||
|
||||
</p>
|
||||
|
||||
<h3>Stack trace:</h3>
|
||||
<pre style="font-family: monospace"><?php echo $this->exception->getTraceAsString() ?>
|
||||
</pre>
|
||||
|
||||
<h3>Request Parameters:</h3>
|
||||
<pre><?php echo var_export(\Zend_Controller_Front::getInstance()->getParams(), true) ?>
|
||||
</pre>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<h3>Request Parameters:</h3>
|
||||
<pre><?= var_export(\Zend_Controller_Front::getInstance()->getParams(), true) ?>
|
||||
</pre>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
<?= $this->layout()->moduleStart ?>
|
||||
<?= $this->layout()->content ?>
|
||||
<?= $this->layout()->moduleEnd ?>
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
<?php if (isset($this->success)) : ?>
|
||||
<div class="alert alert-success">
|
||||
<h4>Preferences updated sucessfully</h4>
|
||||
<h4>Preferences updated successfully</h4>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($this->exceptionMessage)): ?>
|
||||
<div class="alert alert-danger">
|
||||
<h4>Could not update preferences due to an internal exception (<?= $this->exceptionMessage ?>)</h4>
|
||||
<h4>Could not update preferences due to an internal exception (<?= $this->exceptionMessage ?>)</h4>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
|
@ -16,68 +16,81 @@ function formatDateString($self,$dateString){
|
|||
$paginator = $downtimes->paginate();
|
||||
$downtimes = $downtimes->fetchAll();
|
||||
?>
|
||||
<form method="get" action="<?= $this->href(
|
||||
<form method="get" class="form-inline" action="<?= $this->href(
|
||||
'monitoring/list/downtimes?',
|
||||
array(
|
||||
'action' => 'downtimes'
|
||||
));
|
||||
?>">
|
||||
Sort by <?= $this->formSelect(
|
||||
'sort',
|
||||
$this->sort,
|
||||
array('class' => 'autosubmit'),
|
||||
array(
|
||||
'downtime_is_in_effect' => 'Is In Effect',
|
||||
'object_type' => 'Service/Host',
|
||||
'host_name' => 'Host Name',
|
||||
'service_description' => 'Service Name',
|
||||
'downtime_entry_time' => 'Entry Time',
|
||||
'downtime_author_name' => 'Author',
|
||||
'downtime_comment_data' => 'Comment',
|
||||
'downtime_scheduled_start_time' => 'Start',
|
||||
'downtime_scheduled_end_time' => 'End',
|
||||
'downtime_trigger_time' => 'Trigger Time',
|
||||
'downtime_internal_downtime_id' => 'Downtime ID',
|
||||
'downtime_duration' => 'Duration',
|
||||
)
|
||||
) ?>
|
||||
<button class="btn btn-small"><i class="icon-refresh"></i></button>
|
||||
<label>Sort by</label>
|
||||
<br/>
|
||||
<?=
|
||||
$this->formSelect(
|
||||
'sort',
|
||||
$this->sort,
|
||||
array('class' => 'autosubmit'),
|
||||
array(
|
||||
'downtime_is_in_effect' => 'Is In Effect',
|
||||
'object_type' => 'Service/Host',
|
||||
'host_name' => 'Host Name',
|
||||
'service_description' => 'Service Name',
|
||||
'downtime_entry_time' => 'Entry Time',
|
||||
'downtime_author_name' => 'Author',
|
||||
'downtime_comment_data' => 'Comment',
|
||||
'downtime_scheduled_start_time' => 'Start',
|
||||
'downtime_scheduled_end_time' => 'End',
|
||||
'downtime_trigger_time' => 'Trigger Time',
|
||||
'downtime_internal_downtime_id' => 'Downtime ID',
|
||||
'downtime_duration' => 'Duration',
|
||||
)
|
||||
)
|
||||
?>
|
||||
<noscript>
|
||||
<button class="btn btn-small btn-default" >
|
||||
<i>REFRESH ICON</i>
|
||||
</button>
|
||||
</noscript>
|
||||
</form>
|
||||
<?=
|
||||
$this->paginationControl(
|
||||
$paginator,
|
||||
null,
|
||||
array(
|
||||
'mixedPagination.phtml',
|
||||
'default'),
|
||||
array('preserve' => $this->preserve))
|
||||
$paginator,
|
||||
null,
|
||||
array(
|
||||
'mixedPagination.phtml',
|
||||
'default'
|
||||
),
|
||||
array('preserve' => $this->preserve)
|
||||
)
|
||||
?>
|
||||
|
||||
<table class="statustable action">
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
<th> Is In Effect</th>
|
||||
<th> Object</th>
|
||||
<th> Host Name</th>
|
||||
<th> Service Name</th>
|
||||
<th> Entry Time</th>
|
||||
<th> Author</th>
|
||||
<th> Comment</th>
|
||||
<th> Start Time</th>
|
||||
<th> End Time</th>
|
||||
<th> Type</th>
|
||||
<th> Trigger Time</th>
|
||||
<th> Downtime ID</th>
|
||||
<th> Trigger ID</th>
|
||||
<th> Duration</th>
|
||||
<tr>
|
||||
<th>Is In Effect</th>
|
||||
<th>Object</th>
|
||||
<th>Host Name</th>
|
||||
<th>Service Name</th>
|
||||
<th>Entry Time</th>
|
||||
<th>Author</th>
|
||||
<th>Comment</th>
|
||||
<th>Start Time</th>
|
||||
<th>End Time</th>
|
||||
<th>Type</th>
|
||||
<th>Trigger Time</th>
|
||||
<th>Downtime ID</th>
|
||||
<th>Trigger ID</th>
|
||||
<th>Duration</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php foreach ($downtimes as $downtime): ?>
|
||||
<tr class="<?= $downtime->downtime_is_in_effect == 0 ? 'ok' : 'warning' ?>">
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<?= $downtime->downtime_is_in_effect == 0 ? 'False' : '<b>True</b>'; ?>
|
||||
<?= ($downtime->downtime_is_in_effect == 0 ? 'False' : '<b>True</b>'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<div class="img-box">
|
||||
<div >
|
||||
|
||||
<?php if ($downtime->object_type == 'service'): ?>
|
||||
<img title="Service" src="<?='../../img/classic/service.png'?>"/>
|
||||
|
@ -86,7 +99,6 @@ array('preserve' => $this->preserve))
|
|||
<?php if ($downtime->object_type == 'host'): ?>
|
||||
<img title="Host" src="<?='../../img/classic/server.png'?>"/>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
@ -6,106 +6,91 @@ $trimArea = $this->getHelper('Trim');
|
|||
|
||||
<?= $this->paginationControl($hosts, null, null, array('preserve' => $this->preserve)) ?>
|
||||
|
||||
<table class="statustable action hosts">
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">Status</th>
|
||||
<th>Host</th>
|
||||
<th>Output</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2">Status</th>
|
||||
<th>Host</th>
|
||||
<th>Output</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($hosts as $host): ?>
|
||||
<tr class="<?= implode(' ', $viewHelper->getStateFlags($host, 'host')); ?>">
|
||||
<td class="icons indicator">
|
||||
<div class="img-box"><?php $trimArea->start(); ?>
|
||||
<?php if ($host->host_icon_image) : ?>
|
||||
<img src="<?= $host->host_icon_image; ?>"/>
|
||||
<?php endif; ?>
|
||||
<?php $trimArea->end(); ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="icons indicator">
|
||||
<div class="icon-box"><?php $trimArea->start(); ?>
|
||||
|
||||
<?php if (!$host->host_handled && $host->host_state > 0): ?>
|
||||
<a href="#" title="<?= 'Unhandled host' ?>">
|
||||
<i class="icon-warning-sign"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($host->host_acknowledged && !$host->host_in_downtime): ?>
|
||||
<a href="#" title="<?= 'Acknowledged' ?>">
|
||||
<i class="icon-ok-sign"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($host->host_is_flapping): ?>
|
||||
<a href="#" title="<?= 'Flapping' ?>">
|
||||
<i class="icon-random"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$host->host_notifications_enabled): ?>
|
||||
<a href="#" title="<?= 'Notifications disabled' ?>">
|
||||
<i class="icon-volume-off"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($host->host_in_downtime): ?>
|
||||
<a href="#" title="<?= 'In downtime' ?>">
|
||||
<i class="icon-wrench"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $trimArea->end(); ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="indicator state" title="<?= $viewHelper->getStateTitle($host, 'host'); ?>">
|
||||
<div class="statetext">
|
||||
<a href="<?= $this->href('monitoring/show/history', array('host' => $host->host_name)); ?>">
|
||||
<b> <?= ucfirst($viewHelper->monitoringState($host, 'host')); ?> </b>
|
||||
|
||||
<div class="nowrap"> since
|
||||
<?= $this->timeSince($host->host_last_state_change); ?>
|
||||
|
||||
|
||||
<?php if ($host->host_state_type == 0): ?>
|
||||
<a href="#" title="<?= 'Soft state' ?>">
|
||||
<i class="icon-gears"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach ($hosts as $host): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<div>
|
||||
<?php if ($host->host_icon_image) : ?>
|
||||
<img src="<?= $host->host_icon_image; ?>"/>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="hostname">
|
||||
<?php if ($host->host_last_comment !== null): ?>
|
||||
<a href="#" title="<?= 'Comments' ?>">
|
||||
<i class="icon-comment"> </i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<a href="<?= $this->href('monitoring/show/host', array('host' => $host->host_name)); ?>"
|
||||
class="row-action">
|
||||
<b><?= $host->host_name; ?></b>
|
||||
<br/>
|
||||
<i><?= $host->host_address; ?></i>
|
||||
</a>
|
||||
|
||||
<?php if ($host->host_action_url != ''): ?>
|
||||
<a href="<?= $host->host_action_url; ?>">Action</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($host->host_notes_url != ''): ?>
|
||||
<a href="<?= $host->host_notes_url; ?>">Notes</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="expand-full">
|
||||
<?= $this->escape(substr(strip_tags($host->host_output), 0, 500)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<?php if (!$host->host_handled && $host->host_state > 0): ?>
|
||||
<a href="#" title="<?= 'Unhandled host' ?>">
|
||||
<i>UNHANDLED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($host->host_acknowledged && !$host->host_in_downtime): ?>
|
||||
<a href="#" title="<?= 'Acknowledged' ?>">
|
||||
<i>ACKNOWLEDGED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($host->host_is_flapping): ?>
|
||||
<a href="#" title="<?= 'Flapping' ?>">
|
||||
<i>FLAPPING ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if (!$host->host_notifications_enabled): ?>
|
||||
<a href="#" title="<?= 'Notifications disabled' ?>">
|
||||
<i>NOTIFICATIONS DISABLED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($host->host_in_downtime): ?>
|
||||
<a href="#" title="<?= 'In downtime' ?>">
|
||||
<i>IN DOWNTIME ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td title="<?= $viewHelper->getStateTitle($host, 'host'); ?>">
|
||||
<div>
|
||||
<a href="<?= $this->href('monitoring/show/history', array('host' => $host->host_name)); ?>">
|
||||
<b> <?= ucfirst($viewHelper->monitoringState($host, 'host')); ?> </b>
|
||||
<div> since
|
||||
<?= $this->timeSince($host->host_last_state_change); ?>
|
||||
<?php if ($host->host_state_type == 0): ?>
|
||||
<a href="#" title="<?= 'Soft state' ?>">
|
||||
<i>SOFTSTATE ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($host->host_last_comment !== null): ?>
|
||||
<a href="#" title="<?= 'Comments' ?>">
|
||||
<i>COMMENT ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<a href="<?= $this->href('monitoring/show/host', array('host' => $host->host_name)); ?>">
|
||||
<b><?= $host->host_name; ?></b>
|
||||
<br/>
|
||||
<i><?= $host->host_address; ?></i>
|
||||
</a>
|
||||
<?php if ($host->host_action_url != ''): ?>
|
||||
<a href="<?= $host->host_action_url; ?>">Action</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($host->host_notes_url != ''): ?>
|
||||
<a href="<?= $host->host_notes_url; ?>">Notes</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->escape(substr(strip_tags($host->host_output), 0, 500)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -3,129 +3,124 @@
|
|||
<?php
|
||||
$hosts = $this->hosts->paginate();
|
||||
$viewHelper = $this->getHelper('MonitoringState');
|
||||
$trimArea = $this->getHelper('Trim');
|
||||
?>
|
||||
<form method="get" action="<?= $this->href('monitoring/list/hosts', $this->hosts->getAppliedFilter()->toParams());?>">
|
||||
Sort by <?= $this->formSelect(
|
||||
|
||||
<form method="get" class="form-inline" action="<?= $this->href('monitoring/list/hosts', $this->hosts->getAppliedFilter()->toParams());?>">
|
||||
<label>Sort by</label>
|
||||
<?= $this->formSelect(
|
||||
'sort',
|
||||
$this->sort,
|
||||
array('class' => 'autosubmit'),
|
||||
array('class' => array('autosubmit')),
|
||||
array(
|
||||
'host_severity' => 'Severity',
|
||||
'host_last_state_change' => 'Last state change',
|
||||
'host_name' => 'Host',
|
||||
)
|
||||
); ?>
|
||||
<button class="btn btn-small"><i class="icon-refresh"></i></button>
|
||||
<noscript>
|
||||
<button class="btn btn-small btn-default">
|
||||
<i>REFRESH ICON</i>
|
||||
</button>
|
||||
</noscript>
|
||||
</form>
|
||||
<?= $this->paginationControl($hosts, null, null, array('preserve' => $this->preserve)) ?>
|
||||
<?= $this->paginationControl($hosts, null, null, array('preserve' => $this->preserve)); ?>
|
||||
|
||||
<table class="statustable action hosts">
|
||||
<table class="table table-condensed">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">Status</th>
|
||||
<th>Host</th>
|
||||
<th>Output</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2">Status</th>
|
||||
<th>Host</th>
|
||||
<th>Output</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php foreach($hosts as $host): ?>
|
||||
<tr class="<?= implode(' ', $viewHelper->getStateFlags($host, 'host')); ?>">
|
||||
<td class="icons indicator">
|
||||
<div class="img-box">
|
||||
<?php $trimArea->start(); ?>
|
||||
<tr>
|
||||
<td>
|
||||
<div>
|
||||
<?php if ($host->host_icon_image) : ?>
|
||||
<img src="<?= $host->host_icon_image; ?>"/>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<?php if ($host->host_icon_image) : ?>
|
||||
<img src="<?= $host->host_icon_image; ?>"/>
|
||||
<?php endif; ?>
|
||||
<td>
|
||||
<div>
|
||||
<?php if (!$host->host_handled && $host->host_state > 0): ?>
|
||||
<a href="#" title="<?= 'Unhandled host' ?>">
|
||||
<i>UNHANDLED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $trimArea->end(); ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="icons indicator">
|
||||
<div class="icon-box">
|
||||
<?php $trimArea->start(); ?>
|
||||
<?php if ($host->host_acknowledged && !$host->host_in_downtime): ?>
|
||||
<a href="#" title="<?= 'Acknowledged' ?>">
|
||||
<i>ACKNOWLEDGED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$host->host_handled && $host->host_state > 0): ?>
|
||||
<a href="#" title="<?= 'Unhandled host' ?>">
|
||||
<i class="icon-warning-sign"></i>
|
||||
<?php if ($host->host_is_flapping): ?>
|
||||
<a href="#" title="<?= 'Flapping' ?>">
|
||||
<i>FLAPPING ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$host->host_notifications_enabled): ?>
|
||||
<a href="#" title="<?= 'Notifications disabled' ?>">
|
||||
<i>NOTIFICATIONS DISABLED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($host->host_in_downtime): ?>
|
||||
<a href="#" title="<?= 'In downtime' ?>">
|
||||
<i>IN DOWNTIME ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td title="<?= $viewHelper->getStateTitle($host, 'host'); ?>">
|
||||
<div >
|
||||
<b><?= ucfirst($viewHelper->monitoringState($host, 'host')); ?></b>
|
||||
<div> since
|
||||
<?= $this->timeSince($host->host_last_state_change); ?>
|
||||
<?php if ($host->host_state_type == 0): ?>
|
||||
<a href="#" title="<?= 'Soft state' ?>">
|
||||
<i>SOFTSTATE ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($host->host_last_comment !== null): ?>
|
||||
<a href="#" title="<?= 'Comments' ?>">
|
||||
<i>COMMENT ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($host->host_acknowledged && !$host->host_in_downtime): ?>
|
||||
<a href="#" title="<?= 'Acknowledged' ?>">
|
||||
<i class="icon-ok-sign"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($host->host_is_flapping): ?>
|
||||
<a href="#" title="<?= 'Flapping' ?>">
|
||||
<i class="icon-random"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$host->host_notifications_enabled): ?>
|
||||
<a href="#" title="<?= 'Notifications disabled' ?>">
|
||||
<i class="icon-volume-off"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($host->host_in_downtime): ?>
|
||||
<a href="#" title="<?= 'In downtime' ?>">
|
||||
<i class="icon-wrench"></i>
|
||||
<a href="<?= $this->href('monitoring/show/host', array('host' => $host->host_name)); ?>">
|
||||
<b> <?= $host->host_name ?></b><br/>
|
||||
<i> <?= $host->host_address ?></i>
|
||||
</a>
|
||||
|
||||
<?php if ($host->host_action_url != ""): ?>
|
||||
<a href="<?= $host->host_action_url; ?>">Action</a>
|
||||
<?php endif; ?>
|
||||
<?php $trimArea->end(); ?>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td class="indicator state" title="<?= $viewHelper->getStateTitle($host, 'host'); ?>">
|
||||
<div class="statetext">
|
||||
<b><?= ucfirst($viewHelper->monitoringState($host, 'host')); ?></b>
|
||||
<?php if ($host->host_notes_url != ""): ?>
|
||||
<a href="<?= $host->host_notes_url; ?>">Notes</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="nowrap"> since
|
||||
<?= $this->timeSince($host->host_last_state_change); ?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?= $this->escape(substr(strip_tags($host->host_output), 0, 10000)); ?>
|
||||
</td>
|
||||
|
||||
<?php if ($host->host_state_type == 0): ?>
|
||||
<a href="#" title="<?= 'Soft state' ?>">
|
||||
<i class="icon-gears"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="hostname">
|
||||
|
||||
<?php if ($host->host_last_comment !== null): ?>
|
||||
<a href="#" title="<?= 'Comments' ?>">
|
||||
<i class="icon-comment"> </i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<a href="<?= $this->href('monitoring/show/host', array('host' => $host->host_name)); ?>" class="row-action">
|
||||
<b> <?= $host->host_name ?></b><br/>
|
||||
<i> <?= $host->host_address ?></i>
|
||||
</a>
|
||||
|
||||
<?php if ($host->host_action_url != ""): ?>
|
||||
<a href="<?= $host->host_action_url; ?>">Action</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($host->host_notes_url != ""): ?>
|
||||
<a href="<?= $host->host_notes_url; ?>">Notes</a>
|
||||
<?php endif; ?>
|
||||
|
||||
</td>
|
||||
<td class="expand-full">
|
||||
<?= $this->escape(substr(strip_tags($host->host_output), 0, 10000)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
<?= $this->tabs->render($this); ?>
|
||||
|
||||
<?php
|
||||
use Icinga\Web\Url;
|
||||
|
||||
$formatter = $this->getHelper('MonitoringProperties');
|
||||
?>
|
||||
|
||||
|
@ -12,19 +10,23 @@ $formatter = $this->getHelper('MonitoringProperties');
|
|||
$this->notifications->getAppliedFilter()->toParams()
|
||||
);
|
||||
?>">
|
||||
Sort by <?=
|
||||
<label>Sort by</label> <?=
|
||||
$this->formSelect(
|
||||
'sort',
|
||||
$this->sort,
|
||||
array(
|
||||
'class' => 'autosubmit'
|
||||
),
|
||||
array(
|
||||
'notification_start_time' => 'Time'
|
||||
)
|
||||
'sort',
|
||||
$this->sort,
|
||||
array(
|
||||
'class' => 'autosubmit'
|
||||
),
|
||||
array(
|
||||
'notification_start_time' => 'Time'
|
||||
)
|
||||
);
|
||||
?>
|
||||
<button class="btn btn-small"><i class="icon-refresh"></i></button>
|
||||
<noscript>
|
||||
<button class="btn btn-small btn-default">
|
||||
<i>REFRESH ICON</i>
|
||||
</button>
|
||||
</noscript>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
|
@ -32,42 +34,42 @@ $notifications = $this->notifications->paginate();
|
|||
echo $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve));
|
||||
?>
|
||||
|
||||
<table class="statustable action table-hover">
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Host</th>
|
||||
<th>Service</th>
|
||||
<th>Type</th>
|
||||
<th>Time</th>
|
||||
<th>Contact</th>
|
||||
<th>Notification command</th>
|
||||
<th>Information</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Host</th>
|
||||
<th>Service</th>
|
||||
<th>Type</th>
|
||||
<th>Time</th>
|
||||
<th>Contact</th>
|
||||
<th>Notification command</th>
|
||||
<th>Information</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($notifications as $notification): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $notification->host_name ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= empty($notification->service_description) ? '' : $notification->service_description; ?>
|
||||
</td>
|
||||
<td><?= $formatter->getNotificationType($notification); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $notification->notification_start_time ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $notification->notification_contact ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $notification->notification_command ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->escape(substr(strip_tags($notification->notification_information), 0, 10000)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $notification->host_name ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= empty($notification->service_description) ? '' : $notification->service_description; ?>
|
||||
</td>
|
||||
<td><?= $formatter->getNotificationType($notification); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $notification->notification_start_time ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $notification->notification_contact ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $notification->notification_command ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->escape(substr(strip_tags($notification->notification_information), 0, 10000)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -1,130 +1,104 @@
|
|||
<?php
|
||||
$paginator = $services->paginate();
|
||||
$viewHelper = $this->getHelper('MonitoringState');
|
||||
$trimArea = $this->getHelper('Trim');
|
||||
?>
|
||||
|
||||
<?php if (empty($services)): ?>
|
||||
<div class="alert alert-info fullpage_infobox">
|
||||
<div>
|
||||
Sorry, no services found for this search
|
||||
</div>
|
||||
<?php return; endif ?>
|
||||
|
||||
<?= $this->paginationControl($paginator, null, null, array('preserve' => $this->preserve)) ?>
|
||||
|
||||
<table class="statustable action services">
|
||||
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">Status</th>
|
||||
<th>Service</th>
|
||||
<th>Output</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2">Status</th>
|
||||
<th>Service</th>
|
||||
<th>Output</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php foreach ($services->fetchAll() as $service): ?>
|
||||
|
||||
<tr class="<?= implode(' ', $viewHelper->getStateFlags($service, 'service')); ?>">
|
||||
<td class="icons indicator">
|
||||
<div class="img-box"><?php $trimArea->start(); ?>
|
||||
|
||||
<?php if ($service->service_icon_image) : ?>
|
||||
<img src="<?= $service->service_icon_image; ?>"/>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $trimArea->end(); ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="icons indicator">
|
||||
<div class="icon-box"><?php $trimArea->start(); ?>
|
||||
|
||||
<?php if (!$service->service_handled && $service->service_state > 0): ?>
|
||||
<a href="#" title="<?= 'Unhandled service' ?>">
|
||||
<i class="icon-warning-sign"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_acknowledged && !$service->service_in_downtime): ?>
|
||||
<a href="#" title="<?= 'Acknowledged' ?>">
|
||||
<i class="icon-ok-sign"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_is_flapping): ?>
|
||||
<a href="#" title="<?= 'Flapping' ?>">
|
||||
<i class="icon-random"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$service->service_notifications_enabled): ?>
|
||||
<a href="#" title="<?= 'Notifications disabled' ?>">
|
||||
<i class="icon-volume-off"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_in_downtime): ?>
|
||||
<a href="#" title="<?= 'In downtime' ?>">
|
||||
<i class="icon-wrench"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $trimArea->end(); ?>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<td class="indicator state" title="<?= $viewHelper->getStateTitle($service, 'service'); ?>">
|
||||
<div class="statetext">
|
||||
<?= ucfirst($viewHelper->monitoringState($service, 'service')); ?></b>
|
||||
<div class="nowrap"> since '
|
||||
<?= $this->timeSince($service->service_last_state_change); ?>
|
||||
|
||||
<?php if ($service->service_state_type == 0): ?>
|
||||
<a href="#" title="<?= 'Soft state' ?>">
|
||||
<i class="icon-gears"></i>
|
||||
</a>
|
||||
<tr>
|
||||
<td>
|
||||
<div>
|
||||
<?php if ($service->service_icon_image) : ?>
|
||||
<img src="<?= $service->service_icon_image; ?>"/>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<?php if (!$service->service_handled && $service->service_state > 0): ?>
|
||||
<a href="#" title="<?= 'Unhandled service' ?>">
|
||||
<i>UNHANDLED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<?php if ($service->service_acknowledged && !$service->service_in_downtime): ?>
|
||||
<a href="#" title="<?= 'Acknowledged' ?>">
|
||||
<i>ACKNOWLEDGED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<td class="servicename">
|
||||
<?php if ($service->service_is_flapping): ?>
|
||||
<a href="#" title="<?= 'Flapping' ?>">
|
||||
<i>FLAPPING ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_last_comment !== null): ?>
|
||||
<a href="#" title="<?= 'Comments' ?>">
|
||||
<i class="icon-comment"> </i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if (!$service->service_notifications_enabled): ?>
|
||||
<a href="#" title="<?= 'Notifications disabled' ?>">
|
||||
<i>NOTIFICATIONS DISABLED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_in_downtime): ?>
|
||||
<a href="#" title="<?= 'In downtime' ?>">
|
||||
<i>IN DOWNTIME ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<b> <?= $service->service_display_name; ?></b>
|
||||
<br/>
|
||||
<?= $service->host_name; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td title="<?= $viewHelper->getStateTitle($service, 'service'); ?>">
|
||||
<div>
|
||||
<?= ucfirst($viewHelper->monitoringState($service, 'service')); ?></b>
|
||||
<div> since '
|
||||
<?= $this->timeSince($service->service_last_state_change); ?>
|
||||
<?php if ($service->service_state_type == 0): ?>
|
||||
<a href="#" title="<?= 'Soft state' ?>">
|
||||
<i>SOFTSTATE ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="servicename">
|
||||
<?php if ($service->service_last_comment !== null): ?>
|
||||
<a href="#" title="<?= 'Comments' ?>">
|
||||
<i>COMMENT ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<b> <?= $service->service_display_name; ?></b>
|
||||
<br/>
|
||||
<?= $service->host_name; ?>
|
||||
|
||||
<?php if ($service->service_action_url != ""): ?>
|
||||
<a href="<?= $service->service_action_url; ?>">Action</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($service->service_action_url != ""): ?>
|
||||
<a href="<?= $service->service_action_url; ?>">Action</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_notes_url != ""): ?>
|
||||
<a href="<?= $service->service_notes_url; ?>">Notes</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_state_type == 0): ?>
|
||||
<a href="#" title="<?= 'Soft state' ?>">
|
||||
<i class="icon-gears"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
</td>
|
||||
|
||||
<td class="expand-full">
|
||||
<?= $this->escape(substr(strip_tags($service->service_output), 0, 10000)); ?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php if ($service->service_notes_url != ""): ?>
|
||||
<a href="<?= $service->service_notes_url; ?>">Notes</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->escape(substr(strip_tags($service->service_output), 0, 10000)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -2,156 +2,148 @@
|
|||
|
||||
<?php
|
||||
$paginator = $services->paginate();
|
||||
|
||||
$viewHelper = $this->getHelper('MonitoringState');
|
||||
$trimArea = $this->getHelper('Trim');
|
||||
?>
|
||||
|
||||
<?php if (empty($services)): ?>
|
||||
<div class="alert alert-info fullpage_infobox">
|
||||
<div>
|
||||
Sorry, no services found for this search
|
||||
</div>
|
||||
<?php return; endif ?>
|
||||
|
||||
|
||||
<form method="get" action="<?= $this->href('monitoring/list/services', $this->services->getAppliedFilter()->toParams()); ?>">
|
||||
Sort by <?= $this->formSelect(
|
||||
'sort',
|
||||
$this->sort,
|
||||
array('class' => 'autosubmit'),
|
||||
array(
|
||||
'service_severity' => 'Severity',
|
||||
'service_last_state_change' => 'Last state change',
|
||||
'service_last_time_unknown' => 'Last UNKNOWN',
|
||||
'service_last_time_critical' => 'Last CRITICAL',
|
||||
'service_last_time_warning' => 'Last WARNING',
|
||||
'service_last_time_ok' => 'Last OK',
|
||||
'service_description' => 'Service',
|
||||
)
|
||||
) ?>
|
||||
<button class="btn btn-small"><i class="icon-refresh"></i></button>
|
||||
<label>Sort by</label>
|
||||
<?= $this->formSelect(
|
||||
'sort',
|
||||
$this->sort,
|
||||
array('class' => 'autosubmit'),
|
||||
array(
|
||||
'service_severity' => 'Severity',
|
||||
'service_last_state_change' => 'Last state change',
|
||||
'service_last_time_unknown' => 'Last UNKNOWN',
|
||||
'service_last_time_critical' => 'Last CRITICAL',
|
||||
'service_last_time_warning' => 'Last WARNING',
|
||||
'service_last_time_ok' => 'Last OK',
|
||||
'service_description' => 'Service',
|
||||
)
|
||||
); ?>
|
||||
<noscript>
|
||||
<button class="btn btn-small btn-default">
|
||||
<i>ICON REFRESH</i>
|
||||
</button>
|
||||
</noscript>
|
||||
</form>
|
||||
|
||||
<?= $this->paginationControl($paginator, null, null, array('preserve' => $this->preserve)) ?>
|
||||
|
||||
<table class="statustable action services">
|
||||
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">Status</th>
|
||||
<th>Service</th>
|
||||
<th>Host</th>
|
||||
<th>Output</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2">Status</th>
|
||||
<th>Service</th>
|
||||
<th>Host</th>
|
||||
<th>Output</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php foreach ($services->fetchAll() as $service): ?>
|
||||
<tr class="<?= implode(' ', $viewHelper->getStateFlags($service, 'service')); ?>">
|
||||
<td class="icons indicator">
|
||||
<div class="img-box"><?php $trimArea->start(); ?>
|
||||
|
||||
<?php if ($service->service_icon_image) : ?>
|
||||
<img src="<?= $service->service_icon_image; ?>"/>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $trimArea->end(); ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="icons indicator">
|
||||
<div class="icon-box"><?php $trimArea->start(); ?>
|
||||
|
||||
<?php if (!$service->service_handled && $service->service_state > 0): ?>
|
||||
<a href="#" title="<?= 'Unhandled service' ?>">
|
||||
<i class="icon-warning-sign"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_acknowledged && !$service->service_in_downtime): ?>
|
||||
<a href="#" title="<?= 'Acknowledged' ?>">
|
||||
<i class="icon-ok-sign"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_is_flapping): ?>
|
||||
<a href="#" title="<?= 'Flapping' ?>">
|
||||
<i class="icon-random"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$service->service_notifications_enabled): ?>
|
||||
<a href="#" title="<?= 'Notifications disabled' ?>">
|
||||
<i class="icon-volume-off"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_in_downtime): ?>
|
||||
<a href="#" title="<?= 'In downtime' ?>">
|
||||
<i class="icon-wrench"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $trimArea->end(); ?>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<td class="indicator state" title="<?= $viewHelper->getStateTitle($service, 'service'); ?>">
|
||||
<div class="statetext">
|
||||
<b><?= ucfirst($viewHelper->monitoringState($service, 'service')); ?></b>
|
||||
<div class="nowrap"> since
|
||||
<?= $this->timeSince($service->service_last_state_change); ?>
|
||||
|
||||
<?php if ($service->service_state_type == 0): ?>
|
||||
<a href="#" title="<?= 'Soft state' ?>">
|
||||
<i class="icon-gears"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td>
|
||||
<div>
|
||||
<?php if ($service->service_icon_image) : ?>
|
||||
<img src="<?= $service->service_icon_image; ?>"/>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<?php if (!$service->service_handled && $service->service_state > 0): ?>
|
||||
<a href="#" title="<?= 'Unhandled service' ?>">
|
||||
<i>UNHANDLED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_acknowledged && !$service->service_in_downtime): ?>
|
||||
<a href="#" title="<?= 'Acknowledged' ?>">
|
||||
<i>ACKNOWLEDGED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_is_flapping): ?>
|
||||
<a href="#" title="<?= 'Flapping' ?>">
|
||||
<i>FLAPPING ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$service->service_notifications_enabled): ?>
|
||||
<a href="#" title="<?= 'Notifications disabled' ?>">
|
||||
<i>NOTIFICATIONS DISABLED ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_in_downtime): ?>
|
||||
<a href="#" title="<?= 'In downtime' ?>">
|
||||
<i>IN DOWNTIME ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<td class="servicename">
|
||||
<?php if ($service->service_last_comment !== null): ?>
|
||||
<a href="#" title="<?= 'Comments' ?>">
|
||||
<i class="icon-comment"> </i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<td title="<?= $viewHelper->getStateTitle($service, 'service'); ?>">
|
||||
<div>
|
||||
<b><?= ucfirst($viewHelper->monitoringState($service, 'service')); ?></b>
|
||||
<div> since
|
||||
<?= $this->timeSince($service->service_last_state_change); ?>
|
||||
|
||||
<b> <?= $service->service_display_name; ?></b>
|
||||
<br/>
|
||||
<?php if ($service->service_state_type == 0): ?>
|
||||
<a href="#" title="<?= 'Soft state' ?>">
|
||||
<i>SOFTSTATE ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<?php if ($service->service_action_url != ""): ?>
|
||||
<a href="<?= $service->service_action_url; ?>">Action</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_notes_url != ""): ?>
|
||||
<a href="<?= $service->service_notes_url; ?>">Notes</a>
|
||||
<?php endif; ?>
|
||||
<td>
|
||||
<?php if ($service->service_last_comment !== null): ?>
|
||||
<a href="#" title="<?= 'Comments' ?>">
|
||||
<i>COMMENT ICON</i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($service->service_state_type == 0): ?>
|
||||
<a href="#" title="<?= 'Soft state' ?>">
|
||||
<i class="icon-gears"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<b> <?= $service->service_display_name; ?></b>
|
||||
<br/>
|
||||
|
||||
<td class="hostname" title="<?= $viewHelper->getStateTitle($service, 'host'); ?>">
|
||||
<?= $service->host_name; ?>
|
||||
<?php if ($service->service_action_url != ""): ?>
|
||||
<a href="<?= $service->service_action_url; ?>">Action</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="statetext">
|
||||
(<?= ucfirst($viewHelper->monitoringState($service, 'host')); ?>)
|
||||
</div>
|
||||
<span class="host_address">
|
||||
<?= $service->host_address ?>
|
||||
</span>
|
||||
</td>
|
||||
<?php if ($service->service_notes_url != ""): ?>
|
||||
<a href="<?= $service->service_notes_url; ?>">Notes</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<td class="expand-full">
|
||||
<?= $this->escape(substr(strip_tags($service->service_output), 0, 10000)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
|
||||
<td title="<?= $viewHelper->getStateTitle($service, 'host'); ?>">
|
||||
<?= $service->host_name; ?>
|
||||
|
||||
<div>
|
||||
(<?= ucfirst($viewHelper->monitoringState($service, 'host')); ?>)
|
||||
</div>
|
||||
<span>
|
||||
<?= $service->host_address ?>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?= $this->escape(substr(strip_tags($service->service_output), 0, 10000)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue