Merge pull request #7400 from Icinga/bugfix/cib-stats-concurrent-checks

Fix missing stats for current_concurrent_checks via REST API
This commit is contained in:
Michael Friedrich 2019-08-06 15:25:44 +02:00 committed by GitHub
commit 59081c4f82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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();