Commit graph

462 commits

Author SHA1 Message Date
ETES-Stuttgart
e4b887b5b6 Allow Icinga to send SIGTERM to nagios plugins in SELinux Policy 2026-01-23 12:04:37 +01:00
Yonas Habteab
cfe5f6d993
Merge pull request #10666 from Icinga/container-entrypoint-log-level
Container: ICINGA_LOG_LEVEL Environment Variable
2026-01-07 10:18:06 +01:00
Alvar Penning
2c1487261e
Container: ICINGA_LOG_LEVEL Environment Variable
Introduce a new ICINGA_LOG_LEVEL environment variable to the container
entrypoint script. If set, Icinga 2 is executed with the "--log-level"
from the variable. For example, when setting ICINGA_LOG_LEVEL=debug,
Icinga 2 will produce debug logs.

Furthermore, the entrypoint's final log message was slightly altered to
not explicitly state that Icinga 2 will be executed.  Otherwise, this
might be a bit confusing when starting something else than Icinga 2 in
the container.
2025-12-18 16:35:27 +01:00
Alexander A. Klimov
fc7e89261c Bump Boost shipped for Windows to v1.90 2025-12-11 10:47:51 +01:00
Yonas Habteab
3f431733bd
Merge pull request #10621 from Icinga/missing-selinux-logrotate
SELinux: allow `logrotate` to execute `icinga2` binary
2025-11-27 16:21:30 +01:00
Johannes Schmidt
c55c191aba Fix -Wunknown-pragmas warnings 2025-11-19 12:00:58 +01:00
Yonas Habteab
5e109b869b SELinux: allow logrotate to execute icinga2 binary 2025-11-03 17:24:54 +01:00
Johannes Schmidt
f42510f981
Merge pull request #9411 from Icinga/compiler-warnings
Some checks failed
Container Image / Container Image (push) Has been cancelled
Linux / alpine:bash (push) Has been cancelled
Linux / amazonlinux:2 (push) Has been cancelled
Linux / amazonlinux:2023 (push) Has been cancelled
Linux / debian:11 (linux/386) (push) Has been cancelled
Linux / debian:11 (push) Has been cancelled
Linux / debian:12 (linux/386) (push) Has been cancelled
Linux / debian:12 (push) Has been cancelled
Linux / debian:13 (push) Has been cancelled
Linux / fedora:41 (push) Has been cancelled
Linux / fedora:42 (push) Has been cancelled
Linux / opensuse/leap:15.6 (push) Has been cancelled
Linux / opensuse/leap:16.0 (push) Has been cancelled
Linux / registry.suse.com/suse/sle15:15.6 (push) Has been cancelled
Linux / registry.suse.com/suse/sle15:15.7 (push) Has been cancelled
Linux / rockylinux/rockylinux:10 (push) Has been cancelled
Linux / rockylinux:8 (push) Has been cancelled
Linux / rockylinux:9 (push) Has been cancelled
Linux / ubuntu:22.04 (push) Has been cancelled
Linux / ubuntu:24.04 (push) Has been cancelled
Linux / ubuntu:25.04 (push) Has been cancelled
Windows / Windows (push) Has been cancelled
Fix compiler warnings
2025-10-21 15:23:31 +02:00
Alexander A. Klimov
78631fa319 Fix compiler warnings by ensuring variable initialization 2025-10-17 17:08:31 +02:00
Julian Brost
3de8975223
Merge pull request #10551 from Icinga/add-github-problem-matchers
Add Github Problem Matchers actions for GCC/MSVC
2025-10-16 11:32:28 +02:00
Yonas Habteab
73abf6a70b windows: bump OpenSSL to 3.0.18 2025-10-08 15:32:00 +02:00
Johannes Schmidt
0b57e9a30c Disable -Wunused-(parameter|variable) on generated files 2025-09-24 15:43:09 +02:00
Yonas Habteab
5e074e3de8 Add Containerfile
Previously, the https://github.com/Icinga/docker-icinga2 repository was
used to build the Docker images for Icinga 2. However, due to its
various design flaws, the resulted images had limited usability and
required a lot of manual tweaking to make something useful out of them.
This commit now follows our new principles of building Docker images
from the Icinga DB repository, and replaces the old separate repository
with this one. It makes use of the newest Docker BuildKit features to
build the images in a more efficient way, while also granting users full
flexibility to easily extend or modify the images as they see fit
without any issues.
2025-08-28 16:09:46 +02:00
Alexander A. Klimov
5a83f153b7 Bump Boost shipped for Windows to v1.89 2025-08-14 11:06:37 +02:00
Alexander A. Klimov
3b729e9cd7 GHA: Windows: upgrade to VS 2022 2025-06-16 13:02:33 +02:00
Yonas Habteab
c4ddd4886b Bump Boost shipped for Windows to v1.88 2025-05-28 09:39:15 +02:00
Alexander Aleksandrovič Klimov
ec2080dcc1
Merge pull request #9731 from Icinga/fix-compiler-warnings-by-copy-constructing-loop-variables-explicitly
Fix compiler warnings by (copy-)constructing loop variables explicitly or not at all
2025-05-21 14:26:47 +02:00
Alexander A. Klimov
22e75f08fa Fix compiler warnings by not unnecessarily (copy-)constructing loop variables 2025-05-21 11:36:32 +02:00
Yonas Habteab
828f18f650 Bump Windows OpenSSL version to 3.0.16 2025-05-20 12:14:56 +02:00
Yonas Habteab
241e1f9437 Fix broken SELinux policy on Fedora >=41 systems
`sbindir` can be both `/usr/sbin` or `/usr/bin` depending on the used OS
hence we need to make sure that this pattern matches on both paths.
2025-05-12 13:56:36 +02:00
Alexander Aleksandrovič Klimov
11ab869016 Bump Boost shipped for Windows to v1.87 2025-04-14 17:30:19 +02:00
Alexander Aleksandrovič Klimov
d55c3644a2
Merge pull request #10312 from Icinga/win-configure-cmake-opts
tools/win32/configure*.ps1: allow custom $CMAKE_ARGS (JSON array)
2025-01-22 10:09:55 +01:00
Alexander A. Klimov
4175a47314 tools/win32/configure*.ps1: allow custom $CMAKE_ARGS (JSON array) 2025-01-21 18:17:05 +01:00
Alexander A. Klimov
3a09cf72d6 DependencyGraph: use ConfigObject*, not Object*
This saves dynamic_cast<ConfigObject*> + if() on every item of GetChildren().
2024-12-17 18:33:05 +01:00
Yonas Habteab
01d3a1d382
Merge pull request #10170 from Icinga/OpenSSL3015
Bump OpenSSL shipped for Windows to v3.0.15
2024-09-24 12:43:56 +02:00
Alexander A. Klimov
7216220de1 Bump OpenSSL shipped for Windows to v3.0.15 2024-09-20 17:39:26 +02:00
Alexander A. Klimov
b6517c6973 Type#GetLoadDependencies(): VERIFY() that only config object types are returned 2024-09-20 14:35:19 +02:00
Alexander A. Klimov
4b20121dcf Type#GetLoadDependencies(): group operations by type 2024-09-20 14:35:19 +02:00
Alexander A. Klimov
c24713ac10 Type#GetLoadDependencies(): VERIFY() that no nullptr is returned 2024-09-19 16:43:00 +02:00
Alexander A. Klimov
36742c27b9 Don't override Type#GetLoadDependencies() if latter is sufficient
If a specific type shall return no deps, the base method already does that.
2024-09-19 15:47:25 +02:00
Alexander A. Klimov
6da948c830 doc/: don't mention CentOS
It's EOL.
2024-09-16 17:08:42 +02:00
Alexander A. Klimov
584340a203 Bump Boost shipped for Windows to v1.86 2024-08-20 18:18:07 +02:00
Alvar Penning
8db33e5b3c
GHA: Unbreak Windows Tests
As seen in the recent GHA run for #10102, the two Windows Actions have
failed. The output log contains:

