13749 Commits

Author SHA1 Message Date
Alexander A. Klimov
5b90b85c81 GHA: drop EOL SLES 12.5 2025-01-08 12:15:17 +01:00
Alexander A. Klimov
4e52179136 GHA: Amazon Linux: fix broken link to Boost tarball 2025-01-08 12:15:14 +01:00
Yonas Habteab
7346b70201
Merge pull request #10081 from Icinga/doc2143
Update documentation
2025-01-08 09:56:18 +01:00
Alexander A. Klimov
e2361d014f Doc: Distributed Monitoring: add section "External CA/PKI"
The following already works:

* Custom key sizes, e.g. 2048 bits
* Custom key types, e.g. ECC
* Multiple trusted root CAs in `/var/lib/icinga2/certs/ca.crt`
* Different root CAs per cluster subtree, as long as each node trusts the
  issuers of the certificates of all nodes it's directly connected to
* Any number of intermediate CAs
2024-12-02 10:15:07 +01:00
Christian Lauf
c966f18f96 Enhance documentation regarding internal icinga config sync check (#10101)
* Update 10-icinga-template-library.md

Explicitly name the config-sync check feature of the icinga check, as before this was a little bit too undocumented making it unknown to me.
Also mention where the check has to executed in order to bring the desired results.

* Update 15-troubleshooting.md

Add 4h typical error point for configuration stored outside of /etc/icinga2/zones.d. For when a non-distributed setup was migrated to a distributed setup.
Also link to the internal icinga CheckCommand to promote its existance.

* Update 15-troubleshooting.md

Remove "-" from link

* Revert "Update 15-troubleshooting.md"

This reverts commit bb25ba3ff5d2797b95cc6c6d5d4fc64e342164f1.

* Update AUTHORS

Add myself to AUTHORS

* Update doc/15-troubleshooting.md

Co-authored-by: alvar <8402811+oxzi@users.noreply.github.com>

* Update doc/10-icinga-template-library.md

Co-authored-by: alvar <8402811+oxzi@users.noreply.github.com>

* Update doc/15-troubleshooting.md

Co-authored-by: alvar <8402811+oxzi@users.noreply.github.com>

---------

Co-authored-by: alvar <8402811+oxzi@users.noreply.github.com>
2024-12-02 10:13:54 +01:00
Alexander Aleksandrovič Klimov
840415590e openSUSE install docs: remove false info
No packages to be installed according to these instructions require the given repo.
2024-12-02 10:13:54 +01:00
Alexander A. Klimov
60a7152ef9 Document how to enable/disable Debug Output on the fly
This is a good alternative to `icinga2 feature enable debuglog`:

* Object creation/deletion via API happens immediately and requires no restart
* Hence, the debug log is enabled exactly as long as desired

Co-authored-by: alvar <8402811+oxzi@users.noreply.github.com>
2024-12-02 10:13:54 +01:00
Alexander A. Klimov
3b40ba1fe4 doc/: fix "a HA" -> "an HA" 2024-12-02 10:13:54 +01:00
Yonas Habteab
a3fcd5bbef docs: Add missing space 2024-12-02 10:13:54 +01:00
Yonas Habteab
ac220ba651 docs: Add $ to the escape sequences section
feat: Add the `$` character to the escape sequences table.
2024-12-02 10:13:54 +01:00
Alexander A. Klimov
b43e5e1620 doc/: don't mention CentOS
It's EOL.
2024-12-02 10:13:54 +01:00
Alexander Aleksandrovič Klimov
c63d679693 Linux Dev Environment: fix /usr/local/icinga2/etc ownership
We instruct the users to build as root and chown just /usr/local/icinga2/var, but at least `icinga2 api setup` also needs to modify /usr/local/icinga2/etc.
2024-12-02 10:13:54 +01:00
Josef Friedrich
90e1addd96 Fix typo in the api documentation 2024-12-02 10:13:54 +01:00
Josef Friedrich
caa22c6703 Remove trailing whitespaces in the markdown files of the documentation 2024-12-02 10:13:54 +01:00
Alexander A. Klimov
cb75435891 .deb: let user install icinga-archive-keyring package 2024-12-02 10:13:54 +01:00
Alexander A. Klimov
b498c94706 doc/02-installation.md: remove Raspbian which is not supported anymore 2024-12-02 10:13:54 +01:00
Alexander Aleksandrovič Klimov
8860f69623 doc/02-installation.md: remove outdated info
The Backports Repository is required for Debian 9, but we don't build even v10 anymore.
2024-12-02 10:13:54 +01:00
Alexander Aleksandrovič Klimov
39fbe560de doc/21-development.md: fix bad link address 2024-12-02 10:13:54 +01:00
Alexander Aleksandrovič Klimov
52f4dbecc1 doc/03-monitoring-basics.md: fix invalid link address 2024-12-02 10:13:54 +01:00
Bernd Arnold
1461fc9ea1 Docs: Add missing angle bracket 2024-12-02 10:13:54 +01:00
Yonas Habteab
e3626347bb Add missing Object{created,deleted,modified} docs 2024-12-02 10:13:54 +01:00
Alexander A. Klimov
ff4c6a6841 Don't rpm --import https://packages.icinga.com/icinga.key
just like on packages.icinga.com and for the same security reasons we don't
use apt-key add anymore for: https://blog.cloudflare.com/dont-use-apt-key

Our repos already reference https://packages.icinga.com/icinga.key
and both RPM distro families properly handle that.
2024-12-02 10:13:54 +01:00
Yonas Habteab
1d46a1e824 docs: Drop last_in_downtime attrs 2024-12-02 10:13:54 +01:00
Alvar Penning
36d892e840 Document root user usage in installation
The installation documentation currently implies that all commands are
being prompted by the root user or an user with root-like privileges.
This is now explicitly stated and, additionally, another if-guard was
added to not include the "Add Icinga Package Repository" section for
Windows, as it does not fit there.

Closes #9959.
2024-12-02 10:13:54 +01:00
Pavel Motyrev
9101c11661 Update AUTHORS 2024-12-02 10:13:54 +01:00
Pavel Motyrev
86eeee64e7 Update 06-distributed-monitoring.md
fix typo
2024-12-02 10:13:54 +01:00
Alexander A. Klimov
ca035e6b13 AUTHORS: add Nicolas Berens <nicolas.berens@planet.com> 2024-12-02 10:13:54 +01:00
Nicolas Berens
4c9f267236 remove bracket 2024-12-02 10:13:54 +01:00
Josef Friedrich
b8107c81e9 Add Josef Friedrich <josef@friedrich.rocks> to AUTHORS 2024-12-02 10:13:54 +01:00
Josef Friedrich
5c23c198f4 Fix typo in 12-icinga2-api.md 2024-12-02 10:13:54 +01:00
Alexander Aleksandrovič Klimov
9920127683
Merge pull request #10257 from Icinga/gha2144
Update GHA
2024-11-29 14:26:57 +01:00
Alexander A. Klimov
e7710d5d7f GHA: Linux: don't track all supported distro versions
Instead just give a generic explanation per distro.
2024-11-27 17:21:13 +01:00
Alexander Aleksandrovič Klimov
e89da57dc1 GHA: update supported Fedora versions
Add v41, drop EOL v37, v38.
2024-11-27 10:39:27 +01:00
Yonas Habteab
92279c09d2 GHA: Drop ubuntu 23.{04,10} (EOL) 2024-11-27 10:39:27 +01:00
Alexander A. Klimov
7aa6fb4fed Clarify that our Debian installation docs also apply to the Raspberry Pi OS 2024-11-27 10:38:38 +01:00
Yonas Habteab
4e91fd7d9a
Merge pull request #10247 from Icinga/useless-http-coroutines-214
HttpServerConnection: Don't spawn useless coroutines
2024-11-19 17:47:13 +01:00
Yonas Habteab
d768c90937 HttpServerConnection: Don't spawn useless coroutines
Currently, for each `Disconnect()` call, we spawn a coroutine, but every
one of them is just usesless, except the first one. However, since all
`Disconnect()` usages share the same asio strand and cannot interfere
with each other, spawning another coroutine within `Disconnect()` isn't
even necessary. When a coroutine calls `Disconnect()` now, it will
immediately initiate an async shutdown of the socket, potentially causing
the coroutine to yield and allowing the others to resume. Therefore, the
`m_ShuttingDown` flag is still required by the coroutines to be checked
regularly.
2024-11-19 16:08:37 +01:00
Alexander Aleksandrovič Klimov
b9fd359fe5
Merge pull request #10240 from Icinga/probot/sync-changelog/support/2.14/538acb64ece9ea0a1514703e81befab89ac3f88e
CHANGELOG.md: add v2.13.10
2024-11-14 14:49:03 +01:00
Yonas Habteab
6f9ae05948
Merge pull request #10239 from Icinga/state-before-suppression214
Fix lost recovery notifications after recovery outside of notification time period
2024-11-14 13:49:15 +01:00
Alexander A. Klimov
e777f1c6d2 CHANGELOG.md: add v2.13.10 2024-11-14 12:12:50 +00:00
Alexander Aleksandrovič Klimov
538acb64ec
Merge pull request #10235 from Icinga/probot/sync-changelog/support/2.14/d5cd5aff2c8baac2040b2cd8ae7a466b819728b2
CHANGELOG.md: add v2.11.12
2024-11-14 13:12:38 +01:00
Yonas Habteab
eb32283751
Merge pull request #10237 from Icinga/log-connected-endpoint-connection-attempts-214
ApiListener: Log connection attempts from an already connected client
2024-11-14 12:57:41 +01:00
Yonas Habteab
122c20a6a0
Merge pull request #10236 from Icinga/log-error-context-only-once-214
ApiListener: Log error context only once
2024-11-14 12:57:03 +01:00
Julian Brost
e313b3f2aa Use Checkable::GetStateBeforeSuppression() only where relevant
This fixes an issue where recovery notifications get lost if they happen
outside of a notification time period.

Not all calls to `Checkable::NotificationReasonApplies()` need
`GetStateBeforeSuppression()` to be checked. In fact, for one caller,
`FireSuppressedNotifications()` in
`lib/notification/notificationcomponent.cpp`, the state before suppression may
not even be initialized properly, so that the default value of OK is used which
can lead to incorrect return values. Note the difference between suppressions
happening on the level of the `Checkable` object level and the `Notification`
object level. Only the first sets the state before suppression in the
`Checkable` object, but so far, also the latter used that value incorrectly.

This commit moves the check of `GetStateBeforeSuppression()` from
`Checkable::NotificationReasonApplies()` to the one place where it's actually
relevant: `Checkable::FireSuppressedNotifications()`. This made the existing
call to `NotificationReasonApplies()` unneccessary as it would always return
true: the `type` argument is computed based on the current check result, so
there's no need to check it against the current check result.
2024-11-14 12:07:02 +01:00
Yonas Habteab
8acfb9b214 ApiListener: Log connection attempts from an already connected client
Something is definitely going wrong if a client tries to reconnect to
this endpoint while it still has an active connection to that client. So
we shouldn't hide this, but at least log it at info level. Apart from
that, I've added some additional information about the currently active
client, such as when the last message was sent and received.
2024-11-14 11:09:00 +01:00
Yonas Habteab
d5051c7ea3 ApiListener: Log error context only once
When logging at the warning level, the logger will automatically look up
for registered context and append them to the log entry accordingly.
2024-11-14 11:05:53 +01:00
Alexander A. Klimov
82bf39e9f3 CHANGELOG.md: add v2.11.12 2024-11-14 10:02:47 +00:00
Yonas Habteab
d5cd5aff2c
Merge pull request #10080 from Icinga/net-stack-2.14.3
Fix network stack stability issues
2024-11-14 11:02:36 +01:00
Yonas Habteab
4850018464 Don't use thread-local variable in coroutine & process final cr in global thread pool 2024-11-13 15:36:57 +01:00
Yonas Habteab
2854c618dd HttpServerConnection: Drop yet another superfluous CpuBoundWork usage 2024-11-13 15:36:57 +01:00