]> granicus.if.org Git - icinga2/commitdiff
Bugfix: Reschedule the delegation timer after starting it.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 13 Feb 2013 11:18:36 +0000 (12:18 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 13 Feb 2013 11:18:36 +0000 (12:18 +0100)
components/delegation/delegationcomponent.cpp
docs/icinga2-config.txt

index 0ec753ed76554fc770837eecec9610ce8d0e1bc2..fb00b433574bef45bf2b5cc62f32c54a81ad91b8 100644 (file)
@@ -29,9 +29,9 @@ void DelegationComponent::Start(void)
        m_DelegationTimer = boost::make_shared<Timer>();
        // TODO: implement a handler for config changes for the delegation_interval variable
        m_DelegationTimer->SetInterval(GetDelegationInterval());
-       m_DelegationTimer->Reschedule(Utility::GetTime() + 10);
        m_DelegationTimer->OnTimerExpired.connect(boost::bind(&DelegationComponent::DelegationTimerHandler, this));
        m_DelegationTimer->Start();
+       m_DelegationTimer->Reschedule(Utility::GetTime() + 10);
 }
 
 double DelegationComponent::GetDelegationInterval(void) const
index 61c280b75b07d129d010b3f31df690e0c6a5b76f..f284ed89efc45fa66584e9bc115508830918710d 100644 (file)
@@ -88,6 +88,18 @@ NOTE: Identifiers may not contain certain characters (e.g. space) or start with
 certain characters (e.g. digits). If you want to use a dictionary key that is
 not a valid identifier you can put the key in double quotes.
 
+Array
+^^^^^
+
+Arrays are ordered lists of strings. This is unlike dictionary which are not
+guaranteed to be in any particular order.
+
+Example:
+
+-------------------------------------------------------------------------------
+[ "/usr/local/icinga/libexec/check_ping", "-H", "$address$" ]
+-------------------------------------------------------------------------------
+
 Operators
 ~~~~~~~~~