> DEBUG:   27+  >>>> ctest.exe -C "${env:CMAKE_BUILD_TYPE}" -T test -O $env:ICINGA2_BUILDPATH/Test.xml
> --output-on-failure --log_level=all
> CMake Error: Unknown argument: --log_level=all
> CMake Error: Run 'ctest --help' for all supported options.

After consulting ctest(1), older versions included, I have never found a
mention of the "--log_level" flag. Since the useful
"--output-on-failure" flag is already set, which will "[o]utput anything
outputted by the test program if the test should fail", I do not see any
further reason for more logging information.

This flag was introduced in 7665143afa,
but I have not found any reasoning for the flag in particular.
2024-07-31 11:19:22 +02:00
Alexander A. Klimov
b1eae017c9 Bump OpenSSL shipped for Windows to v3.0.14 2024-06-07 16:07:42 +02:00
Alexander A. Klimov
561d6a3981 Bump Boost shipped for Windows to v1.85
Note: For doc/21-development.md use:

perl -pi -e 's/(boost[-\w]*?1[-_]?)84/${1}85/g' doc/21-development.md
2024-06-07 16:02:07 +02:00
Alexander A. Klimov
77313d751c Bump Boost shipped for Windows to v1.84
Note: For doc/21-development.md use:

perl -pi -e 's/(boost[-\w]*?1[-_]?)83/${1}84/g' doc/21-development.md
2024-01-16 12:35:19 +01:00
Alexander A. Klimov
d268acaf20 Bump OpenSSL shipped for Windows to v3.0.12 2023-12-13 12:46:47 +01:00
Alexander A. Klimov
d60859c936 Bump Boost shipped for Windows to v1.83
Note: For doc/21-development.md use:

