From 02f16a90f7dd64b19c61e91cc9f6834139d3762f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 21 Feb 2014 10:33:34 +0000 Subject: [PATCH] Don't prefetch downtimes and don't fetch hostgroups for service objects --- modules/monitoring/library/Monitoring/Object/Host.php | 1 - modules/monitoring/library/Monitoring/Object/Service.php | 2 -- 2 files changed, 3 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Object/Host.php b/modules/monitoring/library/Monitoring/Object/Host.php index e0067491b..bbb5d35ac 100644 --- a/modules/monitoring/library/Monitoring/Object/Host.php +++ b/modules/monitoring/library/Monitoring/Object/Host.php @@ -15,7 +15,6 @@ class Host extends AbstractObject public function populate() { $this->fetchComments() - ->fetchDowntimes() ->fetchHostgroups() ->fetchContacts() ->fetchContactGroups() diff --git a/modules/monitoring/library/Monitoring/Object/Service.php b/modules/monitoring/library/Monitoring/Object/Service.php index 9a6c4fb4e..73d0bab93 100644 --- a/modules/monitoring/library/Monitoring/Object/Service.php +++ b/modules/monitoring/library/Monitoring/Object/Service.php @@ -14,8 +14,6 @@ class Service extends AbstractObject public function populate() { $this->fetchComments() - ->fetchDowntimes() - //->fetchHostgroups() ->fetchServicegroups() ->fetchContacts() ->fetchContactGroups()