[icinga-checkins] icinga.org: icinga2/master: Bugfix for slave notification objects.

git at icinga.org git at icinga.org
Mon Feb 11 16:29:35 CET 2013


Module: icinga2
Branch: master
Commit: 07acb1c553d7bdadc6c66256a3cfa78e8a3cae4f
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=07acb1c553d7bdadc6c66256a3cfa78e8a3cae4f

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Mon Feb 11 16:25:32 2013 +0100

Bugfix for slave notification objects.

---

 lib/icinga/service.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/icinga/service.cpp b/lib/icinga/service.cpp
index ba3fa5e..f808494 100644
--- a/lib/icinga/service.cpp
+++ b/lib/icinga/service.cpp
@@ -213,9 +213,10 @@ void Service::OnAttributeChanged(const String& name, const Value& oldValue)
 		OnNextCheckChanged(GetSelf(), oldValue);
 	else if (name == "servicegroups")
 		ServiceGroup::InvalidateMembersCache();
-	else if (name == "host_name" || name == "short_name")
+	else if (name == "host_name" || name == "short_name") {
 		Host::InvalidateServicesCache();
-	else if (name == "downtimes")
+		UpdateSlaveNotifications();
+	} else if (name == "downtimes")
 		Service::InvalidateDowntimeCache();
 	else if (name == "comments")
 		Service::InvalidateCommentCache();





More information about the icinga-checkins mailing list