13061 Commits

Author SHA1 Message Date
Yonas Habteab
2adc0bd042 ConfigItem: Fix infinite recursion caused by ignore_on_error when committing an item
When committing an item with `ignore_on_error` flag set fails, the `Commit()` method only returns `nullptr`
and the current item is not being dropped from `m_Items`. `CommittNewItems()` also doesn't check the return
value of `Commit()` but just continues and tries to commit all items from `m_Items` in recursive call. Since
this corrupt item is never removed from `m_Items`, it ends up in an endless recursion till it finally crashes.
2022-10-31 12:55:42 +01:00
Alexander Aleksandrovič Klimov
1b2875dc45
Merge pull request #9483 from Icinga/probot/update-authors/support/2.13/89785c39bd08e8805776ae25342b93108d676b8a
Update AUTHORS
v2.13.5
2022-08-11 10:51:55 +02:00
icinga-probot[bot]
3699b93793
Update AUTHORS 2022-08-11 08:51:17 +00:00
Alexander Aleksandrovič Klimov
89785c39bd
Merge pull request #9482 from Icinga/9477-2.13
Docs: Add RHEL 9 installation instructions
2022-08-11 10:51:02 +02:00
Alexander A. Klimov
4424ecce36 Update CHANGELOG 2022-08-11 10:42:40 +02:00
Henrik Triem
9a78b2c64d Docs: Add RHEL 9 installation instructions 2022-08-11 10:35:58 +02:00
Daniel Bodky
718c9d9ae6 Updated RHEL8 installation documentation 2022-08-11 10:35:58 +02:00
Alexander Aleksandrovič Klimov
a8a05b5e6d
Merge pull request #9480 from Icinga/9478-2.13
IcingaDB::SendCustomVarsChanged(): don't delete custom vars of not synced types
2022-08-10 22:01:23 +02:00
Alexander A. Klimov
46696b708d Update CHANGELOG 2022-08-10 17:09:25 +02:00
Alexander A. Klimov
ea4b819480 IcingaDB::VersionChangedHandler(): don't handle not synced types
not to surprise (and crash) the Icinga DB daemon with unknown types.
2022-08-10 17:04:29 +02:00
Alexander A. Klimov
ac57ed6cb4 IcingaDB::SendCustomVarsChanged(): don't delete custom vars of not synced types
not to surprise (and crash) the Icinga DB daemon with unknown types.
2022-08-10 17:04:29 +02:00
Julian Brost
a6d2970604
Merge pull request #9474 from Icinga/2.13.5
Icinga v2.13.5
2022-08-08 09:16:02 +02:00
Alexander Aleksandrovič Klimov
d3c6d4c692
Merge pull request #9473 from Icinga/9444
Add missing IcingaDB Redis SELinux policy
2022-08-05 20:56:46 +02:00
Alexander A. Klimov
4491d5c490 Icinga v2.13.5 2022-08-05 17:26:38 +02:00
Yonas Habteab
f53499b09f Add missing IcingaDB Redis SELinux policy 2022-08-05 16:00:46 +02:00
Julian Brost
1a2ee1241a
Merge pull request #9467 from Icinga/flush-state-file-213
Dump state file atomically not to corrupt it
2022-08-02 09:21:07 +02:00
Alexander A. Klimov
92a01a748d Dump state file atomically not to corrupt it
by using fsync(2) before close(2) and rename(2).
2022-08-01 17:56:37 +02:00
Alexander A. Klimov
53af4f2dd4 Introduce AtomicFile 2022-08-01 17:56:37 +02:00
Julian Brost
cc1e9c05ec Windows: output useful error message for syscall errors 2022-08-01 17:56:37 +02:00
Alexander Aleksandrovič Klimov
17647c6a69
Merge pull request #9460 from Icinga/openssl111q213
Bump OpenSSL to 1.1.1q
2022-07-28 15:12:58 +02:00
Alexander Aleksandrovič Klimov
54dad4a8e9
Merge pull request #9457 from Icinga/9441-213
Windows: only include critical messages in early log messages
2022-07-28 10:57:29 +02:00
Alexander Aleksandrovič Klimov
7bb6a8e1ad
Merge pull request #9458 from Icinga/9447-213
ITL: apt: render vars.apt_[dist_]upgrade=true as --[dist-]upgrade, not --[dist-]upgrade=true
2022-07-28 10:57:13 +02:00
Alexander A. Klimov
2cdd1a0f96 Bump OpenSSL to 1.1.1q 2022-07-28 10:51:45 +02:00
Julian Brost
47aebb09f7
Merge pull request #9455 from Icinga/gha213
Update GHA
2022-07-27 10:34:18 +02:00
Alexander A. Klimov
30fee4183f ITL: apt: render vars.apt_[dist_]upgrade=true as --[dist-]upgrade, not --[dist-]upgrade=true
but preserve vars.apt_[dist_]upgrade=-s as --[dist-]upgrade=-s.
2022-07-26 18:35:08 +02:00
Julian Brost
67fb24cc11 Windows: only include critical messages in early log messages
The point of logging to the Windows Event Log was to catch errors that happen
before the full logging configuration has been loaded and enabled. Messages
like the number of loaded objects per type just cause noise in the log and
provide little benefit. Therefore raise the required log level at this stage.

