]> granicus.if.org Git - icinga2/commitdiff
DB IDO: Fix {host,service}checks command_line value is "Object of type 'icinga::Array'"
authorMichael Friedrich <michael.friedrich@gmail.com>
Sat, 14 Feb 2015 22:46:55 +0000 (23:46 +0100)
committerMichael Friedrich <michael.friedrich@gmail.com>
Sat, 14 Feb 2015 23:24:05 +0000 (00:24 +0100)
fixes #8438

lib/db_ido/dbevents.cpp

index 0fbc748354d46b96ca223d72f0ddfe52cb3ec4de..5e5da592aa0c356f72b523174b40fddc16fadc36 100644 (file)
@@ -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());