]> granicus.if.org Git - icinga2/commitdiff
Fix reading perfdata in compat/checkresultreader
authorZoltan Nagy <abesto@abesto.net>
Fri, 19 Sep 2014 22:32:52 +0000 (00:32 +0200)
committerMichael Friedrich <michael.friedrich@gmail.com>
Sat, 11 Oct 2014 16:45:55 +0000 (18:45 +0200)
fixes #7369

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
AUTHORS
components/compat/checkresultreader.cpp

diff --git a/AUTHORS b/AUTHORS
index 170e9e1ed0f104154485c5bd8e630926938d3233..fa213293ffd035b966ec839765c5be0b53a6a3df 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -24,3 +24,4 @@ Sam Kottler <shk@linux.com>
 Tim Hardeck <thardeck@suse.de>
 Tobias von der Krone <tobias@vonderkrone.info>
 Wolfgang Nieder <wnd@gmx.net>
+Zoltan Nagy <abesto@abesto.net>
index cf22abb6eab55f59c4cb3b816ea6631bd0488ab8..37920d36d766c33c7b3a79631f3ff0cb82f6b318 100644 (file)
@@ -136,7 +136,7 @@ void CheckResultReader::ProcessCheckResultFile(const String& path) const
        CheckResult::Ptr result = make_shared<CheckResult>();
        std::pair<String, Value> co = PluginUtility::ParseCheckOutput(attrs["output"]);
        result->SetOutput(co.first);
-       result->SetPerformanceData(co.second);
+       result->SetPerformanceData(PluginUtility::SplitPerfdata(co.second));
        result->SetState(PluginUtility::ExitStatusToState(Convert::ToLong(attrs["return_code"])));
        result->SetExecutionStart(Convert::ToDouble(attrs["start_time"]));
        result->SetExecutionEnd(Convert::ToDouble(attrs["finish_time"]));