Remove trailing spaces from performance data.

Refs #5082
This commit is contained in:
Gunnar Beutner 2013-11-17 01:00:03 +01:00
parent f9b107d0bf
commit d95c6c7d85
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@
#include "base/objectlock.h" #include "base/objectlock.h"
#include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
using namespace icinga; using namespace icinga;
@ -76,6 +77,8 @@ CheckResult::Ptr PluginUtility::ParseCheckOutput(const String& output)
} }
} }
boost::algorithm::trim(perfdata);
result->SetOutput(text); result->SetOutput(text);
result->SetPerformanceData(ParsePerfdata(perfdata)); result->SetPerformanceData(ParsePerfdata(perfdata));