From 48a06d3335f6fac053b4071e488d10508c492abd Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 13 Feb 2014 12:06:32 +0100 Subject: [PATCH] Add {active,passive}_checks_{1,5,15}min to icinga check perfdata. Fixes #5649 --- lib/methods/icingachecktask.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/methods/icingachecktask.cpp b/lib/methods/icingachecktask.cpp index 0b13a755f..e3b5fc65c 100644 --- a/lib/methods/icingachecktask.cpp +++ b/lib/methods/icingachecktask.cpp @@ -42,6 +42,13 @@ CheckResult::Ptr IcingaCheckTask::ScriptFunc(const Service::Ptr&) perfdata->Set("active_checks", CIB::GetActiveChecksStatistics(interval) / interval); perfdata->Set("passive_checks", CIB::GetPassiveChecksStatistics(interval) / interval); + perfdata->Set("active_checks_1min", CIB::GetActiveChecksStatistics(60)); + perfdata->Set("passive_checks_1min", CIB::GetPassiveChecksStatistics(60)); + perfdata->Set("active_checks_5min", CIB::GetActiveChecksStatistics(60 * 5)); + perfdata->Set("passive_checks_5min", CIB::GetPassiveChecksStatistics(60 * 5)); + perfdata->Set("active_checks_15min", CIB::GetActiveChecksStatistics(60 * 15)); + perfdata->Set("passive_checks_15min", CIB::GetPassiveChecksStatistics(60 * 15)); + ServiceCheckStatistics scs = CIB::CalculateServiceCheckStats(); perfdata->Set("min_latency", scs.min_latency);