13610 Commits

Author SHA1 Message Date
Alexander A. Klimov
6414fd19f5 Checkable#ProcessCheckResult(): only clean up ack comments older than check result
Normally if for some reason an ack comment still exists on a checkable not
acked anymore, still clean it up. But while replaying log config objects
incl. ack comments come before check results and acks. I.e. 1) ack comment,
2) DOWN check result and 3) ack. Not 1) DOWN check result, 2) ack and 3) ack
comment. So the checkable is temporarily not acked, but already has the ack
comment. In this case the DOWN check result which is older than the ack
comment shall not clean up the latter.
2023-03-03 15:48:34 +01:00
Alexander A. Klimov
4662d4477b Checkable#RemoveAckComments(): add optional comment entry time filter 2023-03-03 15:48:11 +01:00
Alexander A. Klimov
dceb29c742 Checkable#RemoveCommentsByType(): remove redundant parameter 2023-03-03 11:53:02 +01:00
Mattia Codato
912fdb9700 Fix update execution message discarded
refs Icinga#8616
2023-03-02 17:50:39 +01:00
Alexander Aleksandrovič Klimov
ca3c24b317
Merge pull request #9717 from Icinga/Al2Klimov-patch-4
ProcessSpawnImpl(): remove redundant _exit(128);
2023-03-02 16:47:50 +01:00
Alexander Aleksandrovič Klimov
bdda58175b Update mail-host-notification.sh and mail-service-notification.sh 2023-03-02 14:24:02 +01:00
Silas
31710e1162 Added host.notes and service.notes output if specified 2023-03-02 14:24:02 +01:00
Alexander Aleksandrovič Klimov
55930c8042
ProcessSpawnImpl(): remove redundant _exit(128);
Now this if doesn’t _exit(128) by itself, but "return" to the outer if which immediately _exit(128)s.
2023-03-02 12:45:15 +01:00
Alexander A. Klimov
bbf2e80002 Remove StatusDataWriter which has been deprecated for 5 major versions 2023-03-01 17:16:28 +01:00
Julian Brost
cf517050bc
Merge pull request #9711 from Icinga/connect-cancel
Connect(): don't try next DNS record if operation is canceled
2023-03-01 15:49:53 +01:00
Alexander A. Klimov
79f1e0666a Connect(): don't try next DNS record if operation is canceled
Instead return immediately to meet the caller's expectations.
2023-02-28 10:57:54 +01:00
Alexander Aleksandrovič Klimov
8281527c13
Merge pull request #9702 from Icinga/windows-ido-off
CMakeLists.txt: provide sane defaults for which subsystems to build
2023-02-23 19:02:33 +01:00
Alexander A. Klimov
5055d216a3 Don't include perfdata writers on Windows
Icinga DB, IDO and Livestatus are already not included.
2023-02-23 16:03:57 +01:00
Alexander Aleksandrovič Klimov
45e1c29935
Require CMake s/2.8.8/2.8.12/
because we can.
2023-02-23 15:49:20 +01:00
Alexander A. Klimov
260eb5c475 CMakeLists.txt: provide sane defaults for which subsystems to build
not to have to explicitly disable particular ones in multiple locations.
2023-02-23 14:54:57 +01:00
Alexander A. Klimov
9cdc353325 On Windows don't ship docs and images 2023-02-23 12:31:28 +01:00
Alexander A. Klimov
d3bb94fc39 Basic auth 2023-02-22 12:41:04 +01:00
Alexander A. Klimov
091927fc73 Revert "WIP"
This reverts commit 65dd6b088df32e4dce95c0e92c1d48a3c4a5c7e8.
2023-02-22 12:26:40 +01:00
Alexander A. Klimov
396a71c6a0 Repair unit tests 2023-02-21 17:49:26 +01:00
Alexander A. Klimov
65dd6b088d WIP 2023-02-21 17:30:55 +01:00
Alexander A. Klimov
fd815dd234 WIP 2023-02-21 17:29:04 +01:00
Alexander A. Klimov
86d873a10a WIP 2023-02-21 17:26:31 +01:00
Alexander A. Klimov
fc48c9a8c1 WIP 2023-02-21 16:52:21 +01:00
Alexander A. Klimov
88a5ae8171 WIP 2023-02-21 16:50:02 +01:00
Alexander A. Klimov
a551131b4f WIP 2023-02-21 16:49:04 +01:00
Edgar Fuß
20d7e1b5e6 Fix use of std::unordered_map::insert() as pointed out by Nathaniel Wesley Filardo in GitHup Pull Request #8999 2023-02-21 16:23:40 +01:00
Edgar Fuß
5bba609e60 Add missing #include 2023-02-21 16:23:40 +01:00
Edgar Fuß
cfef9fdadc Introduce redundancy groups for Dependency Objects
Traditional behaviour was to regard all dependecies as cumulative (e.g., the parent considered unreachable if any one dependency is violated), commit ed5892238916ab667a4c9d904bd73acd3ed162f2 made all dependencies regarded redundant (e.g., the parent considered unreachable only if all dependency are violated). This may lead to unrelated services (or even hosts vs. services) inadvertantly regarded to be redundant to each other.

Most importantly, applying the explicit "disable-host-service-checks" dependency described in the "Monitoring Basics" chapter will defeat all other dependencies.

This commit introduces a new "redundancy_group" attribute for dependencies.
Specifying a redundancy_group causes a dependency to be regarded as redundant only inside that redundancy group.
Dependencies lacking a redundancy_group attribute are regarded as essential for the parent.

This allows for both cumulative and redundant dependencies and even a combination (cumulation of redundancies, like SSH depeding on both LDAP and DNS to function, while operating redundant LDAP servers as well as redundant DNS resolvers).

This commit lacks changes to the tests.
2023-02-21 16:23:36 +01:00
Alexander A. Klimov
5eda4142a3 WIP 2023-02-21 13:17:22 +01:00
Alexander A. Klimov
ac31369737 WIP 2023-02-21 12:57:49 +01:00
Alexander A. Klimov
4373defef4 WIP 2023-02-20 17:43:41 +01:00
Alexander A. Klimov
073e28bc9f WIP 2023-02-20 17:35:30 +01:00
Alexander A. Klimov
b88b900b67 WIP 2023-02-20 17:31:35 +01:00
Alexander A. Klimov
95f3bbe023 WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
f9143cee9a WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
52f964f58e WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
d652d7daaa WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
0a387fd877 WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
589e45c4b4 WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
507c19f155 WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
ad9b581d43 WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
eac3ac97b3 WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
4c280320f9 WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
f5c6600ff3 WIP 2023-02-20 17:19:37 +01:00
Alexander A. Klimov
27ca87b803 WIP 2023-02-20 17:19:36 +01:00
Alexander A. Klimov
7f53d14580 WIP 2023-02-20 17:19:36 +01:00
Alexander A. Klimov
281edad995 WIP 2023-02-20 17:19:36 +01:00
Alexander A. Klimov
bdb315f1c2 WIP 2023-02-20 17:19:36 +01:00
Alexander A. Klimov
35708c8cf5 WIP 2023-02-20 17:19:36 +01:00
Alexander A. Klimov
884fc62c8e WIP 2023-02-20 17:19:36 +01:00