13211 Commits

Author SHA1 Message Date
Alexander Aleksandrovič Klimov
5acf3fb539
Merge pull request #9934 from Icinga/renew-the-ca-9890-213
ApiListener#Start(): auto-renew CA on its owner
2023-12-19 15:26:00 +01:00
Alexander A. Klimov
7a8bd0f6ea RequestCertificateHandler(): also renew if CA needs a renewal
and a newer one is available.
2023-12-18 17:07:44 +01:00
Alexander A. Klimov
5bf8db41ef CertificateToString(): allow raw pointer input 2023-12-18 17:07:44 +01:00
Alexander A. Klimov
e7a50f3e7c ApiListener#Start(): auto-renew CA on its owner
otherwise it would expire.
2023-12-18 17:07:44 +01:00
Alexander A. Klimov
1e31bc13f0 ApiListener#RenewCert(): enable optional CA creation 2023-12-18 17:07:44 +01:00
Alexander A. Klimov
d1098dc959 CreateCertIcingaCA(EVP_PKEY*, X509_NAME*): enable optional CA creation 2023-12-18 17:07:44 +01:00
Alexander A. Klimov
9345caacec Test IsCertUptodate() and IsCaUptodate() 2023-12-18 17:07:44 +01:00
Alexander A. Klimov
35317f14e7 Introduce IsCaUptodate() by splitting IsCertUptodate() 2023-12-18 17:07:44 +01:00
Alexander Aleksandrovič Klimov
f483d3757e
Merge pull request #9920 from Icinga/gha2139
Update GitHub actions
2023-11-24 19:11:02 +01:00
Alexander A. Klimov
d260a0aa6d Update AUTHORS 2023-11-24 17:26:57 +01:00
Lord Hepipud
215dba9d0f Adds ProgressPreference SilentlyContinue
We should use `$Global:ProgressPreference = 'SilentlyContinue';` to disable the progress bar during download.
By doing so, information are directly written to the disk instead of written inside the memory and dumped to the disk afterwards
2023-11-24 17:26:57 +01:00
Alexander Aleksandrovič Klimov
23feb5b374 GHA: drop EOL Fedora 36 2023-11-24 17:26:57 +01:00
Alexander A. Klimov
b9b127f25d GHA: complain if PR adds commits from people not yet listed in ./AUTHORS
not to have to update ./AUTHORS or .mailmap after merging.
2023-11-24 17:26:57 +01:00
Alexander A. Klimov
a019c63bd6 GHA: cancel runs on PR, but not on push
In a PR one top commit replaces the previous one.
But the central branches are more like timelines.
It's nice to have red crosses in a such timeline
as clear indicators that something was actually broken.
2023-11-24 17:26:57 +01:00
Alexander Aleksandrovič Klimov
ad93c0bbdd GHA: add upcoming (already frozen) Ubuntu 23.10 2023-11-24 17:26:57 +01:00
Alexander Aleksandrovič Klimov
9332aa5871 GHA: add upcoming (already frozen) Fedora 39 2023-11-24 17:26:57 +01:00
Alexander Aleksandrovič Klimov
b71a81b050 GHA: drop EOL Ubuntu 22.10 2023-11-24 17:26:57 +01:00
Alexander Aleksandrovič Klimov
fa00cf8352
Merge pull request #9824 from Icinga/2.13.8/CHANGELOG
Icinga 2.13.8
v2.13.8
2023-07-12 10:12:38 +02:00
Alexander Aleksandrovič Klimov
eacf5f27cf
Merge pull request #9816 from Icinga/2.13.8/vendor
Update vendored libs
2023-07-07 16:29:20 +02:00
Alexander Aleksandrovič Klimov
5c38c872df
Merge pull request #9823 from Icinga/2.13.8/gha
Update GHA
2023-07-07 13:30:17 +02:00
Alexander Aleksandrovič Klimov
e65c0a0d9e
Merge pull request #9819 from Icinga/2.13.8/syslog-SELinux
Add syslog logging to SELinux during usage of sudo
2023-07-07 10:16:41 +02:00
Alexander Aleksandrovič Klimov
3e682a99ef
Merge pull request #9814 from Icinga/2.13.8/icingadb
Icinga DB feature: normalize several Redis data not to crash the Go daemon
2023-07-06 17:32:14 +02:00
Alexander A. Klimov
51d0e9b5a9 GHA: add Amazon Linux 2023
which unfortunately seems not to have ccache. 🤷
2023-07-06 14:52:08 +02:00
Alexander Aleksandrovič Klimov
8b9060d77d GHA: add Debian and Raspbian 12 2023-07-06 14:52:08 +02:00
Alexander Aleksandrovič Klimov
08a8c302f4 GHA: add openSUSE and SLES 15.5 2023-07-06 14:52:08 +02:00
Alexander Aleksandrovič Klimov
c0ebdd69d4 GHA: Linux: add Fedora 38, Ubuntu 23.04 2023-07-06 14:52:08 +02:00
Alexander Aleksandrovič Klimov
8cd11a9146
Merge pull request #9822 from Icinga/2.13.8/bugfix/cluster-zone-own-zone-8570
cluster-zone: consider own zone connected if there's only one endpoint
2023-07-06 14:24:52 +02:00
Alexander Aleksandrovič Klimov
56a22461c9
Merge pull request #9818 from Icinga/2.13.8/ElasticsearchWriter-Pause
ElasticsearchWriter#Pause(): call Flush() only once
2023-07-06 10:17:57 +02:00
Alexander Aleksandrovič Klimov
45d5a3f5f3
Merge pull request #9817 from Icinga/flexible-downtimes-disappear-too-early-9797
Downtime#Start(): trigger flexible downtimes not earlier than fixed ones
2023-07-05 17:06:03 +02:00
Alexander A. Klimov
0f7be745a7 Icinga 2.13.8 2023-07-05 13:08:27 +02:00
Alexander Aleksandrovič Klimov
51afc74310
Merge pull request #9820 from Icinga/2.13.8/checkable-processcheckresult-only-clean-up-ack-comments-older-than-check-result-9718
Checkable#ProcessCheckResult(): only clean up ack comments older than check result
2023-07-05 11:20:55 +02:00
Alexander Aleksandrovič Klimov
3f9769f4ed
Merge pull request #9821 from Icinga/2.13.8/bugfix/perfdata-dont-get-parsed-correctly-8912
PluginUtility: Fix PerfData parsing for values separated with multiple spaces
2023-07-04 21:11:08 +02:00
Alexander Aleksandrovič Klimov
8fbfb2f816
Merge pull request #9815 from Icinga/2.13.8/stuck
Don't hang in timed out connection attempt
2023-07-04 17:34:24 +02:00
Alexander A. Klimov
286d288654 GHA: use a CMake version which can set(CMAKE_CXX_STANDARD 17) where possible
especially on Amazon Linux which seems to have trouble with our workaround:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
2023-07-04 11:22:50 +02:00
Alexander Aleksandrovič Klimov
1883cae445 GHA: Drop openSUSE 15.3 (EOL) 2023-07-04 11:22:30 +02:00
Alexander A. Klimov
363c1b2986 cluster-zone: consider own zone connected if there's only one endpoint
... because in this case only the checking node can be (not) connected to itself.

