diff --git a/components/perfdata/perfdatawriter.cpp b/components/perfdata/perfdatawriter.cpp index e402730809e..29429d9c979 100644 --- a/components/perfdata/perfdatawriter.cpp +++ b/components/perfdata/perfdatawriter.cpp @@ -26,6 +26,7 @@ #include "base/logger_fwd.h" #include "base/convert.h" #include "base/utility.h" +#include "base/context.h" #include "base/application.h" using namespace icinga; @@ -48,6 +49,8 @@ void PerfdataWriter::Start(void) void PerfdataWriter::CheckResultHandler(const Service::Ptr& service, const CheckResult::Ptr& cr) { + CONTEXT("Writing performance data for service '" + service->GetShortName() + "' on host '" + service->GetHost()->GetName() + "'"); + if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !service->GetEnablePerfdata()) return;