]> granicus.if.org Git - icinga2/commitdiff
Add missing validator for flapping_threshold.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 1 Jul 2013 12:09:54 +0000 (14:09 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 1 Jul 2013 12:09:54 +0000 (14:09 +0200)
lib/icinga/icinga-type.conf
lib/icinga/service.cpp

index bd89463ff8d98d8db6476ab7944c2fad02e45dd8..08ae85a54bc85e649dab34b75577a4db7ffc1835 100644 (file)
@@ -59,6 +59,8 @@ type Host {
                        %attribute number "notification_interval",
                        %attribute name(TimePeriod) "notification_period",
 
+                       %attribute number "flapping_threshold",
+
                        %attribute array "servicegroups" {
                                %attribute name(ServiceGroup) "*"
                        },
@@ -143,6 +145,8 @@ type Host {
        %attribute number "notification_interval",
        %attribute name(TimePeriod) "notification_period",
 
+       %attribute number "flapping_threshold",
+
        %attribute number "notification_type_filter",
        %attribute number "notification_state_filter",
 
@@ -199,6 +203,8 @@ type Service {
        %attribute number "notification_interval",
        %attribute name(TimePeriod) "notification_period",
 
+       %attribute number "flapping_threshold",
+
        %attribute array "hostdependencies" {
                %attribute name(Host) "*"
        },
index 33ca1deb864e0628b62946351a6a239189bf44cf..2b8c9a38e6feb267aeb6216c1117e7ab3be835c1 100644 (file)
@@ -91,7 +91,7 @@ Service::Service(const Dictionary::Ptr& serializedObject)
        RegisterAttribute("flapping_negative", Attribute_Replicated, &m_FlappingNegative);
        RegisterAttribute("flapping_lastchange", Attribute_Replicated, &m_FlappingLastChange);
        RegisterAttribute("flapping_threshold", Attribute_Config, &m_FlappingThreshold);
-       RegisterAttribute("enable_flapping", Attribute_Config, &m_EnableFlapping);
+       RegisterAttribute("enable_flapping", Attribute_Replicated, &m_EnableFlapping);
 
        SetSchedulingOffset(rand());