mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-25 18:48:50 +02:00
Reset Checkable#force_next_check after starting check plugin
... so this attribute is available for the plugin. refs #7105
This commit is contained in:
parent
a65f2d6b41
commit
a777bee244
@ -206,11 +206,6 @@ void CheckerComponent::CheckThreadProc()
|
||||
|
||||
lock.unlock();
|
||||
|
||||
if (forced) {
|
||||
ObjectLock olock(checkable);
|
||||
checkable->SetForceNextCheck(false);
|
||||
}
|
||||
|
||||
Log(LogDebug, "CheckerComponent")
|
||||
<< "Executing check for '" << checkable->GetName() << "'";
|
||||
|
||||
@ -250,6 +245,13 @@ void CheckerComponent::ExecuteCheckHelper(const Checkable::Ptr& checkable)
|
||||
Log(LogCritical, "checker", output);
|
||||
}
|
||||
|
||||
{
|
||||
ObjectLock oLock (checkable);
|
||||
if (checkable->GetForceNextCheck()) {
|
||||
checkable->SetForceNextCheck(false);
|
||||
}
|
||||
}
|
||||
|
||||
Checkable::DecreasePendingChecks();
|
||||
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user