mirror of https://github.com/Icinga/icinga2.git
Bugfix: Reschedule the delegation timer after starting it.
This commit is contained in:
parent
d2650df8b6
commit
34cc7347ca
|
@ -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
|
||||
|
|
|
@ -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
|
||||
~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Reference in New Issue