mirror of https://github.com/Icinga/icinga2.git
Fix reading perfdata in compat/checkresultreader
fixes #7369 Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
This commit is contained in:
parent
60a0ee8fec
commit
1110f925ee
1
AUTHORS
1
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>
|
||||
|
|
|
@ -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"]));
|
||||
|
|
Loading…
Reference in New Issue