mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-09 08:42:59 -04:00
Set the right prams to send to ExecutedCommand
This commit is contained in:
parent
12da369ee1
commit
3f490ac0e2
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue