mirror of https://github.com/Icinga/icinga2.git
DB IDO: Fix {host,service}checks command_line value is "Object of type 'icinga::Array'"
fixes #8438
This commit is contained in:
parent
7a93cf8cce
commit
4a64d4991b
|
@ -1325,7 +1325,7 @@ void DbEvents::AddServiceCheckHistory(const Checkable::Ptr& checkable, const Che
|
|||
fields1->Set("end_time_usec", time_bag_end.second);
|
||||
fields1->Set("command_object_id", checkable->GetCheckCommand());
|
||||
fields1->Set("command_args", Empty);
|
||||
fields1->Set("command_line", cr->GetCommand());
|
||||
fields1->Set("command_line", CompatUtility::GetCommandLine(checkable->GetCheckCommand()));
|
||||
fields1->Set("execution_time", Convert::ToString(execution_time));
|
||||
fields1->Set("latency", Convert::ToString(Service::CalculateLatency(cr)));
|
||||
fields1->Set("return_code", cr->GetExitStatus());
|
||||
|
|
Loading…
Reference in New Issue