diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index 059e76935..1ff78a568 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -61,7 +61,7 @@ class Monitoring_ShowController extends ActionController // TODO: Do not allow wildcards in names! if ($host !== null) { // TODO: $this->assertPermission('host/read', $host); - if ($this->action_name !== 'host' && $service !== null && $service !== '*') { + if ($this->getRequest()->getActionName() !== 'host' && $service !== null && $service !== '*') { // TODO: $this->assertPermission('service/read', $service); $object = Service::fetch($this->backend, $host, $service); } else { diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index 83b0b5bcc..2bbb72135 100644 --- a/modules/monitoring/application/views/scripts/list/hosts.phtml +++ b/modules/monitoring/application/views/scripts/list/hosts.phtml @@ -12,7 +12,7 @@ $viewHelper = $this->getHelper('MonitoringState'); - Status + Status Host Output diff --git a/modules/monitoring/application/views/scripts/list/notifications.phtml b/modules/monitoring/application/views/scripts/list/notifications.phtml index 0590eb17c..b10316b0d 100644 --- a/modules/monitoring/application/views/scripts/list/notifications.phtml +++ b/modules/monitoring/application/views/scripts/list/notifications.phtml @@ -26,10 +26,17 @@ echo $this->paginationControl($notifications, null, null, array('preserve' => $t - host_name ?> + + host_name ?> + - service_description) ? '' : $notification->service_description; ?> + + service_description) ? '' : $notification->service_description; ?> getNotificationType($notification); ?> diff --git a/modules/monitoring/application/views/scripts/list/services.phtml b/modules/monitoring/application/views/scripts/list/services.phtml index a8990c07a..a60b1800b 100644 --- a/modules/monitoring/application/views/scripts/list/services.phtml +++ b/modules/monitoring/application/views/scripts/list/services.phtml @@ -87,8 +87,15 @@ $trimArea = $this->getHelper('Trim'); {{COMMENT_ICON}} - - service_display_name; ?> + + service_display_name; ?> +
service_action_url != ""): ?> @@ -102,7 +109,14 @@ $trimArea = $this->getHelper('Trim'); - host_name; ?> + + host_name; ?> +
(monitoringState($service, 'host')); ?>)