From: Gunnar Beutner Date: Wed, 13 Feb 2013 11:18:36 +0000 (+0100) Subject: Bugfix: Reschedule the delegation timer after starting it. X-Git-Tag: v0.0.2~433 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34cc7347ca2f7c3b4baa2f98b4e890d566cbebf7;p=icinga2 Bugfix: Reschedule the delegation timer after starting it. --- diff --git a/components/delegation/delegationcomponent.cpp b/components/delegation/delegationcomponent.cpp index 0ec753ed7..fb00b4335 100644 --- a/components/delegation/delegationcomponent.cpp +++ b/components/delegation/delegationcomponent.cpp @@ -29,9 +29,9 @@ void DelegationComponent::Start(void) m_DelegationTimer = boost::make_shared(); // 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 diff --git a/docs/icinga2-config.txt b/docs/icinga2-config.txt index 61c280b75..f284ed89e 100644 --- a/docs/icinga2-config.txt +++ b/docs/icinga2-config.txt @@ -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 ~~~~~~~~~