perl -pi -e 's/(boost[-\w]*?1[-_]?)82/${1}83/g' doc/21-development.md
2023-12-13 12:30:18 +01:00
Alexander A. Klimov
c070e95b03 Windows: bump OpenSSL v1.1 (soon EOL) -> v3.0 2023-06-14 12:03:22 +02:00
Julian Brost
bc492cc3ce
Merge pull request #9688 from Icinga/bugfix/selinux-sudo-logging
Add syslog logging to SELinux
2023-05-31 15:19:39 +02:00
Alexander A. Klimov
d552d0779e Bump Boost shipped for Windows to v1.82 2023-05-10 16:40:46 +02:00
Henrik Triem
6febbdc19a
Add syslog logging to SELinux during usage of sudo 2023-05-10 09:16:13 +02:00
Alexander A. Klimov
cc872dac1f Remove CheckResultReader which has been deprecated for 5 major versions 2023-04-03 11:39:21 +02:00
Julian Brost
7a7902cea7
Merge pull request #9715 from Icinga/StatusDataWriter
Remove StatusDataWriter which has been deprecated for 5 major versions
2023-03-31 12:32:43 +02:00
Alexander A. Klimov
bbf2e80002 Remove StatusDataWriter which has been deprecated for 5 major versions 2023-03-01 17:16:28 +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 Aleksandrovič Klimov
c3d8ed7092
Merge pull request #9664 from Icinga/bugfix/selinux-readd-bools
Add role icinga2adm_r to SELinux policies
2023-02-16 17:11:57 +01:00
Henrik Triem
8173cf0760
Add icinga2adm_r role def before creating SELinux user&domain 2023-02-15 17:39:28 +01:00
Alexander A. Klimov
6347d7a008 Bump Boost to v1.81 2023-02-14 14:36:16 +01:00
Alexander A. Klimov
2ec62d0dd9 Windows: bump OpenSSL to v1.1.1t 2023-02-14 11:40:44 +01:00