Mattia Codato
|
3a105cfe7c
|
Use ExecuteOverride to override the command
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
ee86f5d7d8
|
Use MacroResolver::OverrideMacros on *task files
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
ba80ebc7cf
|
Fix update execution
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
bb2726a44e
|
Fix macros substitutions
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
dad2a3e786
|
Notify to all nodes that execution has completed
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
f790b7699d
|
Check if last check result is null before executing the command
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
5467b7aa37
|
Fix indentation
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
aa2edcb322
|
Keep consistency with other methods in case of missing API listener
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
3d85492b9a
|
Execute notification command only if there is a source param
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
c019dc9f90
|
Remove unused key in the execution
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
eb38821869
|
Remove pending key when the execution is completed
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
9a6646f76f
|
Fix logs
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
d72b9dc138
|
Fix indentation
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
facf3ff170
|
Remove arguments from 'throw' inc case of ExecuteEventHandler error
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
58251d1fca
|
Throw an exception in case of error during ExecuteEventHandler if source is not set
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
1f5a92a22d
|
Remove unuseful variables
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
3ce56ac11a
|
Add try catch for ExecuteEventHandler
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
78743098b0
|
Remove unuseful check result for notification command
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
e6c49fc61d
|
Refactor SendEventExecuteCommand function
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
39583553ed
|
Code refactoring: create sendEventExecuteCommand function
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
d5119b2378
|
Run ExecutedCommandAPIHandler in case of command not found and if source is set
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
78be7ebafd
|
Unify code to check if command exists
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
3753f6ec8e
|
Fix scriptfunc for dummychecktask, exceptionchecktask and sleepchecktask
|
2020-11-20 17:38:27 +01:00 |
|
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
|
ded79c3b58
|
Revert "Use ExecuteCommandProcessFinishedHandler in TimePeriodTask"
This reverts commit abf164bceb1c8c3480537411cbc9d54dc27087d4.
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
ea4a437911
|
Use ExecuteCommandProcessFinishedHandler in TimePeriodTask
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
95b79a4f04
|
Use ExecuteCommandProcessFinishedHandler in NullEventTask
|
2020-11-20 17:38:27 +01:00 |
|
Mattia Codato
|
41255369cc
|
Use ExecuteCommandProcessFinishedHandler for all lib/methods/*task.cpp
|
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
|
fa4ca4202f
|
Call ExecuteCommandProcessFinishedHandler for notification and event commands
|
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 |
|