mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 13:14:32 +02:00
Notify to all nodes that execution has completed
This commit is contained in:
parent
a5698d5fde
commit
44fc841ee1
@ -88,9 +88,9 @@ static void SendEventExecuteCommand(const Dictionary::Ptr& params, long exitStat
|
||||
executedParams->Set("start", start);
|
||||
executedParams->Set("end", end);
|
||||
|
||||
if (origin->IsLocal()) {
|
||||
ClusterEvents::ExecutedCommandAPIHandler(origin, executedParams);
|
||||
} else {
|
||||
ClusterEvents::ExecutedCommandAPIHandler(origin, executedParams);
|
||||
|
||||
if (!origin->IsLocal()) {
|
||||
Dictionary::Ptr executedMessage = new Dictionary();
|
||||
executedMessage->Set("jsonrpc", "2.0");
|
||||
executedMessage->Set("method", "event::ExecutedCommand");
|
||||
|
Loading…
x
Reference in New Issue
Block a user