From 550a92f077c030e1099109834d690c99f185a5b3 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 6 Aug 2019 14:51:10 +0200 Subject: [PATCH] Fix missing stats for current_concurrent_checks via REST API It was added inside the 'icinga' check task, but not for the REST API. Thanks for asking, @Thomas-Gelf --- lib/icinga/cib.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/icinga/cib.cpp b/lib/icinga/cib.cpp index bed01e22a..b378bcd6f 100644 --- a/lib/icinga/cib.cpp +++ b/lib/icinga/cib.cpp @@ -289,7 +289,9 @@ void CIB::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata) { status->Set("active_service_checks_15min", GetActiveServiceChecksStatistics(60 * 15)); status->Set("passive_service_checks_15min", GetPassiveServiceChecksStatistics(60 * 15)); + // Checker related stats status->Set("remote_check_queue", ClusterEvents::GetCheckRequestQueueSize()); + status->Set("current_concurrent_checks", Checkable::GetPendingChecks()); CheckableCheckStatistics scs = CalculateServiceCheckStats();