mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
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>();
|
m_DelegationTimer = boost::make_shared<Timer>();
|
||||||
// TODO: implement a handler for config changes for the delegation_interval variable
|
// TODO: implement a handler for config changes for the delegation_interval variable
|
||||||
m_DelegationTimer->SetInterval(GetDelegationInterval());
|
m_DelegationTimer->SetInterval(GetDelegationInterval());
|
||||||
m_DelegationTimer->Reschedule(Utility::GetTime() + 10);
|
|
||||||
m_DelegationTimer->OnTimerExpired.connect(boost::bind(&DelegationComponent::DelegationTimerHandler, this));
|
m_DelegationTimer->OnTimerExpired.connect(boost::bind(&DelegationComponent::DelegationTimerHandler, this));
|
||||||
m_DelegationTimer->Start();
|
m_DelegationTimer->Start();
|
||||||
|
m_DelegationTimer->Reschedule(Utility::GetTime() + 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
double DelegationComponent::GetDelegationInterval(void) const
|
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
|
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.
|
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
|
Operators
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user