1517 Commits

Author SHA1 Message Date
Mattia Codato
0013202fdd Check if the node accept commands only if the origin is not local 2020-11-20 17:38:27 +01:00
Mattia Codato
f2ec14edcd Send event::ExecutedCommand where necessary 2020-11-20 17:38:27 +01:00
Mattia Codato
0251df22d5 Implement notification execution 2020-11-20 17:38:27 +01:00
Mattia Codato
838893f4a6 Remove extra char 2020-11-20 17:38:27 +01:00
Mattia Codato
5cab06f381 Get checakble name from params 2020-11-20 17:38:26 +01:00
Mattia Codato
9dbc7384e7 Send error as command execution result 2020-11-20 17:38:26 +01:00
Mattia Codato
099d920d5c Do CurrentConcurrentChecks and DecreasePendingChecks only for check_command 2020-11-20 17:38:26 +01:00
Mattia Codato
487a3bbfbd Remove unuseful check 2020-11-20 17:38:26 +01:00
Mattia Codato
d9404eb4ce Return the process result parameters instead of the check result 2020-11-20 17:38:26 +01:00
Mattia Codato
75e8547246 Get host by Deserialize 2020-11-20 17:38:26 +01:00
Mattia Codato
7bd2997ef9 Handle when listener doesn't accept commands 2020-11-20 17:38:26 +01:00
Mattia Codato
174faa090f Set the right prams to send to ExecutedCommand 2020-11-20 17:38:26 +01:00
Mattia Codato
e538272b1c Change check_command and event_command strings to CheckCommand and EventCommand 2020-11-20 17:38:26 +01:00
Mattia Codato
ab70b39b56 Change command type 'notification_command' with 'NotificationCommand' 2020-11-20 17:38:26 +01:00
Mattia Codato
866a429e16 Remove unuseful variable. Fix log 2020-11-20 17:38:26 +01:00
Mattia Codato
e2fbc52312 Fix log 2020-11-20 17:38:26 +01:00
Mattia Codato
d7ee13b03e Defer ExecuteCommandProcessFinishedHandler 2020-11-20 17:38:26 +01:00
Mattia Codato
3764c9c7fc Improve logs 2020-11-20 17:38:26 +01:00
Mattia Codato
6d3a4cfa1e Fix ExecuteCommandProcessFinishedHandler parameters 2020-11-20 17:38:26 +01:00
Mattia Codato
6293a7c8fb Check deadline 2020-11-20 17:38:26 +01:00
Mattia Codato
833dd9a7de Remove unuseful parameter from ExecuteRemoteCheck 2020-11-20 17:38:26 +01:00
Mattia Codato
ba2f2e1912 Replace executeactiontask with a lambda function 2020-11-20 17:38:26 +01:00
Mattia Codato
58bc2bb848 Set CheckResult to execeution 2020-11-20 17:38:26 +01:00
Mattia Codato
ed4dc708ca Add ExecuteCommandProcessFinishedHandler and checkable param to ExecuteRemoteCheck 2020-11-20 17:38:26 +01:00
Mattia Codato
dc21536196 Uniform command_type strings 2020-11-20 17:38:26 +01:00
Mattia Codato
86622ca540 Implement ClusterEvents::ExecutedCommandAPIHandler 2020-11-20 17:38:26 +01:00
Mattia Codato
145e9a3d1f Get UUID from params 2020-11-20 17:38:26 +01:00
Alexander A. Klimov
f0369d2dc2 mkclass: make .ti class members atomic if possible
... not to have to lock the objects while setting attributes.
2020-11-20 17:38:26 +01:00
Mattia Codato
7627e3306f Refactor GetSingleObjectByNameUsingPermissions 2020-11-20 17:38:26 +01:00
Mattia Codato
09ac9c3764 Add GetSingleObjectByNameUsingPermissions function 2020-11-20 17:38:26 +01:00
Mattia Codato
d29c5bfe39 Change result 2020-11-20 17:38:26 +01:00
Mattia Codato
dade9cb0a5 Check if executions are not null 2020-11-20 17:38:26 +01:00
Mattia Codato
7414624309 Fix update executions. Fix code indentation 2020-11-20 17:38:26 +01:00
Mattia Codato
820d053363 Refactor MacroResolver::OverrideMacros 2020-11-20 17:38:26 +01:00
Mattia Codato
a64d902866 Add overrideMacros property to MacroResolver 2020-11-20 17:38:26 +01:00
Mattia Codato
edd32b4e26 AuthenticatedApiUser name refactor 2020-11-20 17:38:26 +01:00
Mattia Codato
ef3ed6b826 Make authenticatedApiUser a static property of ActionsHandler 2020-11-20 17:38:26 +01:00
Mattia Codato
cb8a083e11 Get API user from ActionsHandler 2020-11-20 17:38:26 +01:00
Mattia Codato
3b7bb0d9cc Get last CheckResult 2020-11-20 17:38:26 +01:00
Mattia Codato
469d553f15 Fix indentation 2020-11-20 17:38:26 +01:00
Mattia Codato
6eed0838f1 Call notificationCommand->Execute 2020-11-20 17:38:26 +01:00
Mattia Codato
97ef265e88 Update execMacros 2020-11-20 17:38:26 +01:00
Mattia Codato
cc0529d578 Move some checks. Add macros parameters to ExecuteCommand message 2020-11-20 17:38:26 +01:00
Mattia Codato
d8f48e459a Update status code 2020-11-20 17:38:26 +01:00
Mattia Codato
f0fe777eb0 Use RelayMessage to broadcast the updated executions 2020-11-20 17:38:26 +01:00
Mattia Codato
e36644c7d9 Remove unnecessary check 2020-11-20 17:38:26 +01:00
Mattia Codato
a7a5b94a6f Use HttpUtility::GetLastParameter to get endpoint 2020-11-20 17:38:26 +01:00
Mattia Codato
cf2168d7d0 Fix response strings 2020-11-20 17:38:26 +01:00
Mattia Codato
d58cbf233b Use dynamic_pointer_cast 2020-11-20 17:38:26 +01:00
Mattia Codato
20dab6669b Unify how to take macros parameter 2020-11-20 17:38:26 +01:00