projects
/
icinga2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1956c6a
)
Fix that checks with command_endpoint don't return any check results
6343/head
author
Noah Hilverling
<noah@hilverling.com>
Tue, 29 May 2018 11:51:34 +0000
(13:51 +0200)
committer
Noah Hilverling
<noah@hilverling.com>
Tue, 29 May 2018 11:51:34 +0000
(13:51 +0200)
fixes #6337
lib/icinga/checkable-check.cpp
patch
|
blob
|
history
diff --git
a/lib/icinga/checkable-check.cpp
b/lib/icinga/checkable-check.cpp
index 76b2cc37e8bca6de233e52649d30467b240f08e3..719611abad9d9be282a5fe0280a9d6c2f0bf4424 100644
(file)
--- a/
lib/icinga/checkable-check.cpp
+++ b/
lib/icinga/checkable-check.cpp
@@
-107,7
+107,7
@@
void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
m_CheckRunning = false;
}
- if (!cr
|| !IsActive()
)
+ if (!cr)
return;
double now = Utility::GetTime();
@@
-147,6
+147,9
@@
void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
}
+ if (!IsActive())
+ return;
+
bool reachable = IsReachable();
bool notification_reachable = IsReachable(DependencyNotification);