Bugfix: Reschedule the delegation timer after starting it.

This commit is contained in:
Gunnar Beutner 2013-02-13 12:18:36 +01:00
parent d2650df8b6
commit 34cc7347ca
2 changed files with 13 additions and 1 deletions

View 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

View 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
~~~~~~~~~