diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php
index 9318520e8..9602396ed 100644
--- a/application/controllers/ConfigController.php
+++ b/application/controllers/ConfigController.php
@@ -39,28 +39,34 @@ class ConfigController extends ActionController
$allowedActions = array();
if ($auth->hasPermission('system/config/application')) {
$tabs->add('application', array(
- 'title' => $this->translate('Application'),
+ 'title' => $this->translate('Adjust the general configuration of Icinga Web 2'),
+ 'label' => $this->translate('Application'),
'url' => 'config/application'
));
$allowedActions[] = 'application';
}
if ($auth->hasPermission('system/config/authentication')) {
$tabs->add('authentication', array(
- 'title' => $this->translate('Authentication'),
+ 'title' => $this->translate('Configure how users authenticate with and log into Icinga Web 2'),
+ 'label' => $this->translate('Authentication'),
'url' => 'config/authentication'
));
$allowedActions[] = 'authentication';
}
if ($auth->hasPermission('system/config/resources')) {
$tabs->add('resource', array(
- 'title' => $this->translate('Resources'),
+ 'title' => $this->translate('Configure which resources are being utilized by Icinga Web 2'),
+ 'label' => $this->translate('Resources'),
'url' => 'config/resource'
));
$allowedActions[] = 'resource';
}
if ($auth->hasPermission('system/config/roles')) {
$tabs->add('roles', array(
- 'title' => $this->translate('Roles'),
+ 'title' => $this->translate(
+ 'Configure roles to permit or restrict users and groups accessing Icinga Web 2'
+ ),
+ 'label' => $this->translate('Roles'),
'url' => 'roles'
));
$allowedActions[] = 'roles';
diff --git a/application/controllers/ListController.php b/application/controllers/ListController.php
index 4736720ce..d55381987 100644
--- a/application/controllers/ListController.php
+++ b/application/controllers/ListController.php
@@ -23,7 +23,7 @@ class ListController extends Controller
protected function addTitleTab($action)
{
$this->getTabs()->add($action, array(
- 'title' => ucfirst($action),
+ 'label' => ucfirst($action),
'url' => Url::fromPath(
'list/'
. str_replace(' ', '', $action)
diff --git a/application/controllers/PreferenceController.php b/application/controllers/PreferenceController.php
index e1fd00f46..ac67f495b 100644
--- a/application/controllers/PreferenceController.php
+++ b/application/controllers/PreferenceController.php
@@ -25,8 +25,9 @@ class PreferenceController extends BasePreferenceController
return array(
'preferences' => new Tab(
array(
- 'title' => t('Preferences'),
- 'url' => Url::fromPath('/preference')
+ 'title' => t('Adjust the preferences of Icinga Web 2 according to your needs'),
+ 'label' => t('Preferences'),
+ 'url' => Url::fromPath('/preference')
)
)
);
diff --git a/application/controllers/RolesController.php b/application/controllers/RolesController.php
index 097c79e29..6cbb4f703 100644
--- a/application/controllers/RolesController.php
+++ b/application/controllers/RolesController.php
@@ -25,24 +25,30 @@ class RolesController extends ActionController
$auth = $this->Auth();
if ($auth->hasPermission('system/config/application')) {
$tabs->add('application', array(
- 'title' => $this->translate('Application'),
+ 'title' => $this->translate('Adjust the general configuration of Icinga Web 2'),
+ 'label' => $this->translate('Application'),
'url' => 'config'
));
}
if ($auth->hasPermission('system/config/authentication')) {
$tabs->add('authentication', array(
- 'title' => $this->translate('Authentication'),
+ 'title' => $this->translate('Configure how users authenticate with and log into Icinga Web 2'),
+ 'label' => $this->translate('Authentication'),
'url' => 'config/authentication'
));
}
if ($auth->hasPermission('system/config/resources')) {
$tabs->add('resource', array(
- 'title' => $this->translate('Resources'),
+ 'title' => $this->translate('Configure which resources are being utilized by Icinga Web 2'),
+ 'label' => $this->translate('Resources'),
'url' => 'config/resource'
));
}
$tabs->add('roles', array(
- 'title' => $this->translate('Roles'),
+ 'title' => $this->translate(
+ 'Configure roles to permit or restrict users and groups accessing Icinga Web 2'
+ ),
+ 'label' => $this->translate('Roles'),
'url' => 'roles'
));
$this->getTabs()->setTitle($this->translate('Role Configuration'));
diff --git a/application/views/scripts/config/application.phtml b/application/views/scripts/config/application.phtml
index edb15d31a..4255befc4 100644
--- a/application/views/scripts/config/application.phtml
+++ b/application/views/scripts/config/application.phtml
@@ -3,7 +3,7 @@
- = $this->translate('Generic Configuration'); ?>
+ = $this->translate('General Configuration'); ?>
messageBox)): ?>
= $this->messageBox->render() ?>
diff --git a/application/views/scripts/config/module.phtml b/application/views/scripts/config/module.phtml
index c41fdbf3a..28fbeb39e 100644
--- a/application/views/scripts/config/module.phtml
+++ b/application/views/scripts/config/module.phtml
@@ -22,14 +22,20 @@
= $this->translate('State') ?> |
= $state ?>
- = $this->qlink($this->translate('disable'), 'config/moduledisable', array(
- 'name' => $module->getName()
- )) ?>
+ = $this->qlink(
+ $this->translate('disable'),
+ 'config/moduledisable',
+ array('name' => $module->getName()),
+ array('title' => sprintf($this->translate('Disable the %s module'), $module->getName()))
+ ); ?>
- = $this->qlink($this->translate('enable'), 'config/moduleenable', array(
- 'name' => $module->getName()
- )) ?>
+ = $this->qlink(
+ $this->translate('enable'),
+ 'config/moduleenable',
+ array('name' => $module->getName()),
+ array('title' => sprintf($this->translate('Enable the %s module'), $module->getName()))
+ ); ?>
|
diff --git a/application/views/scripts/config/modules.phtml b/application/views/scripts/config/modules.phtml
index 25b57533d..feb7facad 100644
--- a/application/views/scripts/config/modules.phtml
+++ b/application/views/scripts/config/modules.phtml
@@ -11,22 +11,18 @@
enabled && $module->loaded) {
- $icon = $this->icon('thumbs-up');
- $title = sprintf($this->translate('Module %s is enabled'), $module->name);
+ echo $this->icon('thumbs-up', sprintf($this->translate('Module %s is enabled'), $module->name));
} elseif (! $module->enabled) {
- $icon = $this->icon('thumbs-down');
- $title = sprintf($this->translate('Module %s is disabled'), $module->name);
+ echo $this->icon('thumbs-down', sprintf($this->translate('Module %s is disabled'), $module->name));
} else { // ! $module->loaded
- $icon = $this->icon('thumbs-down');
- $title = sprintf($this->translate('Module %s has failed to load'), $module->name);
+ echo $this->icon('thumbs-down', sprintf($this->translate('Module %s has failed to load'), $module->name));
}
echo $this->qlink(
- $icon . $this->escape($module->name),
+ $module->name,
'config/module/',
array('name' => $module->name),
- array('title' => $title),
- false
+ array('title' => sprintf($this->translate('Show the overview of the %s module'), $module->name))
); ?>
|
diff --git a/application/views/scripts/config/resource.phtml b/application/views/scripts/config/resource.phtml
index c4eb9360f..342320ab9 100644
--- a/application/views/scripts/config/resource.phtml
+++ b/application/views/scripts/config/resource.phtml
@@ -26,21 +26,25 @@
= $this->qlink(
- $this->icon('edit') . ' ' . $this->escape($name),
+ $name,
'config/editresource',
array('resource' => $name),
- array('title' => sprintf($this->translate('Edit resource %s'), $name)),
- false
+ array(
+ 'icon' => 'edit',
+ 'title' => sprintf($this->translate('Edit resource %s'), $name)
+ )
); ?>
|
= $this->qlink(
- $this->icon('cancel'),
+ '',
'config/removeresource',
array('resource' => $name),
- array('title' => sprintf($this->translate('Remove resource %s'), $name)),
- false
+ array(
+ 'icon' => 'cancel',
+ 'title' => sprintf($this->translate('Remove resource %s'), $name)
+ )
); ?>
|
diff --git a/application/views/scripts/dashboard/settings.phtml b/application/views/scripts/dashboard/settings.phtml
index 2ac9a1dfa..d1ed998d1 100644
--- a/application/views/scripts/dashboard/settings.phtml
+++ b/application/views/scripts/dashboard/settings.phtml
@@ -24,11 +24,13 @@
= $this->qlink(
- $this->icon('cancel'),
+ '',
'dashboard/remove-pane',
array('pane' => $pane->getName()),
- array('title' => sprintf($this->translate('Remove pane %s'), $pane->getName())),
- false
+ array(
+ 'icon' => 'cancel',
+ 'title' => sprintf($this->translate('Remove pane %s'), $pane->getName())
+ )
); ?>
|
@@ -44,20 +46,30 @@
getDisabled() === true) continue; ?>
-
- = $dashlet->getTitle(); ?>
-
+ = $this->qlink(
+ $dashlet->getTitle(),
+ 'dashboard/update-dashlet',
+ array('pane' => $pane->getName(), 'dashlet' => $dashlet->getTitle()),
+ array('title' => sprintf($this->translate('Edit dashlet %s'), $dashlet->getTitle()))
+ ); ?>
|
- = $dashlet->getUrl(); ?>
+ = $this->qlink(
+ $dashlet->getUrl(),
+ $dashlet->getUrl(),
+ null,
+ array('title' => sprintf($this->translate('Show dashlet %s'), $dashlet->getTitle()))
+ ); ?>
|
= $this->qlink(
- $this->icon('cancel'),
+ '',
'dashboard/remove-dashlet',
array('pane' => $pane->getName(), 'dashlet' => $dashlet->getTitle()),
- array('title' => sprintf($this->translate('Remove dashlet %s from pane %s'), $dashlet->getTitle(), $pane->getName())),
- false
+ array(
+ 'icon' => 'cancel',
+ 'title' => sprintf($this->translate('Remove dashlet %s from pane %s'), $dashlet->getTitle(), $pane->getName())
+ )
); ?>
|
diff --git a/application/views/scripts/form/reorder-authbackend.phtml b/application/views/scripts/form/reorder-authbackend.phtml
index 23a6a67f5..02f62572d 100644
--- a/application/views/scripts/form/reorder-authbackend.phtml
+++ b/application/views/scripts/form/reorder-authbackend.phtml
@@ -11,20 +11,24 @@
= $this->qlink(
- $this->icon('edit') . ' ' . $this->escape($backendNames[$i]),
+ $backendNames[$i],
'config/editAuthenticationBackend',
array('auth_backend' => $backendNames[$i]),
- array('title' => sprintf($this->translate('Edit authentication backend %s'), $backendNames[$i])),
- false
+ array(
+ 'icon' => 'edit',
+ 'title' => sprintf($this->translate('Edit authentication backend %s'), $backendNames[$i])
+ )
); ?>
|
= $this->qlink(
- $this->icon('cancel'),
+ '',
'config/removeAuthenticationBackend',
array('auth_backend' => $backendNames[$i]),
- array('title' => sprintf($this->translate('Remove authentication backend %s'), $backendNames[$i])),
- false
+ array(
+ 'icon' => 'cancel',
+ 'title' => sprintf($this->translate('Remove authentication backend %s'), $backendNames[$i])
+ )
); ?>
|
diff --git a/application/views/scripts/joystickPagination.phtml b/application/views/scripts/joystickPagination.phtml
index a89d2601d..9549fc2b0 100644
--- a/application/views/scripts/joystickPagination.phtml
+++ b/application/views/scripts/joystickPagination.phtml
@@ -6,7 +6,7 @@ if ($xAxisPaginator->count() <= 1 && $yAxisPaginator->count() <= 1) {
return; // Display this pagination only if there are multiple pages
}
-$fromTo = t('%s: %d to %d of %d (on the %s-axis)');
+$showText = $this->translate('%s: Show %s %u to %u out of %u', 'pagination.joystick');
$xAxisPages = $xAxisPaginator->getPages('all');
$yAxisPages = $yAxisPaginator->getPages('all');
@@ -28,16 +28,25 @@ $nextXAxisPage = $currentXAxisPage < $totalXAxisPages ? $currentXAxisPage + 1 :
| |
- = $this->icon('up-open'); ?>
+ = $this->qlink(
+ '',
+ Url::fromRequest(),
+ array(
+ 'page' => $currentXAxisPage . ',' . $prevYAxisPage
+ ),
+ array(
+ 'icon' => 'up-open',
+ 'data-base-target' => '_self',
+ 'title' => sprintf(
+ $showText,
+ $this->translate('Y-Axis', 'pagination.joystick'),
+ $this->translate('hosts', 'pagination.joystick'),
+ ($prevYAxisPage - 1) * $yAxisPages->itemCountPerPage + 1,
+ $prevYAxisPage * $yAxisPages->itemCountPerPage,
+ $yAxisPages->totalItemCount
+ )
+ )
+ ); ?>
= $this->icon('up-open'); ?>
@@ -47,16 +56,25 @@ $nextXAxisPage = $currentXAxisPage < $totalXAxisPages ? $currentXAxisPage + 1 :
|
- = $this->icon('left-open'); ?>
+ = $this->qlink(
+ '',
+ Url::fromRequest(),
+ array(
+ 'page' => $prevXAxisPage . ',' . $currentYAxisPage
+ ),
+ array(
+ 'icon' => 'left-open',
+ 'data-base-target' => '_self',
+ 'title' => sprintf(
+ $showText,
+ $this->translate('X-Axis', 'pagination.joystick'),
+ $this->translate('services', 'pagination.joystick'),
+ ($prevXAxisPage - 1) * $xAxisPages->itemCountPerPage + 1,
+ $prevXAxisPage * $xAxisPages->itemCountPerPage,
+ $xAxisPages->totalItemCount
+ )
+ )
+ ); ?>
= $this->icon('left-open'); ?>
@@ -64,16 +82,26 @@ $nextXAxisPage = $currentXAxisPage < $totalXAxisPages ? $currentXAxisPage + 1 :
| |
- = $this->icon('right-open'); ?>
+ = $this->qlink(
+ '',
+ Url::fromRequest(),
+ array(
+ 'page' => $nextXAxisPage . ',' . $currentYAxisPage
+ ),
+ array(
+ 'icon' => 'right-open',
+ 'data-base-target' => '_self',
+ 'title' => sprintf(
+ $showText,
+ $this->translate('X-Axis', 'pagination.joystick'),
+ $this->translate('services', 'pagination.joystick'),
+ $currentXAxisPage * $xAxisPages->itemCountPerPage + 1,
+ $nextXAxisPage === $xAxisPages->last ? $xAxisPages->totalItemCount : $nextXAxisPage * $xAxisPages->itemCountPerPage,
+ $xAxisPages->totalItemCount
+ )
+ ),
+ false
+ ); ?>
= $this->icon('right-open'); ?>
@@ -83,16 +111,25 @@ $nextXAxisPage = $currentXAxisPage < $totalXAxisPages ? $currentXAxisPage + 1 :
| |
- = $this->icon('down-open'); ?>
+ = $this->qlink(
+ '',
+ Url::fromRequest(),
+ array(
+ 'page' => $currentXAxisPage . ',' . $nextYAxisPage
+ ),
+ array(
+ 'icon' => 'down-open',
+ 'data-base-target' => '_self',
+ 'title' => sprintf(
+ $showText,
+ $this->translate('Y-Axis', 'pagination.joystick'),
+ $this->translate('hosts', 'pagination.joystick'),
+ $currentYAxisPage * $yAxisPages->itemCountPerPage + 1,
+ $nextYAxisPage === $yAxisPages->last ? $yAxisPages->totalItemCount : $nextYAxisPage * $yAxisPages->itemCountPerPage,
+ $yAxisPages->totalItemCount
+ )
+ )
+ ); ?>
= $this->icon('down-open'); ?>
diff --git a/application/views/scripts/mixedPagination.phtml b/application/views/scripts/mixedPagination.phtml
index bac2b202b..4704d8f51 100644
--- a/application/views/scripts/mixedPagination.phtml
+++ b/application/views/scripts/mixedPagination.phtml
@@ -13,7 +13,7 @@ if ($this->pageCount <= 1) return;
|
-
- = $this->escape($h->hostgroup_alias) ?>
-
+ = $this->qlink(
+ $h->hostgroup_alias,
+ 'monitoring/list/hosts',
+ array('hostgroup' => $h->hostgroup),
+ array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $h->hostgroup_alias))
+ ); ?>
|
- = $this->qlink($h->services_total, 'monitoring/list/services', array('hostgroup' => $h->hostgroup)) ?>
+ = $this->qlink(
+ $h->services_total,
+ 'monitoring/list/services',
+ array('hostgroup' => $h->hostgroup),
+ array('title' => sprintf(
+ $this->translate('List all services of all hosts in host group "%s"'),
+ $h->hostgroup_alias
+ ))
+ ); ?>
|
services_ok): ?>
-
- = $h->services_ok; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state OK on hosts in the host group "%s"',
+ 'List %u services which are currently in state OK on hosts in the host group "%s"',
+ $h->services_ok
+ ),
+ $h->services_ok,
+ $h->hostgroup_alias
+ )
+ )
+ ); ?>
services_critical_unhandled): ?>
-
- = $h->services_critical_unhandled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state CRITICAL on hosts in the host group "%s"',
+ 'List %u services which are currently in state CRITICAL on hosts in the host group "%s"',
+ $h->services_critical_unhandled
+ ),
+ $h->services_critical_unhandled,
+ $h->hostgroup_alias
+ )
+ )
+ ); ?>
services_critical_handled): ?>
-
- = $h->services_critical_handled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state CRITICAL (Acknowledged) on hosts in the host group "%s"',
+ 'List %u services which are currently in state CRITICAL (Acknowledged) on hosts in the host group "%s"',
+ $h->services_critical_handled
+ ),
+ $h->services_critical_handled,
+ $h->hostgroup_alias
+ )
+ )
+ ); ?>
services_critical_unhandled): ?>
@@ -160,7 +177,8 @@
services_unknown_unhandled): ?>
-
- = $h->services_unknown_unhandled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state UNKNOWN on hosts in the host group "%s"',
+ 'List %u services which are currently in state UNKNOWN on hosts in the host group "%s"',
+ $h->services_unknown_unhandled
+ ),
+ $h->services_unknown_unhandled,
+ $h->hostgroup_alias
+ )
+ )
+ ); ?>
services_unknown_handled): ?>
-
- = $h->services_unknown_handled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state UNKNOWN (Acknowledged) on hosts in the host group "%s"',
+ 'List %u services which are currently in state UNKNOWN (Acknowledged) on hosts in the host group "%s"',
+ $h->services_unknown_handled
+ ),
+ $h->services_unknown_handled,
+ $h->hostgroup_alias
+ )
+ )
+ ); ?>
services_unknown_unhandled): ?>
@@ -210,7 +231,8 @@
services_warning_unhandled): ?>
-
- = $h->services_warning_unhandled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state WARNING on hosts in the host group "%s"',
+ 'List %u services which are currently in state WARNING on hosts in the host group "%s"',
+ $h->services_warning_unhandled
+ ),
+ $h->services_warning_unhandled,
+ $h->hostgroup_alias
+ )
+ )
+ ); ?>
services_warning_handled): ?>
-
- = $h->services_warning_handled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state WARNING (Acknowledged) on hosts in the host group "%s"',
+ 'List %u services which are currently in state WARNING (Acknowledged) on hosts in the host group "%s"',
+ $h->services_warning_handled
+ ),
+ $h->services_warning_handled,
+ $h->hostgroup_alias
+ )
+ )
+ ); ?>
services_warning_unhandled): ?>
@@ -260,24 +285,26 @@
services_pending): ?>
-
- = $h->services_pending; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state PENDING on hosts in the host group "%s"',
+ 'List %u services which are currently in state PENDING on hosts in the host group "%s"',
+ $h->services_pending
+ ),
+ $h->services_pending,
+ $h->hostgroup_alias
+ )
+ )
+ ); ?>
|
diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml
index 0af16c296..dac8d7dde 100644
--- a/modules/monitoring/application/views/scripts/list/hosts.phtml
+++ b/modules/monitoring/application/views/scripts/list/hosts.phtml
@@ -95,11 +95,18 @@ if ($hosts->count() === 0) {
= $this->icon($this->resolveMacros($host->host_icon_image, $host)) ?>
= implode(' ', $icons) ?>
- = $this->escape($host->host_display_name) ?>
+ = $this->qlink(
+ $host->host_display_name,
+ $hostLink,
+ null,
+ array(
+ 'title' => sprintf($this->translate('Show detailed information for host %s'), $host->host_display_name)
+ )
+ ); ?>
host_unhandled_services) && $host->host_unhandled_services > 0): ?>
(= $this->qlink(
sprintf(
- $this->translatePlural('%d unhandled service', '%d unhandled services', $host->host_unhandled_services),
+ $this->translatePlural('%u unhandled service', '%u unhandled services', $host->host_unhandled_services),
$host->host_unhandled_services
),
'monitoring/show/services',
@@ -112,8 +119,8 @@ if ($hosts->count() === 0) {
'style' => 'font-weight: normal',
'title' => sprintf(
$this->translatePlural(
- 'List %s service problem on host %s',
- 'List %s service problems on host %s',
+ 'List %s unhandled service problem on host %s',
+ 'List %s unhandled service problems on host %s',
$host->host_unhandled_services
),
$host->host_unhandled_services,
diff --git a/modules/monitoring/application/views/scripts/list/servicegrid.phtml b/modules/monitoring/application/views/scripts/list/servicegrid.phtml
index 8af02c3a9..d4b5a4074 100644
--- a/modules/monitoring/application/views/scripts/list/servicegrid.phtml
+++ b/modules/monitoring/application/views/scripts/list/servicegrid.phtml
@@ -36,18 +36,23 @@ $hostFilter = '(host_name=' . implode('|host_name=', array_keys($pivotData)) . '
); ?>
@@ -59,18 +64,40 @@ $hostFilter = '(host_name=' . implode('|host_name=', array_keys($pivotData)) . '
|
- = $host_name; ?>
+ = $this->qlink(
+ $host_name,
+ 'monitoring/show/services?' . $serviceFilter,
+ array('host' => $host_name),
+ array('title' => sprintf($this->translate('List all reported services on host %s'), $host_name))
+ ); ?>
|
-
+
+ = $this->escape($service->service_output); ?>
+
+ = $this->qlink(
+ '',
+ 'monitoring/show/service',
+ array(
+ 'host' => $service->host_name,
+ 'service' => $service->service_description
+ ),
+ array(
+ 'aria-describedby' => $service->host_name . '_' . $service->service_description . '_desc',
+ 'class' => 'state_' . Service::getStateText($service->service_state). ($service->service_handled ? ' handled' : ''),
+ 'title' => $this->escape($service->service_output),
+ 'aria-label' => sprintf(
+ $this->translate('Show detailed information for service %s on host %s'),
+ $service->service_description,
+ $service->host_name
+ )
+ )
+ ); ?>
|
- · |
+ · |
diff --git a/modules/monitoring/application/views/scripts/list/servicegroups.phtml b/modules/monitoring/application/views/scripts/list/servicegroups.phtml
index 87baf3278..e511f4fee 100644
--- a/modules/monitoring/application/views/scripts/list/servicegroups.phtml
+++ b/modules/monitoring/application/views/scripts/list/servicegroups.phtml
@@ -78,9 +78,12 @@
-
- = $this->translate($s->servicegroup_alias) ?>
-
+ = $this->qlink(
+ $s->servicegroup_alias,
+ 'monitoring/list/services',
+ array('servicegroup' => $s->servicegroup),
+ array('title' => sprintf($this->translate('List all services in the group "%s"'), $s->servicegroup_alias))
+ ); ?>
|
= $s->services_total; ?>
@@ -88,29 +91,32 @@
|
services_ok): ?>
-
- = $s->services_ok; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %s service that is currently in state OK in service group "%s"',
+ 'List %s services which are currently in state OK in service group "%s"',
+ $s->services_ok
+ ),
+ $s->services_ok,
+ $s->servicegroup_alias
+ )
+ )
+ ); ?>
services_critical_unhandled): ?>
-
- = $s->services_critical_unhandled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %s service that is currently in state CRITICAL in service group "%s"',
+ 'List %s services which are currently in state CRITICAL in service group "%s"',
+ $s->services_critical_unhandled
+ ),
+ $s->services_critical_unhandled,
+ $s->servicegroup_alias
+ )
+ )
+ ); ?>
services_critical_handled): ?>
-
- = $s->services_critical_handled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %s service that is currently in state CRITICAL (Acknowledged) in service group "%s"',
+ 'List %s services which are currently in state CRITICAL (Acknowledged) in service group "%s"',
+ $s->services_critical_handled
+ ),
+ $s->services_critical_handled,
+ $s->servicegroup_alias
+ )
+ )
+ ); ?>
services_critical_unhandled): ?>
@@ -160,7 +169,8 @@
services_unknown_unhandled): ?>
-
- = $s->services_unknown_unhandled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %s service that is currently in state UNKNOWN in service group "%s"',
+ 'List %s services which are currently in state UNKNOWN in service group "%s"',
+ $s->services_unknown_unhandled
+ ),
+ $s->services_unknown_unhandled,
+ $s->servicegroup_alias
+ )
+ )
+ ); ?>
services_unknown_handled): ?>
-
- = $s->services_unknown_handled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %s service that is currently in state UNKNOWN (Acknowledged) in service group "%s"',
+ 'List %s services which are currently in state UNKNOWN (Acknowledged) in service group "%s"',
+ $s->services_unknown_handled
+ ),
+ $s->services_unknown_handled,
+ $s->servicegroup_alias
+ )
+ )
+ ); ?>
services_unknown_unhandled): ?>
@@ -210,7 +223,8 @@
services_warning_unhandled): ?>
-
- = $s->services_warning_unhandled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %s service that is currently in state WARNING in service group "%s"',
+ 'List %s services which are currently in state WARNING in service group "%s"',
+ $s->services_warning_unhandled
+ ),
+ $s->services_warning_unhandled,
+ $s->servicegroup_alias
+ )
+ )
+ ); ?>
services_warning_handled): ?>
-
- = $s->services_warning_handled; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %s service that is currently in state WARNING (Acknowledged) in service group "%s"',
+ 'List %s services which are currently in state WARNING (Acknowledged) in service group "%s"',
+ $s->services_warning_handled
+ ),
+ $s->services_warning_handled,
+ $s->servicegroup_alias
+ )
+ )
+ ); ?>
services_warning_unhandled): ?>
@@ -260,24 +277,26 @@
services_pending): ?>
-
- = $s->services_pending; ?>
-
+ array(
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %s service that is currenlty in state PENDING in service group "%s"',
+ 'List %s services which are currently in state PENDING in service group "%s"',
+ $s->services_pending
+ ),
+ $s->services_pending,
+ $s->servicegroup_alias
+ )
+ )
+ ); ?>
|
diff --git a/modules/monitoring/application/views/scripts/list/services.phtml b/modules/monitoring/application/views/scripts/list/services.phtml
index 0f4933f82..636303b6e 100644
--- a/modules/monitoring/application/views/scripts/list/services.phtml
+++ b/modules/monitoring/application/views/scripts/list/services.phtml
@@ -101,13 +101,23 @@ foreach ($services as $service):
service_icon_image && ! preg_match('/[\'"]/', $service->service_icon_image)): ?>
- = $this->icon($this->resolveMacros($service->service_icon_image, $service)) ?>
+ = $this->icon($this->resolveMacros($service->service_icon_image, $service)) ?>
-
= $this->escape($service->service_display_name) ?>showHost): ?> on
= $this->escape($service->host_display_name) ?>
-host_state != 0): ?>
- (= Host::getStateText($service->host_state, true); ?>)
-
-
+ = $this->qlink(
+ $service->service_display_name,
+ $serviceLink,
+ null,
+ array('title' => sprintf(
+ $this->translate('Show detailed information for service %s on host %s'),
+ $service->service_display_name,
+ $service->host_display_name
+ ))
+ ); ?>showHost): ?> on = $this->qlink(
+ $service->host_display_name . ($service->host_state != 0 ? ' (' . Host::getStateText($service->host_state, true) . ')' : ''),
+ $hostLink,
+ null,
+ array('title' => sprintf($this->translate('Show detailed information for host %s'), $service->host_display_name))
+ ); ?>
= $this->escape($this->ellipsis($service->service_output, 10000)); ?>
extraColumns as $col): ?>
diff --git a/modules/monitoring/application/views/scripts/partials/host/servicesummary.phtml b/modules/monitoring/application/views/scripts/partials/host/servicesummary.phtml
index d45415c72..c0acdead4 100644
--- a/modules/monitoring/application/views/scripts/partials/host/servicesummary.phtml
+++ b/modules/monitoring/application/views/scripts/partials/host/servicesummary.phtml
@@ -1,23 +1,54 @@
$this->object->host_name));
+$selfUrl = Url::fromPath('monitoring/show/services', array('host' => $object->host_name));
$currentUrl = Url::fromRequest()->without('limit')->getRelativeUrl();
-?>
compact ? ' data-base-target="col1"' : '' ?>>
-stats->services_total > 0): ?>
-= $this->qlink(sprintf($this->translatePlural('%d configured service:', '%d configured services:', $object->stats->services_total), $object->stats->services_total), $selfUrl) ?>
+?>
compact ? ' data-base-target="col1"' : ''; ?>>
+stats->services_total): ?>
+= $this->qlink(
+ sprintf(
+ $this->translatePlural(
+ '%u configured service:',
+ '%u configured services:',
+ $object->stats->services_total
+ ),
+ $object->stats->services_total
+ ),
+ $selfUrl,
+ null,
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List all %u service on host %s',
+ 'List all %u services on host %s',
+ $object->stats->services_total
+ ),
+ $object->stats->services_total,
+ $object->host_name
+ ))
+); ?>
= $this->translate('No services configured on this host'); ?>
-stats->services_ok > 0): ?>
- = $this->qlink(
- $object->stats->services_ok,
- $selfUrl,
- array('service_state' => 0),
- array('title' => sprintf($this->translate('Services with state %s'), $this->translate('OK')))
-) ?>
+stats->services_ok): ?>
+
+ = $this->qlink(
+ $object->stats->services_ok,
+ $selfUrl,
+ array('service_state' => 0),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state OK on host %s',
+ 'List %u services which are currently in state OK on host %s',
+ $object->stats->services_ok
+ ),
+ $object->stats->services_ok,
+ $object->host_name
+ ))
+ ); ?>
+
'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $state) {
@@ -46,7 +77,16 @@ foreach (array(2 => 'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $
$object->stats->$unhandled,
$selfUrl,
$paramsUnhandled,
- array('title' => sprintf($this->translate('Unhandled services with state %s'), $this->translate(strtoupper($state))))
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state %s on host %s',
+ 'List %u services which are currently in state %s on host %s',
+ $object->stats->$unhandled
+ ),
+ $object->stats->$unhandled,
+ Service::getStateText($stateId, true),
+ $object->host_name
+ ))
);
}
if ($object->stats->$handled) {
@@ -63,7 +103,16 @@ foreach (array(2 => 'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $
$object->stats->$handled,
$selfUrl,
$paramsHandled,
- array('title' => sprintf($this->translate('Handled services with state %s'), $this->translate(strtoupper($state))))
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state %s (Acknowledged) on host %s',
+ 'List %u services which are currently in state %s (Acknowledged) on host %s',
+ $object->stats->$handled
+ ),
+ $object->stats->$handled,
+ Service::getStateText($stateId, true),
+ $object->host_name
+ ))
);
if ($object->stats->$unhandled) {
echo "\n";
@@ -74,12 +123,22 @@ foreach (array(2 => 'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $
}
?>
stats->services_pending): ?>
- = $this->qlink(
- $object->stats->services_pending,
- $selfUrl,
- array('service_state' => 99),
- array('title' => sprintf($this->translate('Services with state %s'), $this->translate('PENDING')))
-) ?>
+
+ = $this->qlink(
+ $object->stats->services_pending,
+ $selfUrl,
+ array('service_state' => 99),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state PENDING on host %s',
+ 'List %u services which are currently in state PENDING on host %s',
+ $object->stats->services_pending
+ ),
+ $object->stats->services_pending,
+ $object->host_name
+ ))
+ ) ?>
+
-
+
\ No newline at end of file
diff --git a/modules/monitoring/application/views/scripts/services/show.phtml b/modules/monitoring/application/views/scripts/services/show.phtml
index 8f818627a..015fecb95 100644
--- a/modules/monitoring/application/views/scripts/services/show.phtml
+++ b/modules/monitoring/application/views/scripts/services/show.phtml
@@ -1,159 +1,116 @@
- = $this->render('partials/service/objects-header.phtml') ?>
+ = $this->render('partials/service/objects-header.phtml'); ?>
- = $this->translate('No services matching the filter') ?>
+ = $this->translate('No services matching the filter'); ?>
-
+
= sprintf($this->translatePlural('%u Service', '%u Services', $serviceCount), $serviceCount); ?>
+
= $this->qlink(
+ sprintf($this->translate('List all %u services'), $serviceCount),
+ $listAllLink
+ ); ?>
-
-
+
= $this->qlink(
+ sprintf($this->translate('Reschedule the next check for all %u services'), $serviceCount),
+ $rescheduleAllLink,
+ null,
+ array('icon' => 'reschedule')
+ ); ?>
+
= $this->qlink(
+ sprintf($this->translate('Schedule a downtime for all %u services'), $serviceCount),
+ $downtimeAllLink,
+ null,
+ array('icon' => 'plug')
+ ); ?>
+
= $this->qlink(
+ sprintf($this->translate('Submit a passive check result for all %u services'), $serviceCount),
+ $processCheckResultAllLink,
+ null,
+ array('icon' => 'reply')
+ ); ?>
+ 0): ?>
- = $checkNowForm ?>
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml b/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml
index 8da35590f..22a372151 100644
--- a/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml
@@ -35,9 +35,17 @@ if ($object->acknowledged): ?>
);
}
?>
-
- = $this->icon('ok') ?> = $this->translate('Acknowledge') ?>
-
+ = $this->qlink(
+ $this->translate('Acknowledge'),
+ $ackLink,
+ null,
+ array(
+ 'icon' => 'ok',
+ 'title' => $this->translate(
+ 'Acknowledge this problem, suppress all future notifications for it and tag it as being handled'
+ )
+ )
+ ); ?>
diff --git a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml
index ec0c2792a..639437a03 100644
--- a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml
@@ -28,23 +28,33 @@ if ($object->getType() === $object::TYPE_HOST) {
hasPermission('monitoring/command/schedule-check')) {
if ($isService) {
- $reschedule = $this->href(
+ echo $this->qlink(
+ $this->translate('Reschedule'),
'monitoring/service/reschedule-check',
- array('host' => $object->getHost()->getName(), 'service' => $object->getName())
+ array('host' => $object->getHost()->getName(), 'service' => $object->getName()),
+ array(
+ 'icon' => 'reschedule',
+ 'data-base-target' => '_self',
+ 'title' => $this->translate(
+ 'Schedule the next active check at a different time than the current one'
+ )
+ )
);
} else {
- $reschedule = $this->href(
+ echo $this->qlink(
+ $this->translate('Reschedule'),
'monitoring/host/reschedule-check',
- array('host' => $object->getName())
+ array('host' => $object->getName()),
+ array(
+ 'icon' => 'reschedule',
+ 'data-base-target' => '_self',
+ 'title' => $this->translate(
+ 'Schedule the next active check at a different time than the current one'
+ )
+ )
);
}
- ?>
-
- = $this->icon('reschedule') ?>
- = $this->translate('Reschedule') ?>
-
-
- = $this->timeUntil($object->next_check) ?>
+ } ?> = $this->timeUntil($object->next_check) ?>
|
diff --git a/modules/monitoring/application/views/scripts/show/components/command.phtml b/modules/monitoring/application/views/scripts/show/components/command.phtml
index a74b5b884..d7fca7cfa 100644
--- a/modules/monitoring/application/views/scripts/show/components/command.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/command.phtml
@@ -6,26 +6,35 @@ $command = array_shift($parts);
?>
- = $this->translate('Command') ?> |
+ = $this->translate('Command'); ?> |
- = $this->escape($command) ?>
- hasPermission('monitoring/command/schedule-check') && $object->passive_checks_enabled): ?>
- getType() === $object::TYPE_HOST) {
- $processCheckResult = $this->href(
+ = $this->escape($command); ?>
+ hasPermission('monitoring/command/schedule-check') && $object->passive_checks_enabled) {
+ $title = sprintf($this->translate('Submit a one time or so called passive result for the %s check'), $command);
+ if ($object->getType() === $object::TYPE_HOST) {
+ echo $this->qlink(
+ $this->translate('Process check result'),
'monitoring/host/process-check-result',
- array('host' => $object->getName())
+ array('host' => $object->getName()),
+ array(
+ 'icon' => 'reply',
+ 'data-base-target' => '_self',
+ 'title' => $title
+ )
);
} else {
- $processCheckResult = $this->href(
+ echo $this->qlink(
+ $this->translate('Process check result'),
'monitoring/service/process-check-result',
- array('host' => $object->getHost()->getName(), 'service' => $object->getName())
+ array('host' => $object->getHost()->getName(), 'service' => $object->getName()),
+ array(
+ 'icon' => 'reply',
+ 'data-base-target' => '_self',
+ 'title' => $title
+ )
);
- } ?>
-
- = $this->icon('reply') ?>
- = $this->translate('Process check result') ?>
-
-
+ }
+ } ?>
|
diff --git a/modules/monitoring/application/views/scripts/show/components/comments.phtml b/modules/monitoring/application/views/scripts/show/components/comments.phtml
index a6503a70b..fa7d4606a 100644
--- a/modules/monitoring/application/views/scripts/show/components/comments.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/comments.phtml
@@ -1,27 +1,34 @@
- = $this->translate('Comments') ?> |
+ = $this->translate('Comments'); ?> |
hasPermission('monitoring/command/comment/add')) {
/** @type \Icinga\Module\Monitoring\Object\MonitoredObject $object */
if ($object->getType() === $object::TYPE_HOST) {
- $addCommentLink = $this->href(
+ echo $this->qlink(
+ $this->translate('Add comment'),
'monitoring/host/add-comment',
- array('host' => $object->getName())
+ array('host' => $object->getName()),
+ array(
+ 'icon' => 'comment',
+ 'data-base-target' => '_self',
+ 'title' => $this->translate('Add a new comment to this host')
+ )
);
} else {
- $addCommentLink = $this->href(
+ echo $this->qlink(
+ $this->translate('Add comment'),
'monitoring/service/add-comment',
- array('host' => $object->getHost()->getName(), 'service' => $object->getName())
+ array('host' => $object->getHost()->getName(), 'service' => $object->getName()),
+ array(
+ 'icon' => 'comment',
+ 'data-base-target' => '_self',
+ 'title' => $this->translate('Add a new comment to this service')
+ )
);
}
- ?>
-
- = $this->icon('comment') ?>
- = $this->translate('Add comment') ?>
-
-
+ } ?>
|
diff --git a/modules/monitoring/application/views/scripts/show/components/contacts.phtml b/modules/monitoring/application/views/scripts/show/components/contacts.phtml
index 50b173381..c00714e9c 100644
--- a/modules/monitoring/application/views/scripts/show/components/contacts.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/contacts.phtml
@@ -4,9 +4,12 @@ if (! empty($object->contacts)) {
$list = array();
foreach ($object->contacts as $contact) {
- $list[] = $this->qlink($contact->contact_alias, 'monitoring/show/contact', array(
- 'contact' => $contact->contact_name
- ));
+ $list[] = $this->qlink(
+ $contact->contact_alias,
+ 'monitoring/show/contact',
+ array('contact' => $contact->contact_name),
+ array('title' => sprintf($this->translate('Show detailed information about %s'), $contact->contact_alias))
+ );
}
printf(
@@ -24,7 +27,8 @@ if (! empty($object->contactgroups)) {
$list[] = $this->qlink(
$contactgroup->contactgroup_alias,
'monitoring/list/contactgroups',
- array('contactgroup' => $contactgroup->contactgroup_name)
+ array('contactgroup' => $contactgroup->contactgroup_name),
+ array('title' => sprintf($this->translate('List contacts in contact-group "%s"'), $contactgroup->contactgroup_alias))
);
}
diff --git a/modules/monitoring/application/views/scripts/show/components/downtime.phtml b/modules/monitoring/application/views/scripts/show/components/downtime.phtml
index 4aa1e21c1..76a4be005 100644
--- a/modules/monitoring/application/views/scripts/show/components/downtime.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/downtime.phtml
@@ -1,27 +1,38 @@
- = $this->translate('Downtimes') ?> |
+ = $this->translate('Downtimes'); ?> |
hasPermission('monitoring/command/downtime/schedule')) {
/** @type \Icinga\Module\Monitoring\Object\MonitoredObject $object */
if ($object->getType() === $object::TYPE_HOST) {
- $scheduleDowntimeLink = $this->href(
+ echo $this->qlink(
+ $this->translate('Schedule downtime'),
'monitoring/host/schedule-downtime',
- array('host' => $object->getName())
+ array('host' => $object->getName()),
+ array(
+ 'icon' => 'plug',
+ 'data-base-target' => '_self',
+ 'title' => $this->translate(
+ 'Schedule a downtime to suppress all problem notifications within a specific period of time'
+ )
+ )
);
} else {
- $scheduleDowntimeLink = $this->href(
+ echo $this->qlink(
+ $this->translate('Schedule downtime'),
'monitoring/service/schedule-downtime',
- array('host' => $object->getHost()->getName(), 'service' => $object->getName())
+ array('host' => $object->getHost()->getName(), 'service' => $object->getName()),
+ array(
+ 'icon' => 'plug',
+ 'data-base-target' => '_self',
+ 'title' => $this->translate(
+ 'Schedule a downtime to suppress all problem notifications within a specific period of time'
+ )
+ )
);
}
- ?>
-
- = $this->icon('plug') ?>
- = $this->translate('Schedule downtime') ?>
-
-
+ } ?>
|
diff --git a/modules/monitoring/application/views/scripts/show/components/hostgroups.phtml b/modules/monitoring/application/views/scripts/show/components/hostgroups.phtml
index 165df627a..eed1ea328 100644
--- a/modules/monitoring/application/views/scripts/show/components/hostgroups.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/hostgroups.phtml
@@ -4,9 +4,12 @@ if (empty($object->hostgroups)) return;
$list = array();
foreach ($object->hostgroups as $name => $alias) {
- $list[] = $this->qlink($alias, 'monitoring/list/hosts', array(
- 'hostgroup' => $name
- ));
+ $list[] = $this->qlink(
+ $alias,
+ 'monitoring/list/hosts',
+ array('hostgroup' => $name),
+ array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $alias))
+ );
}
printf(
"
%s | %s %s |
---|
\n",
diff --git a/modules/monitoring/application/views/scripts/show/components/servicegroups.phtml b/modules/monitoring/application/views/scripts/show/components/servicegroups.phtml
index 50b71d839..093e03286 100644
--- a/modules/monitoring/application/views/scripts/show/components/servicegroups.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/servicegroups.phtml
@@ -4,9 +4,12 @@ if (empty($object->servicegroups)) return;
$list = array();
foreach ($object->servicegroups as $name => $alias) {
- $list[] = $this->qlink($alias, 'monitoring/list/services', array(
- 'servicegroup' => $name
- ));
+ $list[] = $this->qlink(
+ $alias,
+ 'monitoring/list/services',
+ array('servicegroup' => $name),
+ array('title' => sprintf($this->translate('List all services in the group "%s"'), $alias))
+ );
}
printf(
diff --git a/modules/monitoring/application/views/scripts/show/contact.phtml b/modules/monitoring/application/views/scripts/show/contact.phtml
index 92b84dc73..c4142707a 100644
--- a/modules/monitoring/application/views/scripts/show/contact.phtml
+++ b/modules/monitoring/application/views/scripts/show/contact.phtml
@@ -19,23 +19,27 @@
contact_email): ?>
- = mt('monitoring', 'Email') ?> |
- = sprintf('%1$s', $this->escape($contact->contact_email)) ?> |
+ = $this->translate('Email') ?> |
+
+
+ = $this->escape($contact->contact_email); ?>
+
+ |
contact_pager): ?>
- = mt('monitoring', 'Pager') ?> |
+ = $this->translate('Pager') ?> |
= $this->escape($contact->contact_pager) ?> |
- = mt('monitoring', 'Hosts') ?> |
+ = $this->translate('Hosts') ?> |
= $this->escape($contactHelper->contactFlags($contact, 'host')) ?>
= $this->escape($contact->contact_notify_host_timeperiod) ?> |
- = mt('monitoring', 'Services') ?> |
+ = $this->translate('Services') ?> |
= $this->escape($contactHelper->contactFlags($contact, 'service')) ?>
= $this->escape($contact->contact_notify_service_timeperiod) ?> |
diff --git a/modules/monitoring/application/views/scripts/show/history.phtml b/modules/monitoring/application/views/scripts/show/history.phtml
index 5c20e800b..0542294d6 100644
--- a/modules/monitoring/application/views/scripts/show/history.phtml
+++ b/modules/monitoring/application/views/scripts/show/history.phtml
@@ -29,7 +29,12 @@ $hostContext = $object->getType() === 'host';
function contactsLink($match, $view) {
$links = array();
foreach (preg_split('/,\s/', $match[1]) as $contact) {
- $links[] = $view->qlink($contact, 'monitoring/show/contact', array('contact' => $contact));
+ $links[] = $view->qlink(
+ $contact,
+ 'monitoring/show/contact',
+ array('contact' => $contact),
+ array('title' => sprintf($view->translate('Show detailed information about %s'), $contact))
+ );
}
return '[' . implode(', ', $links) . ']';
}
@@ -136,12 +141,17 @@ $output = $this->tickets ? preg_replace_callback(
= sprintf(
$this->translate('%s on %s', 'Service running on host'),
$hostContext ? $this->qlink(
- $this->escape($event->service_display_name),
+ $event->service_display_name,
'monitoring/show/service',
array(
'host' => $event->host_name,
'service' => $event->service_description
- )
+ ),
+ array('title' => sprintf(
+ $this->translate('Show detailed information for service %s on host %s'),
+ $event->service_display_name,
+ $event->host_display_name
+ ))
) : $this->escape($event->service_display_name),
$event->host_display_name
) ?>
@@ -150,7 +160,7 @@ $output = $this->tickets ? preg_replace_callback(
- = $this->icon($icon, $title); ?> = empty($msg) ? '' : $this->escape($msg) ?>
+ = $this->icon($icon, $title); ?> = empty($msg) ? '' : $msg; ?>
diff --git a/modules/monitoring/application/views/scripts/tactical/components/hostservicechecks.phtml b/modules/monitoring/application/views/scripts/tactical/components/hostservicechecks.phtml
index 64265304d..b85199962 100644
--- a/modules/monitoring/application/views/scripts/tactical/components/hostservicechecks.phtml
+++ b/modules/monitoring/application/views/scripts/tactical/components/hostservicechecks.phtml
@@ -12,66 +12,114 @@
statusSummary->hosts_active): ?>
-
+ = $this->qlink(
+ sprintf(
+ $this->translatePlural('%u Active', '%u Active', $this->statusSummary->hosts_active),
+ $this->statusSummary->hosts_active
+ ),
+ 'monitoring/list/hosts',
+ array('host_active_checks_enabled' => 1),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u actively checked host',
+ 'List %u actively checked hosts',
+ $this->statusSummary->hosts_active
+ ),
+ $this->statusSummary->hosts_active
+ ))
+ ); ?>
statusSummary->hosts_passive): ?>
-
+ = $this->qlink(
+ sprintf(
+ $this->translatePlural('%d Passive', '%d Passive', $this->statusSummary->hosts_passive),
+ $this->statusSummary->hosts_passive
+ ),
+ 'monitoring/list/hosts',
+ array('host_active_checks_enabled' => 0, 'host_passive_checks_enabled' => 1),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u passively checked host',
+ 'List %u passively checked hosts',
+ $this->statusSummary->hosts_passive
+ ),
+ $this->statusSummary->hosts_passive
+ ))
+ ); ?>
statusSummary->hosts_not_checked): ?>
-
+ = $this->qlink(
+ sprintf(
+ $this->translatePlural('%d Disabled', '%d Disabled', $this->statusSummary->hosts_not_checked),
+ $this->statusSummary->hosts_not_checked
+ ),
+ 'monitoring/list/hosts',
+ array('host_active_checks_enabled' => 0, 'host_passive_checks_enabled' => 0),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u host that is not being checked at all',
+ 'List %u hosts which are not being checked at all',
+ $this->statusSummary->hosts_not_checked
+ ),
+ $this->statusSummary->hosts_not_checked
+ ))
+ ); ?>
|
statusSummary->services_active): ?>
-
+ = $this->qlink(
+ sprintf(
+ $this->translatePlural('%d Active', '%d Active', $this->statusSummary->services_active),
+ $this->statusSummary->services_active
+ ),
+ 'monitoring/list/services',
+ array('service_active_checks_enabled' => 1),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u actively checked service',
+ 'List %u actively checked services',
+ $this->statusSummary->services_active
+ ),
+ $this->statusSummary->services_active
+ ))
+ ); ?>
statusSummary->services_passive): ?>
-
+ = $this->qlink(
+ sprintf(
+ $this->translatePlural('%d Passive', '%d Passive', $this->statusSummary->services_passive),
+ $this->statusSummary->services_passive
+ ),
+ 'monitoring/list/services',
+ array('service_active_checks_enabled' => 0, 'service_passive_checks_enabled' => 1),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u passively checked service',
+ 'List %u passively checked services',
+ $this->statusSummary->services_passive
+ ),
+ $this->statusSummary->services_passive
+ ))
+ ); ?>
statusSummary->services_not_checked): ?>
-
+ = $this->qlink(
+ sprintf(
+ $this->translatePlural('%d Disabled', '%d Disabled', $this->statusSummary->services_not_checked),
+ $this->statusSummary->services_not_checked
+ ),
+ 'monitoring/list/services',
+ array('service_active_checks_enabled' => 0, 'service_passive_checks_enabled' => 0),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is not being checked at all',
+ 'List %u services which are not being checked at all',
+ $this->statusSummary->services_not_checked
+ ),
+ $this->statusSummary->services_not_checked
+ ))
+ ); ?>
|
diff --git a/modules/monitoring/application/views/scripts/tactical/components/monitoringfeatures.phtml b/modules/monitoring/application/views/scripts/tactical/components/monitoringfeatures.phtml
index 36b88b050..a67e9057c 100644
--- a/modules/monitoring/application/views/scripts/tactical/components/monitoringfeatures.phtml
+++ b/modules/monitoring/application/views/scripts/tactical/components/monitoringfeatures.phtml
@@ -11,58 +11,112 @@
+
statusSummary->hosts_without_flap_detection): ?>
-
-
- = sprintf($this->translatePlural('%d Host Disabled', '%d Hosts Disabled', $this->statusSummary->hosts_without_flap_detection), $this->statusSummary->hosts_without_flap_detection); ?>
-
+ array('host_flap_detection_enabled' => 0),
+ array(
+ 'class' => 'feature-highlight',
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u host for which flap detection has been disabled',
+ 'List %u hosts for which flap detection has been disabled',
+ $this->statusSummary->hosts_without_flap_detection
+ ),
+ $this->statusSummary->hosts_without_flap_detection
+ )
+ )
+ ); ?>
-
-
- = $this->translate('All Hosts Enabled'); ?>
-
+ array('host_flap_detection_enabled' => 1),
+ array('title' => $this->translate(
+ 'List all hosts, for which flap detection is enabled entirely'
+ ))
+ ); ?>
statusSummary->hosts_flapping): ?>
-
- = sprintf($this->translatePlural('%d Host Flapping', '%d Hosts Flapping', $this->statusSummary->hosts_flapping), $this->statusSummary->hosts_flapping); ?>
-
+ array('host_is_flapping' => 1),
+ array(
+ 'class' => 'feature-highlight',
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u host that is currently flapping',
+ 'List %u hosts which are currently flapping',
+ $this->statusSummary->hosts_flapping
+ ),
+ $this->statusSummary->hosts_flapping
+ )
+ )
+ ); ?>
|
+
statusSummary->services_without_flap_detection): ?>
-
-
- = sprintf($this->translatePlural('%d Service Disabled', '%d Services Disabled', $this->statusSummary->services_without_flap_detection), $this->statusSummary->services_without_flap_detection); ?>
-
+ array('service_flap_detection_enabled' => 0),
+ array(
+ 'class' => 'feature-highlight',
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service for which flap detection has been disabled',
+ 'List %u services for which flap detection has been disabled',
+ $this->statusSummary->services_without_flap_detection
+ ),
+ $this->statusSummary->services_without_flap_detection
+ )
+ )
+ ); ?>
-
-
- = $this->translate('All Services Enabled'); ?>
-
+ array('service_flap_detection_enabled' => 1),
+ array('title' => $this->translate(
+ 'List all services, for which flap detection is enabled entirely'
+ ))
+ ); ?>
statusSummary->services_flapping): ?>
-
- = sprintf($this->translatePlural('%d Service Flapping', '%d Services Flapping', $this->statusSummary->services_flapping), $this->statusSummary->services_flapping); ?>
-
+ array('service_is_flapping' => 1),
+ array(
+ 'class' => 'feature-highlight',
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently flapping',
+ 'List %u services which are currently flapping',
+ $this->statusSummary->services_flapping
+ ),
+ $this->statusSummary->services_flapping
+ )
+ )
+ ); ?>
|
@@ -78,42 +132,70 @@
+
statusSummary->hosts_not_triggering_notifications): ?>
-
-
- = sprintf($this->translatePlural('%d Host Disabled', '%d Hosts Disabled', $this->statusSummary->hosts_not_triggering_notifications), $this->statusSummary->hosts_not_triggering_notifications); ?>
-
+ array('host_notifications_enabled' => 0),
+ array(
+ 'class' => 'feature-highlight',
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u host for which notifications are suppressed',
+ 'List %u hosts for which notifications are suppressed',
+ $this->statusSummary->hosts_not_triggering_notifications
+ ),
+ $this->statusSummary->hosts_not_triggering_notifications
+ )
+ )
+ ); ?>
-
-
- = $this->translate('All Hosts Enabled'); ?>
-
+ array('host_notifications_enabled' => 1),
+ array('title' => $this->translate(
+ 'List all hosts, for which notifications are enabled entirely'
+ ))
+ ); ?>
|
+
statusSummary->services_not_triggering_notifications): ?>
-
-
- = sprintf($this->translatePlural('%d Service Disabled', '%d Services Disabled', $this->statusSummary->services_not_triggering_notifications), $this->statusSummary->services_not_triggering_notifications); ?>
-
+ array('service_notifications_enabled' => 0),
+ array(
+ 'class' => 'feature-highlight',
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service for which notifications are suppressed',
+ 'List %u services for which notifications are suppressed',
+ $this->statusSummary->services_not_triggering_notifications
+ ),
+ $this->statusSummary->services_not_triggering_notifications
+ )
+ )
+ ); ?>
-
-
- = $this->translate('All Services Enabled'); ?>
-
+ array('service_notifications_enabled' => 1),
+ array('title' => $this->translate(
+ 'List all services, for which notifications are enabled entirely'
+ ))
+ ); ?>
|
@@ -129,42 +211,70 @@
+
statusSummary->hosts_not_processing_event_handlers): ?>
-
-
- = sprintf($this->translatePlural('%d Host Disabled', '%d Hosts Disabled', $this->statusSummary->hosts_not_processing_event_handlers), $this->statusSummary->hosts_not_processing_event_handlers); ?>
-
+ array('host_event_handler_enabled' => 0),
+ array(
+ 'class' => 'feature-highlight',
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u host that is not processing any event handlers',
+ 'List %u hosts which are not processing any event handlers',
+ $this->statusSummary->hosts_not_processing_event_handlers
+ ),
+ $this->statusSummary->hosts_not_processing_event_handlers
+ )
+ )
+ ); ?>
-
-
- = $this->translate('All Hosts Enabled'); ?>
-
+ array('host_event_handler_enabled' => 1),
+ array('title' => $this->translate(
+ 'List all hosts, which are processing event handlers entirely'
+ ))
+ ); ?>
|
+
statusSummary->services_not_processing_event_handlers): ?>
-
-
- = sprintf($this->translatePlural('%d Service Disabled', '%d Services Disabled', $this->statusSummary->services_not_processing_event_handlers), $this->statusSummary->services_not_processing_event_handlers); ?>
-
+ array('service_event_handler_enabled' => 0),
+ array(
+ 'class' => 'feature-highlight',
+ 'title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is not processing any event handlers',
+ 'List %u services which are not processing any event handlers',
+ $this->statusSummary->services_not_processing_event_handlers
+ ),
+ $this->statusSummary->services_not_processing_event_handlers
+ )
+ )
+ ); ?>
-
-
- = $this->translate('All Services Enabled'); ?>
-
+ array('service_event_handler_enabled' => 1),
+ array('title' => $this->translate(
+ 'List all services, which are processing event handlers entirely'
+ ))
+ ); ?>
|
diff --git a/modules/monitoring/application/views/scripts/tactical/components/ok_hosts.phtml b/modules/monitoring/application/views/scripts/tactical/components/ok_hosts.phtml
index cc9328262..8deebf19e 100644
--- a/modules/monitoring/application/views/scripts/tactical/components/ok_hosts.phtml
+++ b/modules/monitoring/application/views/scripts/tactical/components/ok_hosts.phtml
@@ -10,18 +10,40 @@ $service_problems = (
?>
statusSummary->hosts_up): ?>
-
-
- = sprintf($this->translatePlural('%d Host UP', '%d Hosts UP', $this->statusSummary->hosts_up), $this->statusSummary->hosts_up); ?>
-
-
+
= $this->qlink(
+ sprintf(
+ $this->translatePlural('%u Host UP', '%u Hosts UP', $this->statusSummary->hosts_up),
+ $this->statusSummary->hosts_up
+ ),
+ 'monitoring/list/hosts',
+ array('host_state' => 0),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u host that is currently in state UP',
+ 'List %u hosts which are currently in state UP',
+ $this->statusSummary->hosts_up
+ ),
+ $this->statusSummary->hosts_up
+ ))
+ ); ?>
statusSummary->hosts_pending): ?>
-
-
- = sprintf($this->translatePlural('%d Host PENDING', '%d Hosts PENDING', $this->statusSummary->hosts_pending), $this->statusSummary->hosts_pending); ?>
-
-
+
= $this->qlink(
+ sprintf(
+ $this->translatePlural('%u Host PENDING', '%u Hosts PENDING', $this->statusSummary->hosts_pending),
+ $this->statusSummary->hosts_pending
+ ),
+ 'monitoring/list/hosts',
+ array('host_state' => 99),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u host that is currently in state PENDING',
+ 'List %u hosts which are currently in state PENDING',
+ $this->statusSummary->hosts_pending
+ ),
+ $this->statusSummary->hosts_pending
+ ))
+ ); ?>
statusSummary->hosts_down || $this->statusSummary->hosts_unreachable): ?>
diff --git a/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml b/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml
index a5f3749e8..af88ae441 100644
--- a/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml
+++ b/modules/monitoring/application/views/scripts/tactical/components/parts/servicestatesummarybyhoststate.phtml
@@ -1,280 +1,396 @@
+
-
+
-
- = sprintf($this->translatePlural('%d CRITICAL', '%d CRITICAL', $services_critical_unhandled, 'icinga.state'), $services_critical_unhandled); ?>
-
+ array(
+ 'host_problem' => $host_problem,
+ 'service_state' => 2,
+ 'service_acknowledged' => 0,
+ 'service_in_downtime' => 0
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state CRITICAL',
+ 'List %u services which are currently in state CRITICAL',
+ $services_critical_unhandled
+ ),
+ $services_critical_unhandled
+ ))
+ ); ?>
-
- = $services_critical_handled . ' ' . ($services_critical_unhandled ? $this->translate('Acknowledged') : $this->translate('CRITICAL', 'icinga.state')); ?>
-
+ array(
+ 'host_problem' => $host_problem,
+ 'service_state' => 2,
+ 'service_handled' => 1
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state CRITICAL (Acknowledged)',
+ 'List %u services which are currently in state CRITICAL (Acknowledged)',
+ $services_critical_handled
+ ),
+ $services_critical_handled
+ ))
+ ); ?>
-
- 1) {
- printf(
- $this->translate('%d are passively checked'),
- $services_critical_passive
- );
- } else {
- printf(
- $this->translate('%d is passively checked'),
- $services_critical_passive
- );
- }
- ?>
-
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state CRITICAL and passively checked',
+ 'List %u services which are currently in state CRITICAL and passively checked',
+ $services_critical_passive
+ ),
+ $services_critical_passive
+ ))
+ ); ?>
-
- 1) {
- printf(
- $this->translate('%d are not checked at all'),
- $services_critical_not_checked
- );
- } else {
- printf(
- $this->translate('%d is not checked at all'),
- $services_critical_not_checked
- );
- }
- ?>
-
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state CRITICAL and not checked at all',
+ 'List %u services which are currently in state CRITICAL and not checked at all',
+ $services_critical_not_checked
+ ),
+ $services_critical_not_checked
+ ))
+ ); ?>
-
+
-
- = $services_warning_unhandled; ?> = $this->translate('WARNING', 'icinga.state') ?>
-
+ array(
+ 'host_problem' => $host_problem,
+ 'service_state' => 1,
+ 'service_acknowledged' => 0,
+ 'service_in_downtime' => 0
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state WARNING',
+ 'List %u services which are currently in state WARNING',
+ $services_warning_unhandled
+ ),
+ $services_warning_unhandled
+ ))
+ ); ?>
-
- = $services_warning_handled . ' ' . ($services_warning_unhandled ? $this->translate('Acknowledged') : $this->translate('WARNING', 'icinga.state')); ?>
-
+ array(
+ 'host_problem' => $host_problem,
+ 'service_state' => 1,
+ 'service_handled' => 1
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state WARNING (Acknowledged)',
+ 'List %u services which are currently in state WARNING (Acknowledged)',
+ $services_warning_handled
+ ),
+ $services_warning_handled
+ ))
+ ); ?>
-
- 1) {
- printf(
- $this->translate('%d are passively checked'),
- $services_warning_passive
- );
- } else {
- printf(
- $this->translate('%d is passively checked'),
- $services_warning_passive
- );
- }
- ?>
-
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state WARNING and passively checked',
+ 'List %u services which are currently in state WARNING and passively checked',
+ $services_warning_passive
+ ),
+ $services_warning_passive
+ ))
+ ); ?>
-
- 1) {
- printf(
- $this->translate('%d are not checked at all'),
- $services_warning_not_checked
- );
- } else {
- printf(
- $this->translate('%d is not checked at all'),
- $services_warning_not_checked
- );
- }
- ?>
-
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state WARNING and not checked at all',
+ 'List %u services which are currently in state WARNING and not checked at all',
+ $services_warning_not_checked
+ ),
+ $services_warning_not_checked
+ ))
+ ); ?>
-
+
-
- = sprintf($this->translatePlural('%d UNKNOWN', '%d UNKNOWN', $services_unknown_unhandled, 'icinga.state'), $services_unknown_unhandled) ?>
-
+ array(
+ 'host_problem' => $host_problem,
+ 'service_state' => 3,
+ 'service_acknowledged' => 0,
+ 'service_in_downtime' => 0
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state UNKNOWN',
+ 'List %u services which are currently in state UNKNOWN',
+ $services_unknown_unhandled
+ ),
+ $services_unknown_unhandled
+ ))
+ ); ?>
-
- = $services_unknown_handled . ' ' . ($services_unknown_unhandled ? $this->translate('Acknowledged') : $this->translate('UNKNOWN', 'icinga.state')); ?>
-
+ array(
+ 'host_problem' => $host_problem,
+ 'service_state' => 3,
+ 'service_handled' => 1
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state UNKNOWN (Acknowledged)',
+ 'List %u services which are currently in state UNKNOWN (Acknowledged)',
+ $services_unknown_handled
+ ),
+ $services_unknown_handled
+ ))
+ ); ?>
-
- 1) {
- printf(
- $this->translate('%d are passively checked'),
- $services_unknown_passive
- );
- } else {
- printf(
- $this->translate('%d is passively checked'),
- $services_unknown_passive
- );
- }
- ?>
-
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state UNKNOWN and passively checked',
+ 'List %u services which are currently in state UNKNOWN and passively checked',
+ $services_unknown_passive
+ ),
+ $services_unknown_passive
+ ))
+ ); ?>
-
- 1) {
- printf(
- $this->translate('%d are not checked at all'),
- $services_unknown_not_checked
- );
- } else {
- printf(
- $this->translate('%d is not checked at all'),
- $services_unknown_not_checked
- );
- }
- ?>
-
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state UNKNOWN and not checked at all',
+ 'List %u services which are currently in state UNKNOWN and not checked at all',
+ $services_unknown_not_checked
+ ),
+ $services_unknown_not_checked
+ ))
+ ); ?>
-
-
">
+ = $this->qlink(
+ $services_ok . ' ' . Service::getStateText(0, true),
'monitoring/list/services',
- array('host_problem' => $host_problem, 'service_state' => 0)
- ); ?>">
- = $services_ok; ?> = $this->translate('OK', 'icinga.state') ?>
-
+ array(
+ 'host_problem' => $host_problem,
+ 'service_state' => 0
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state OK',
+ 'List %u services which are currently in state OK',
+ $services_ok
+ ),
+ $services_ok
+ ))
+ ); ?>
-
- 1) {
- printf(
- $this->translate('%d are not checked at all'),
- $services_ok_not_checked
- );
- } else {
- printf(
- $this->translate('%d is not checked at all'),
- $services_ok_not_checked
- );
- }
- ?>
-
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state OK and not checked at all',
+ 'List %u services which are currently in state OK and not checked at all',
+ $services_ok_not_checked
+ ),
+ $services_ok_not_checked
+ ))
+ ); ?>
-
-
">
+ = $this->qlink(
+ $services_pending . ' ' . Service::getStateText(99, true),
'monitoring/list/services',
- array('host_problem' => $host_problem, 'service_state' => 99)
- ); ?>">
- = sprintf($this->translatePlural('%d PENDING', '%d PENDING', $services_pending, 'icinga.state'), $services_pending); ?>
-
+ array(
+ 'host_problem' => $host_problem,
+ 'service_state' => 99
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state PENDING',
+ 'List %u services which are currently in state PENDING',
+ $services_pending
+ ),
+ $services_pending
+ ))
+ ); ?>
-
- 1) {
- printf(
- $this->translate('%d are not checked at all'),
- $services_pending_not_checked
- );
- } else {
- printf(
- $this->translate('%d is not checked at all'),
- $services_pending_not_checked
- );
- }
- ?>
-
+ ),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u service that is currently in state PENDING and not checked at all',
+ 'List %u services which are currently in state PENDING and not checked at all',
+ $services_pending_not_checked
+ ),
+ $services_pending_not_checked
+ ))
+ ); ?>
-
+
\ No newline at end of file
diff --git a/modules/monitoring/application/views/scripts/tactical/components/problem_hosts.phtml b/modules/monitoring/application/views/scripts/tactical/components/problem_hosts.phtml
index 44199df55..bab0cfc8e 100644
--- a/modules/monitoring/application/views/scripts/tactical/components/problem_hosts.phtml
+++ b/modules/monitoring/application/views/scripts/tactical/components/problem_hosts.phtml
@@ -5,18 +5,44 @@
}
?>">
statusSummary->hosts_down): ?>
-
-
- = sprintf($this->translatePlural('%d Host DOWN', '%d Hosts DOWN', $this->statusSummary->hosts_down), $this->statusSummary->hosts_down); ?>
-
-
+
= $this->qlink(
+ sprintf(
+ $this->translatePlural('%u Host DOWN', '%u Hosts DOWN', $this->statusSummary->hosts_down),
+ $this->statusSummary->hosts_down
+ ),
+ 'monitoring/list/hosts',
+ array('host_state' => 1),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u host that is currently in state DOWN',
+ 'List %u hosts which are currently in state DOWN',
+ $this->statusSummary->hosts_down
+ ),
+ $this->statusSummary->hosts_down
+ ))
+ ); ?>
statusSummary->hosts_unreachable): ?>
-
-
- = sprintf($this->translatePlural('%d Host UNREACHABLE', '%d Hosts UNREACHABLE', $this->statusSummary->hosts_unreachable), $this->statusSummary->hosts_unreachable); ?>
-
-
+
= $this->qlink(
+ sprintf(
+ $this->translatePlural(
+ '%u Host UNREACHABLE',
+ '%u Hosts UNREACHABLE',
+ $this->statusSummary->hosts_unreachable
+ ),
+ $this->statusSummary->hosts_unreachable
+ ),
+ 'monitoring/list/hosts',
+ array('host_state' => 2),
+ array('title' => sprintf(
+ $this->translatePlural(
+ 'List %u host that is currently in state UNREACHABLE',
+ 'List %u hosts which are currently in state UNREACHABLE',
+ $this->statusSummary->hosts_unreachable
+ ),
+ $this->statusSummary->hosts_unreachable
+ ))
+ ); ?>
= $this->translate('Services'); ?>
diff --git a/modules/monitoring/application/views/scripts/timeline/index.phtml b/modules/monitoring/application/views/scripts/timeline/index.phtml
index 11a228566..a9b5666f6 100644
--- a/modules/monitoring/application/views/scripts/timeline/index.phtml
+++ b/modules/monitoring/application/views/scripts/timeline/index.phtml
@@ -31,19 +31,54 @@ $firstRow = !$beingExtended;
-
+getInterval()) {
+ case '1d':
+ $titleTime = sprintf(
+ $this->translate('on %s', 'timeline.link.title.time'),
+ $timeInfo[0]->end->format('d/m/Y')
+ );
+ break;
+ case '1w':
+ $titleTime = sprintf(
+ $this->translate('in week %s of %s', 'timeline.link.title.week.and.year'),
+ $timeInfo[0]->end->format('W'),
+ $timeInfo[0]->end->format('Y')
+ );
+ break;
+ case '1m':
+ $titleTime = sprintf(
+ $this->translate('in %s', 'timeline.link.title.month.and.year'),
+ $timeInfo[0]->end->format('F Y')
+ );
+ break;
+ case '1y':
+ $titleTime = sprintf(
+ $this->translate('in %s', 'timeline.link.title.year'),
+ $timeInfo[0]->end->format('Y')
+ );
+ break;
+ default:
+ $titleTime = sprintf(
+ $this->translate('between %s and %s', 'timeline.link.title.datetime.twice'),
+ $timeInfo[0]->end->format('d/m/Y g:i A'),
+ $timeInfo[0]->start->format('d/m/Y g:i A')
+ );
+ } ?>
-
-
- = $timeInfo[0]->end->format($intervalFormat); ?>
-
-
+
= $this->qlink(
+ $timeInfo[0]->end->format($intervalFormat),
+ '/monitoring/list/eventhistory',
+ array(
+ 'timestamp<' => $timeInfo[0]->start->getTimestamp(),
+ 'timestamp>' => $timeInfo[0]->end->getTimestamp()
+ ),
+ array('title' => sprintf(
+ $this->translate('List all event records registered %s', 'timeline.link.title'),
+ $titleTime
+ )),
+ false
+ ); ?>
$labelAndColor): ?>
getExtrapolatedCircleWidth($timeInfo[1][$g
$circleWidth
); ?>">
-
+ ); ?>
@@ -86,7 +133,7 @@ $extrapolatedCircleWidth = $timeline->getExtrapolatedCircleWidth($timeInfo[1][$g
-
diff --git a/modules/setup/application/views/scripts/index/parts/finish.phtml b/modules/setup/application/views/scripts/index/parts/finish.phtml
index e695d72ce..0018d0d43 100644
--- a/modules/setup/application/views/scripts/index/parts/finish.phtml
+++ b/modules/setup/application/views/scripts/index/parts/finish.phtml
@@ -18,9 +18,25 @@
\ No newline at end of file
diff --git a/public/css/icinga/widgets.less b/public/css/icinga/widgets.less
index 85477db66..1da6b7bfb 100644
--- a/public/css/icinga/widgets.less
+++ b/public/css/icinga/widgets.less
@@ -29,7 +29,7 @@ table.historycolorgrid td.weekday {
opacity: 1.0;
}
-table.historycolorgrid a {
+table.historycolorgrid a, table.historycolorgrid span {
margin: 0;
text-decoration: none;
display: block;
diff --git a/public/js/icinga/ui.js b/public/js/icinga/ui.js
index 93c539cd6..043693171 100644
--- a/public/js/icinga/ui.js
+++ b/public/js/icinga/ui.js
@@ -140,7 +140,7 @@
cutContainer: function ($col) {
var props = {
- 'elements': $('#' + $col.attr('id') + ' > div').detach(),
+ 'elements': $('#' + $col.attr('id') + ' > *').detach(),
'data': {
'data-icinga-url': $col.data('icingaUrl'),
'data-icinga-refresh': $col.data('icingaRefresh'),