Monitoring/List/Services: Fix select missing columns

refs #4824
This commit is contained in:
Eric Lippmann 2013-10-14 13:36:59 +02:00
parent af7db257fe
commit ac2201c3bc
3 changed files with 5 additions and 3 deletions

View File

@ -90,7 +90,7 @@ $viewHelper = $this->getHelper('MonitoringState');
<?php if ($service->service_state): ?>
<br />
<strong>Attempt:</strong>
<?= $service->service_current_check_attempt; ?>/<?= $service->service_max_check_attempts; ?>
<?= $service->current_check_attempt; ?>/<?= $service->max_check_attempts; ?>
(<?= ($service->service_state_type === '1') ? 'Hard' : 'Soft'; ?>)
<?php endif; ?>
</div>

View File

@ -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(

View File

@ -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',