Note that this commit removes the (never documented) ability to use the -x flag
to change the level. But doing so would require patching the command line of
the service in the registry anyways.
2022-07-26 18:33:22 +02:00
Alexander A. Klimov
19dd611e65 GHA: Update build targets 2022-07-26 18:16:57 +02:00
Julian Brost
d0c44810a4 GitHub Actions: Build Raspbian on Ubuntu 22.04
Raspbian builds were running on Ubuntu 20.04 but with qemu-user-static from Ubuntu 21.10 (impish) due to need for newer features. However, the impish package repos are no longer available as that version reached its EOL. ubuntu-latest still refers to 20.04 on GitHub Actions but 22.04 is already available when explicitly specified. This commit switches the build over to that version and removes the workaround.
2022-07-26 18:16:57 +02:00
Alexander Aleksandrovič Klimov
af63e300f3
Merge pull request #9402 from Icinga/feature/release-2.13.4
Release 2.13.4
v2.13.4
2022-06-29 19:21:58 +02:00
Alexander Aleksandrovič Klimov
1391dede0e
Merge pull request #9425 from Icinga/probot/update-authors/support/2.13/3ba7c083e99c6836c9abc41c94cbfe2e49a4d369
Update AUTHORS
2022-06-29 19:13:09 +02:00
icinga-probot[bot]
72e27f388e
Update AUTHORS 2022-06-29 17:10:54 +00:00
Alexander Aleksandrovič Klimov
3ba7c083e9
Merge pull request #9423 from Icinga/icingadb-docs-2.13
Update Icinga DB related docs
2022-06-29 19:10:42 +02:00
Eric Lippmann
c692066cc0 Docs: Remove instructions for CentOS 8 2022-06-29 17:39:51 +02:00
Eric Lippmann
da4da7b930 Docs: Remove install Icinga Web section
The Icinga DB docs will link to installing Icinga DB Web.
2022-06-29 17:39:51 +02:00
Eric Lippmann
6df83de1a1 Docs: Add install Icinga DB daemon section 2022-06-29 17:39:51 +02:00
Eric Lippmann
0f03586f69 Docs: Update Icinga DB oject type section 2022-06-29 17:39:51 +02:00
Eric Lippmann
a0f21172a1 Docs: Update Icinga DB feature section 2022-06-29 17:39:51 +02:00
Eric Lippmann
2499b80dc9 Docs: Move syntax highlighting section to addons chapter 2022-06-29 17:39:51 +02:00
Eric Lippmann
c2db104359 Docs: Remove addons section from installation chapter
There is a separate chapter, so why draw attention to installing even
more things.
2022-06-29 17:39:51 +02:00
Eric Lippmann
ff1a69470f Docs: Remove installation overview
That's useless.
2022-06-29 17:39:51 +02:00
Eric Lippmann
0f6951d9fd Docs: Move IDO setup to its feature section 2022-06-29 17:38:18 +02:00
Eric Lippmann
a6ce83fae3 Docs: Deprecate IDO 2022-06-29 17:37:32 +02:00
Eric Lippmann
4e721c40b8 Docs: Promote and update Icinga DB related install instructions 2022-06-29 17:37:32 +02:00
Eric Lippmann
5f79f46ba7 Docs: Update API install instructions 2022-06-29 17:37:32 +02:00
Eric Lippmann
da81771d36 Docs: Move API install instructions up
Almost every Icinga 2 node setup requires the Icinga 2 API, as Icinga
Web connects to it, Icinga DB requires it, and although it's not clearly
mentioned anywhere in the documentation at the moment, it enables the
cluster communication functionality.
2022-06-29 17:37:32 +02:00
Lars Vogdt
451faad7a4 Additional GRANT options for MySQL
We are using a central DB-Cluster, therefor Icinga2 got a database on this remote cluster.
We used the icinga DB user, created during the step before, to import the DB schema.

For this, the additional GRANT options `ALTER` and `CREATE` where needed to install the schema successfully via:
```bash
mysql -u icinga -p icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql
```

Someone may find this a security problem. But I see two benefits:
* these GRANT options are only set for the icinga.* database
* this setup allows to execute also all later UPGRADE commands as the database user `icinga` - and not as the DB Administrator.

Two additional notes:
* I also included a small warning about the used default DB password
* sadly, I have no way to change this also in the provided mariadb-centos7.png image, so this is left unchanged at the moment
2022-06-29 17:34:06 +02:00
Julian Brost
88cebcac0f Release 2.13.4 2022-06-29 17:05:01 +02:00
Julian Brost
3f86f236e5
Merge pull request #9421 from Icinga/IcingaDB-soft_state-2.13
Icinga DB: icinga:*:state: rename state to soft_state
2022-06-29 14:18:33 +02:00
Alexander A. Klimov
b2245be53c Icinga DB: icinga:*:state: rename state to soft_state 2022-06-29 12:30:38 +02:00
Alexander Aleksandrovič Klimov
d35f823a96
Merge pull request #9419 from Icinga/feature/adjust-some-column-names-2.13
IcingaDB: Adjust some column names according to the DB schema
2022-06-28 22:00:00 +02:00