mirror of https://github.com/Icinga/icinga2.git
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:
parent
ac4f92ca69
commit
550a92f077
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue