Commit graph

16 commits

Author SHA1 Message Date
Johannes Meyer
d5b1ba7f33 CommandTransport: Do not render failed commands again
Rendering may only be possible once, depending on the
command type.
2025-11-12 15:15:10 +01:00
Johannes Meyer
455c3b6cd4 ApiCommandTransport: Introduce constant SEND_TIMEOUT 2025-06-10 17:21:18 +02:00
Johannes Meyer
d28787a7d9 ApiCommandTransport: Ensure timed out commands are not retried
This fundamentally changes the expectation in #1138. But since
we cannot guarantee that Icinga 2 did not actually perform the
action, we also should not retry the command. Otherwise there
may be duplicated downtimes, comments, etc.
2025-06-10 15:24:22 +02:00
Sebastian Grund
d763885550
Fix/set api timeout also for actual api call (#1139)
fixes: https://github.com/Icinga/icingadb-web/issues/1138
2025-04-01 11:52:36 +02:00
Patrick Dolinic
a0a69e185a Fix/SetApiTimeout 2022-10-13 11:00:36 +02:00
Patrick Dolinic
4004fe2f95 Fix/SetApiTimeout 2022-10-13 11:00:36 +02:00
Patrick Dolinic
e6214918ed Fix/SetApiTimeout 2022-10-13 11:00:36 +02:00
Patrick
ac53a69a80 Fix/SetApiTimeout 2022-10-13 11:00:36 +02:00
Patrick Dolinic
1bbc656e9a Fix/SetApiTimeout 2022-10-13 11:00:36 +02:00
Eric Lippmann
65cc852eb7 Use the empty string for probing the Icinga 2 API
Using null results in an argument type error.
2021-11-08 15:50:33 +01:00
Yonas Habteab
0c87e9e9b9 Change CommandTransport::send() void return type to mixed 2021-11-08 13:28:57 +01:00
Yonas Habteab
aefd0e1f7d Add PHP 7 argument & return type declarations to all member methods 2021-11-03 16:06:59 +01:00
Johannes Meyer
3657a820fc CommandTransport: Return result in method send() 2021-05-11 13:24:56 +02:00
Johannes Meyer
82e86b3c14 ApiCommandTransport: Fix error handling 2021-05-11 13:24:56 +02:00
Johannes Meyer
5aca577d45 ApiCommandTransport: Allow to override the HTTP method 2021-05-11 13:24:56 +02:00
Johannes Meyer
c6832d5740 Add monitoring's command implementation
Without all the Icinga 1.x burden and weird work-arounds.
2021-03-09 09:13:20 +01:00