From ca9b31d4f08071009dabda5838701ba046eeb4a8 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 10 Nov 2013 17:47:47 +0100 Subject: [PATCH] Add check statistics. Refs #5049 --- components/checker/checkercomponent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/checker/checkercomponent.cpp b/components/checker/checkercomponent.cpp index 9d806ca53..34921a659 100644 --- a/components/checker/checkercomponent.cpp +++ b/components/checker/checkercomponent.cpp @@ -19,6 +19,7 @@ #include "checker/checkercomponent.h" #include "icinga/icingaapplication.h" +#include "icinga/cib.h" #include "base/dynamictype.h" #include "base/objectlock.h" #include "base/utility.h" @@ -183,7 +184,7 @@ void CheckerComponent::ResultTimerHandler(void) { boost::mutex::scoped_lock lock(m_Mutex); - msgbuf << "Pending services: " << m_PendingServices.size() << "; Idle services: " << m_IdleServices.size(); + msgbuf << "Pending services: " << m_PendingServices.size() << "; Idle services: " << m_IdleServices.size() << "; Checks/s: " << CIB::GetActiveChecksStatistics(5) / 5.0; } Log(LogInformation, "checker", msgbuf.str());