diff --git a/modules/monitoring/application/views/scripts/list/services.phtml b/modules/monitoring/application/views/scripts/list/services.phtml index c7fb858c6..7c7e828aa 100644 --- a/modules/monitoring/application/views/scripts/list/services.phtml +++ b/modules/monitoring/application/views/scripts/list/services.phtml @@ -90,7 +90,7 @@ $viewHelper = $this->getHelper('MonitoringState'); service_state): ?>
Attempt: - service_current_check_attempt; ?>/service_max_check_attempts; ?> + current_check_attempt; ?>/max_check_attempts; ?> (service_state_type === '1') ? 'Hard' : 'Soft'; ?>) diff --git a/modules/monitoring/library/Monitoring/Controller.php b/modules/monitoring/library/Monitoring/Controller.php index 762cc2a58..543cac446 100644 --- a/modules/monitoring/library/Monitoring/Controller.php +++ b/modules/monitoring/library/Monitoring/Controller.php @@ -49,7 +49,9 @@ class Controller extends ActionController 'service_notes_url', 'service_last_comment', 'service_active_checks_enabled', - 'service_passive_checks_enabled' + 'service_passive_checks_enabled', + 'current_check_attempt' => 'service_current_check_attempt', + 'max_check_attempts' => 'service_max_check_attempts' ); if ($params === null) { $query = HostAndServiceStatusView::fromRequest( diff --git a/modules/monitoring/library/Monitoring/Object/Service.php b/modules/monitoring/library/Monitoring/Object/Service.php index e4167ed9b..602380dcb 100644 --- a/modules/monitoring/library/Monitoring/Object/Service.php +++ b/modules/monitoring/library/Monitoring/Object/Service.php @@ -60,7 +60,7 @@ class Service extends AbstractObject 'check_command' => 'service_check_command', 'perfdata' => 'service_perfdata', 'current_check_attempt' => 'service_current_check_attempt', - 'max_check_attemt' => 'service_max_check_attempts', + 'max_check_attempts' => 'service_max_check_attempts', 'state_type' => 'service_state_type', 'passive_checks_enabled' => 'service_passive_checks_enabled', 'last_state_change' => 'service_last_state_change',