mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Set the right prams to send to ExecutedCommand
This commit is contained in:
parent
12da369ee1
commit
3f490ac0e2
@ -165,8 +165,10 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons
|
||||
cr->SetExecutionEnd(pr.ExecutionEnd);
|
||||
|
||||
Dictionary::Ptr executedParams = new Dictionary();
|
||||
params->CopyTo(executedParams);
|
||||
executedParams->Set("execution", params->Get("source"));
|
||||
executedParams->Set("host", params->Get("host"));
|
||||
if (params->Contains("service"))
|
||||
executedParams->Set("service", params->Get("service"));
|
||||
executedParams->Set("check_result", Serialize(cr));
|
||||
|
||||
if (origin->IsLocal()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user