Host/Service: provide process_perfdata attribute

This commit is contained in:
Thomas Gelf 2014-09-05 19:05:13 +02:00
parent 4a89c2e163
commit 6095e44064
2 changed files with 3 additions and 1 deletions

View File

@ -69,7 +69,8 @@ class Host extends MonitoredObject
'host_action_url',
'host_notes_url',
'host_modified_host_attributes',
'host_problem'
'host_problem',
'process_perfdata' => 'host_process_performance_data',
))->where('host_name', $this->params->get('host'));
return $this->view->getQuery()->fetchRow();
}

View File

@ -114,6 +114,7 @@ class Service extends MonitoredObject
'service_flap_detection_enabled',
'service_flap_detection_enabled_changed',
'service_modified_service_attributes',
'process_perfdata' => 'service_process_performance_data',
))->where('host_name', $this->params->get('host'))
->where('service_description', $this->params->get('service'));