From d95c6c7d855dc3ca1fc1d6a0229943358d384c75 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 17 Nov 2013 01:00:03 +0100 Subject: [PATCH] Remove trailing spaces from performance data. Refs #5082 --- lib/icinga/pluginutility.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/icinga/pluginutility.cpp b/lib/icinga/pluginutility.cpp index 98f6284b9..069a88079 100644 --- a/lib/icinga/pluginutility.cpp +++ b/lib/icinga/pluginutility.cpp @@ -30,6 +30,7 @@ #include "base/objectlock.h" #include #include +#include #include using namespace icinga; @@ -76,6 +77,8 @@ CheckResult::Ptr PluginUtility::ParseCheckOutput(const String& output) } } + boost::algorithm::trim(perfdata); + result->SetOutput(text); result->SetPerformanceData(ParsePerfdata(perfdata));