refs #8570
2023-07-04 11:12:29 +02:00
Yonas Habteab
b6ba09e479 Test: Add multiline PerfData test case 2023-07-04 11:10:38 +02:00
Yonas Habteab
ff0b45eca0 PluginUtility: Fix PerfData don't get parsed correctly
The problem was that some PerfData labels contained several whitespace characters,
not just one, and therefore it was parsed incorrectly in `SplitPerfdata()`. I.e. the condition
in line 144 checks whether the first and last character is a normal quote, but since the
label can contain spaces at the beginning and at the end respectively, this caused the problems.

This PR fixes the problem by removing all occurring whitespace from the beginning and end,
before starting to parse the actual label.
2023-07-04 11:10:38 +02:00
Alexander A. Klimov
6dffc57a37 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-07-04 10:56:30 +02:00
Alexander A. Klimov
c160c4b62e Checkable#RemoveAckComments(): add optional comment entry time filter 2023-07-04 10:56:30 +02:00
Alexander A. Klimov
0470fe12a7 Checkable#RemoveCommentsByType(): remove redundant parameter 2023-07-04 10:56:30 +02:00
Henrik Triem
e2ed0937af Add syslog logging to SELinux during usage of sudo 2023-07-04 10:53:37 +02:00
Alexander Aleksandrovič Klimov
8dca4d7121 ElasticsearchWriter#Pause(): lock m_DataBufferMutex during Flush()
just to be sure regarding race conditions.
2023-07-04 10:50:03 +02:00
Alexander Aleksandrovič Klimov
73f8c4473e ElasticsearchWriter#Pause(): call Flush() only once
The first Flush() is redundant and may access m_DataBuffer at the same time as some Flush() in m_WorkQueue (race condition) which isn't joined, yet.
2023-07-04 10:49:53 +02:00
Alexander A. Klimov
43c4feb645 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-07-04 10:39:14 +02:00
Alexander A. Klimov
117ae78755 Windows: bump OpenSSL v1.1 (soon EOL) -> v3.0 2023-07-03 17:43:17 +02:00
Alexander A. Klimov
02ed374ae0 Bump Boost shipped for Windows to v1.82 2023-07-03 17:43:17 +02:00
Alexander A. Klimov
3f395d703b Doc: dev: Windows: move "-DICINGA2_UNITY_BUILD=OFF"
to avoid merge conflicts due to Boost updates in the long run.
2023-07-03 17:41:45 +02:00
Alexander A. Klimov
b3d90f5418 Update third-party/nlohmann_json to v3.9.1
the latest version w/o Apache 2.0 licensed code which conflicts with GPL 2.
2023-07-03 17:40:53 +02:00
Alexander A. Klimov
76f5e400e1 Merge commit '499abec7791e6cdcac3e4920cba354f0422506ce' into 2.13.8/vendor 2023-07-03 17:20:34 +02:00