From: Noah Hilverling Date: Thu, 1 Mar 2018 14:01:47 +0000 (+0100) Subject: Add counter for current concurrent checks to Icinga check X-Git-Tag: v2.9.0~137^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0a97ddf643b74bcf68e8abd275f2e67f16589c6;p=icinga2 Add counter for current concurrent checks to Icinga check fixes #4939 --- diff --git a/lib/methods/icingachecktask.cpp b/lib/methods/icingachecktask.cpp index 5eca99b3f..fa985d612 100644 --- a/lib/methods/icingachecktask.cpp +++ b/lib/methods/icingachecktask.cpp @@ -24,6 +24,7 @@ #include "icinga/macroprocessor.hpp" #include "icinga/icingaapplication.hpp" #include "icinga/clusterevents.hpp" +#include "icinga/checkable.hpp" #include "base/application.hpp" #include "base/objectlock.hpp" #include "base/utility.hpp" @@ -88,6 +89,7 @@ void IcingaCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckRes perfdata->Add(new PerfdataValue("active_service_checks_15min", CIB::GetActiveServiceChecksStatistics(60 * 15))); perfdata->Add(new PerfdataValue("passive_service_checks_15min", CIB::GetPassiveServiceChecksStatistics(60 * 15))); + perfdata->Add(new PerfdataValue("current_concurrent_checks", Checkable::GetPendingChecks())); perfdata->Add(new PerfdataValue("remote_check_queue", ClusterEvents::GetCheckRequestQueueSize())); CheckableCheckStatistics scs = CIB::CalculateServiceCheckStats();