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
This commit is contained in:
Michael Friedrich 2019-08-06 14:51:10 +02:00
parent ac4f92ca69
commit 550a92f077
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();