Skip to content

Commit 33c515a

Browse files
committed
Revert "CheckerComponent#CheckThreadProc(): also propagate next check update to Icinga DB"
This reverts commit e9b8c67.
1 parent 7319201 commit 33c515a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/checker/checkercomponent.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,13 @@ void CheckerComponent::CheckThreadProc()
135135

136136
bool forced = checkable->GetForceNextCheck();
137137
bool check = true;
138-
bool notifyNextCheck = false;
139138
double nextCheck = -1;
140139

141140
if (!forced) {
142141
if (!checkable->IsReachable(DependencyCheckExecution)) {
143142
Log(LogNotice, "CheckerComponent")
144143
<< "Skipping check for object '" << checkable->GetName() << "': Dependency failed.";
145-
146144
check = false;
147-
notifyNextCheck = true;
148145
}
149146

150147
Host::Ptr host;
@@ -181,7 +178,6 @@ void CheckerComponent::CheckThreadProc()
181178
<< Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", nextCheck);
182179

183180
check = false;
184-
notifyNextCheck = true;
185181
}
186182
}
187183
}
@@ -200,11 +196,6 @@ void CheckerComponent::CheckThreadProc()
200196
checkable->UpdateNextCheck();
201197
}
202198

203-
if (notifyNextCheck) {
204-
// Trigger update event for Icinga DB
205-
Checkable::OnNextCheckUpdated(checkable);
206-
}
207-
208199
lock.lock();
209200

210201
continue;

0 commit comments

Comments
 (0)