Alexander A. Klimov
9d574e7702
Fix missing include
...
refs #8034
2020-11-20 17:41:08 +01:00
Mattia Codato
ba80ebc7cf
Fix update execution
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
5467b7aa37
Fix indentation
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
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
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
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
ed4dc708ca
Add ExecuteCommandProcessFinishedHandler and checkable param to ExecuteRemoteCheck
2020-11-20 17:38:26 +01:00
Mattia Codato
145e9a3d1f
Get UUID from params
2020-11-20 17:38:26 +01:00
Mattia Codato
00a4d2c2eb
Get local endpoint if FromClient is not set and origin is local
2020-11-20 17:38:26 +01:00
Alexander A. Klimov
476da0b2c2
Add stub for event::ExecuteCommand w/ source
...
refs #8034
2020-11-20 17:38:25 +01:00
Michael Friedrich
b906714254
Fix that MaxConcurrentChecks constant is overridden from 'checker' feature
...
Note: This drops the deprecated concurrent_checks setting from the checker feature
entirely and refactors the underlaying code handling.
Also affects ReloadTimeout which is new for 2.11.
fixes #7111
2019-04-16 15:04:57 +02:00
Michael Friedrich
d14a88235d
Replace Copyright header with a short version, part I
...
CLion -> replace in path
2019-02-25 14:48:22 +01:00
Michael Friedrich
dab53448bc
icinga.com: Update *.{h,c}pp
2018-10-18 09:27:04 +02:00
Bas Couwenberg
0891380789
Fix spelling errors.
...
* occured -> occurred
* dosen't -> doesn't
2018-07-21 10:38:09 +02:00
Noah Hilverling
06e381ceea
Add metrics about RemoteCheckQueue to Icinga check, API and logs
...
refs #4841
2018-01-29 16:07:35 +01:00
Noah Hilverling
e28277175b
Implement concurrent checks limit for remote checks
...
fixes #4841
2018-01-29 14:50:14 +01:00