6327 Commits

Author SHA1 Message Date
Alexander A. Klimov
ccd024c6df Merge branch 'feature/checkcommand-icinga4win-api' into aklimov/feature/checkcommand-icinga4win-api 2023-06-30 14:48:28 +02:00
Alexander A. Klimov
10ffcb8189 build fix 2023-06-30 14:48:13 +02:00
Alexander A. Klimov
d835c7b902 Merge branch 'feature/checkcommand-icinga4win-api' into aklimov/feature/checkcommand-icinga4win-api 2023-06-30 13:36:55 +02:00
Alexander A. Klimov
44e1a75d93 Check multi :( 2023-06-30 13:36:10 +02:00
Alexander A. Klimov
ac74d6e17f namespace 2023-06-23 16:26:47 +02:00
Alexander A. Klimov
bf14f4995d Re: https://github.com/Icinga/icinga2/pull/9062#pullrequestreview-1307534589 2023-06-23 13:22:05 +02:00
Alexander A. Klimov
f83bf559bc namespace 2023-06-23 11:43:48 +02:00
Alexander A. Klimov
69c3016268 namespace 2023-06-23 11:43:48 +02:00
Alexander A. Klimov
ed268de7f7 Merge remote-tracking branch 'origin/master' into HEAD 2023-06-22 16:05:48 +02:00
Alexander A. Klimov
9ce70c8740 #include <boost/system/system_error.hpp> 2023-06-21 15:51:53 +02:00
Alexander A. Klimov
dc47ad4e70 Helpful messages 2023-06-21 15:51:39 +02:00
Alexander A. Klimov
e4f51cdc29 expected an array of strings 2023-06-21 15:51:39 +02:00
Alexander A. Klimov
6eade04bd8 perfdata: expected an array 2023-06-21 15:51:39 +02:00
Alexander A. Klimov
b783ee1257 exitcode == {ServiceOK, ServiceWarning, ServiceCritical, ServiceUnknown} 2023-06-21 15:51:39 +02:00
Alexander A. Klimov
22f9e924c3 code style 2023-06-21 15:51:39 +02:00
Alexander A. Klimov
bd0a5338ce static CONST auto 2023-06-21 15:51:39 +02:00
Alexander A. Klimov
ced0427868 Missing ." + psCommand + ".exitcode in JSON object from IfW API 2023-06-21 15:51:39 +02:00
Alexander A. Klimov
4703b4662c Timeout exceeded 2023-06-21 13:37:33 +02:00
Alexander A. Klimov
050dff41af headers 2023-06-20 18:06:42 +02:00
Alexander A. Klimov
a80701922c curl: --verbose, for debugging after all 2023-06-19 13:24:45 +02:00
Alexander A. Klimov
4fee8042c8 Fix curl --resolve 2023-06-19 13:16:20 +02:00
Alexander A. Klimov
9b86779078 ApiCapabilities: trailing , 2023-06-19 13:00:17 +02:00
Alexander A. Klimov
518f9553c4 ApiCapabilities: 1 << x 2023-06-19 12:59:59 +02:00
Alexander A. Klimov
3f12640569 placebo 2023-06-14 16:09:31 +02:00
Alexander A. Klimov
249bccf49a Call PluginCheckTask::ScriptFunc() and hope for the best 2023-06-13 16:03:28 +02:00
Alexander A. Klimov
cd508c2e7b $ifw_api_arguments$ may not directly contain functions 2023-06-12 12:17:55 +02:00
Alexander A. Klimov
9309d510ed curl for debug 2023-06-05 13:01:16 +02:00
Alexander A. Klimov
b868471dc7 Remove ifw_api_ignore_arguments 2023-06-01 11:32:59 +02:00
Julian Brost
7c381ae12f
Merge pull request #9779 from Icinga/macroprocessor-resolvemacro-quasi-cv-object-icingaapplication
MacroProcessor::ResolveMacro(): treat quasi-CV-object IcingaApplication as real CV-object
2023-05-31 20:41:31 +02:00
Alexander A. Klimov
a9c80ffb2e MacroProcessor::ResolveMacro(): treat quasi-CV-object IcingaApplication as real CV-object
As MacroProcessor checked just for CustomVarObject base class, but
IcingaApplication provided the vars attribute by itself, it had to also
resolve CV macros by itself. That logic diverged from MacroProcessor so that
macros inside IcingaApplication CVs weren't resolved. Until now.
2023-05-31 16:35:09 +02:00
Julian Brost
8a42c3bf18
Merge pull request #9775 from Icinga/icingadb-service-crashes-on-negative-downtime-duration-or-end-before-start-9774
Icinga DB: don't write negative Downtime durations into Redis
2023-05-31 11:37:42 +02:00
Alexander A. Klimov
75eaa81c06 Icinga DB: don't write negative Downtime durations into Redis
via `std::max(0, x)` not to crash the Go daemon which can't handle such.
2023-05-30 17:56:03 +02:00
Julian Brost
b0899d9ab4
Merge pull request #8429 from Icinga/bugfix/last-reload-attempt-failed-8428
Share "Last reload attempt failed" time across Icinga process tree on *nix
2023-05-30 11:42:21 +02:00
Julian Brost
d871c5c837
Merge pull request #9772 from Icinga/icinga-db-feature-should-normalize-command-arguments-required-skip_key-repeat_key-to-boolean-9576
Icinga DB feature: normalize *Command.arguments[*].{required,skip_key…
2023-05-25 11:54:01 +02:00
Alexander A. Klimov
ad618e9716 Icinga DB feature: normalize *Command.arguments[*].{required,skip_key,repeat_key} to boolean
At the moment, the Icinga DB feature will use that value as-is and
serialize it to JSON, resulting in a crash in Icinga DB down the road
because it expects a boolean.
2023-05-24 16:04:14 +02:00
Julian Brost
2470e930eb
Merge pull request #9643 from Icinga/hardware_concurrency
Always use Configuration#Concurrency, not `std:🧵:hardware_concurrency()`
2023-05-23 19:23:14 +02:00
Alexander A. Klimov
3fae41ef22 Restart thread pool after freezing Configuration
The user (-D) or we could have changed Configuration.Concurrency,
so correct the thread pool's thread amount.
2023-05-23 14:41:35 +02:00
Julian Brost
0e25644151
Merge pull request #8969 from Icinga/bugfix/perfdata-dont-get-parsed-correctly-8912
PluginUtility: Fix PerfData parsing for values separated with multiple spaces
2023-05-22 17:16:31 +02:00
Alexander A. Klimov
32eb1680f7 Configuration.Concurrency: default to 1 until Configuration freeze
not to start many threads before the user could override their amount (-D).
2023-05-11 16:59:47 +02:00
Alexander A. Klimov
8fb5d53118 Track Configuration.Concurrency modifications 2023-05-11 15:41:35 +02:00
Alexander A. Klimov
5c330e9d4f Share "Last reload attempt failed" time across Icinga process tree on *nix
... as only the umbrella process knows that time,
but the icinga check running in the main process also needs to know it.

refs #8428
2023-05-08 14:42:21 +02:00
Julian Brost
eca8890d49
Merge pull request #9718 from Icinga/acknowledgement-sync-between-masters-are-not-working-9652
Checkable#ProcessCheckResult(): only clean up ack comments older than check result
2023-05-05 15:29:38 +02:00
Alexander A. Klimov
50bf2dbfd5 Check ALL CVs for "", not for missing 2023-05-03 11:33:25 +02:00
Alexander A. Klimov
6d4b162c9a WIP 2023-05-02 12:10:48 +02:00
Julian Brost
af9d67b262
Merge pull request #9726 from Icinga/43624b
Remove -and notify- expired downtimes immediately, not every 60s II
2023-05-02 11:25:03 +02:00
Alexander A. Klimov
58b788cd51 Downtime#Start(): trigger flexible downtimes not earlier than fixed ones
the last state change could be a long time ago. If it's longer than
the new downtime's duration, the downtime expires immediately.

trigger time + duration < now
2023-04-18 16:55:32 +02:00
Julian Brost
8238ec0d96
Merge pull request #9725 from Icinga/operation_aborted-shutDownIfNeeded.Cancel
ApiListener#NewClientHandlerInternal(): on basic_socket#cancel() (due to timeout) don't ssl::stream#async_shutdown()
2023-04-17 12:21:21 +02:00
Alexander A. Klimov
0ac1cd1ecb Rename Downtime::DowntimesExpireTimerHandler()
to actually reflect its purpose.
2023-04-14 14:52:05 +02:00
Alexander A. Klimov
6adf2d19e4 Remove -and notify- expired downtimes immediately, not every 60s
Don't look for expired downtimes in a timer fired every 60s,
but fire one timer per downtime once at expire time.
2023-04-14 14:52:05 +02:00
Alexander A. Klimov
ba7102cae3 Explicitly stop started timers and wait for them
before permitting their parent objects' destruction.
For the cases where the handlers have raw pointers to these objects.
2023-04-14 14:52:04 +02:00