Commit Graph

12855 Commits

Author SHA1 Message Date
RincewindsHat eb05418116
Update sar-perf origin (#8514) 2021-10-01 17:41:23 +02:00
Peter Eckel fd9f69b3a2
Make http_header repeatable (fixes #8573) (#8574)
* Made http_header repeatable (fixes #8573)

* Removed explicit repeat_key option for a default setting

* Fixed closing backtick
2021-10-01 17:40:38 +02:00
Alexander Aleksandrovič Klimov 0c22a84a01
Merge pull request #8927 from peteeckel/fix/check-ssl-cert-itl-8925
[ITL] Added --proxy for check_ssl_cert
2021-10-01 17:38:14 +02:00
Alexander Aleksandrovič Klimov fe363eafcd
Merge pull request #8929 from peteeckel/fix/check-postgresql-itl-8928
[ITL] Added the option to set PGCONTROLDATA for check_postgres
2021-10-01 17:37:34 +02:00
Alexander A. Klimov 0182d793ac Icinga DB: publish Redis schema version via XADD icinga:schema
... to be able both to subscribe for its change and to just fetch it.
2021-10-01 15:58:57 +02:00
Alexander Aleksandrovič Klimov 8a704fb0f0
Merge pull request #9015 from Icinga/probot/update-authors/master/13a2490bda59efa692dc059302a300db942a36d4
Update AUTHORS
2021-09-28 09:57:44 +02:00
icinga-probot[bot] cfd871914b
Update AUTHORS 2021-09-27 14:34:05 +00:00
Alexander Aleksandrovič Klimov 13a2490bda
Merge pull request #9013 from RincewindsHat/correct_some_typos
Correct typos in documentation and examples
2021-09-27 16:33:59 +02:00
Alexander Aleksandrovič Klimov 6cf0673c11
Merge pull request #9010 from Icinga/feature/icingadb-scheduling_source
Make CheckResult#scheduling_source available to Icinga DB
2021-09-27 16:31:16 +02:00
RincewindsHat 767464f947 Correct typos in documentation and examples 2021-09-24 14:33:44 +02:00
Tobias Deiminger eb8f67335e Define SD_JOURNAL_SUPPRESS_LOCATION more locally
add_definitions would set SD_JOURNAL_SUPPRESS_LOCATION for all targets
in directory and sub-directories. However, another future target might
want the opposite, so define it as local as possible to journaldlogger.cpp.

To make this work, we must take journaldlogger.cpp out of the unity
build, because all files from a unity of share compiler definitions.
2021-09-23 16:08:39 +02:00
Tobias Deiminger 272191840f Update documentation for JournaldLogger 2021-09-23 16:08:39 +02:00
Tobias Deiminger 1f13af957d Update nano and vim syntax for JournaldLogger 2021-09-23 16:08:39 +02:00
Tobias Deiminger 4d678fcef0 Add available feature journald.conf in /etc
Similar to the other loggers, add a predefined object JournaldLogger in
features-available that will log messages >= warning, with default facility
LOG_USER. It is disabled by default, and can be enabled with:
$ sudo icing2 feature enable journald
2021-09-23 16:08:39 +02:00
Tobias Deiminger 173caa42aa Add a JournaldLogger
As proposed in #8857, this adds a Logger subclass that writes structured
log messages via journald's native protocol by calling sd_journal_sendv.
The feature therefore depends on the systemd library. sd_journal_sendv is
available since the early days (systemd v38), so a version check is
probably superflous.

We add the following fields to each record:
- MESSAGE: The log message
- PRIORITY (aka severity): Numeric severity as in RFC5424 section 6.2.1
- SYSLOG_FACILITY: Numeric facility as in RFC5424 section 6.2.1
- SYSLOG_IDENTIFIER: If provided, use value from configuration.
  Else use systemd's default behaior, which is to determine the field
  by using libc's program_invocation_short_name, resulting in "icinga2".
- ICINGA2_FACILITY: Facility as in Log::Log(..., String facility, ...),
  e.g. "ApiListener"
- some more fields are added automatically by systemd

Fields are stored indexed, so we can do fast queries for certain field
values. Example:

$ journalctl -t icinga2 ICINGA2_FACILITY=ApiListener -n 5

Syslog compatiblity is ratained because good old tag, severity and facility
is stored along, and systemd can forward to syslog daemons.

See also https://systemd.io/JOURNAL_NATIVE_PROTOCOL/.
2021-09-23 16:08:11 +02:00
Alexander A. Klimov 755fc72a66 Make CheckResult#scheduling_source available to Icinga DB 2021-09-22 16:57:49 +02:00
Yonas Habteab b97d5a31d7 Doc: Enhance notification `end` time docs 2021-09-20 09:34:15 +02:00
Julian Brost a018151eaf
Merge pull request #9005 from Icinga/probot/sync-changelog/806a8cab06721f160544a8c15da2d9aaec55c30f
CHANGELOG.md: add v2.13.1
2021-09-17 12:11:41 +02:00
Noah Hilverling 48e8fe1c60 CHANGELOG.md: add v2.13.1 2021-09-17 10:10:14 +00:00
Julian Brost 806a8cab06
Merge pull request #9004 from Icinga/probot/sync-changelog/6fc15449a832e25cccee066608ce280859a5ddb2
CHANGELOG.md: add v2.11.11
2021-09-17 12:10:02 +02:00
Noah Hilverling 2acbbafa58 CHANGELOG.md: add v2.11.11 2021-09-17 10:04:54 +00:00
Julian Brost 6fc15449a8
Merge pull request #8953 from Icinga/bugfix/icinga-checksum-state-growing
Icinga DB: clean up vanished objects from icinga:checksum:*:state
2021-09-17 12:04:41 +02:00
Julian Brost 130b22e939 Icinga DB: remove usernotification history stream
These will be added to the normal notification stream so there is no more need
for this extra stream.
2021-09-15 14:47:25 +02:00
Julian Brost 81e5feeb08 Icinga DB: Write IDs of notified users into notification history stream 2021-09-15 14:45:35 +02:00
Tobias Deiminger de7808e32c Make syslog facility handling reusable
The upcoming JournaldLogger will need the same syslog validation and
conversion logic, so factor it out from SyslogLogger to make it
reusable.

Also explicitely include syslog.h, which defines the syslog()
function.
2021-09-15 10:15:22 +02:00
Noah Hilverling 95cdc00ad4
Merge pull request from GHSA-cxfm-8j5v-5qr2
Add TLS server certificate validation to ElasticsearchWriter, GelfWriter, InfluxdbWriter and Influxdb2Writer (v2)
2021-08-19 13:52:29 +02:00
Alexander Aleksandrovič Klimov dfc633074e
Merge pull request #8966 from Icinga/feature/scheduled_by
Icinga DB: introduce icinga:history:stream:downtime#scheduled_by
2021-08-16 16:37:08 +02:00
Julian Brost cb09d6833f RedisConnection: remove now redundant setting of TLS verification parameters
This is now done in UnbufferedAsioTlsStream.
2021-08-13 17:24:24 +02:00
Julian Brost 3ab347bfd4 GelfWriter: show error message of exceptions 2021-08-13 17:24:24 +02:00
Julian Brost 8f3f692ecf InfluxdbCommonWriter: actually verify TLS server certificates
And add a new option ssl_insecure_noverify to explicitly disable it if desired.
2021-08-13 17:24:24 +02:00
Julian Brost 29e9df938c GelfWriter: actually verify TLS server certificates
And add a new option insecure_noverify to explicitly disable it if desired.
2021-08-13 17:24:24 +02:00
Julian Brost 5cada85e54 ElasticsearchWriter: actually verify TLS server certificates
And add a new option insecure_noverify to explicitly disable it if desired.
2021-08-13 17:24:24 +02:00
Julian Brost 396f003c69 Enable hostname verification in UnbufferedAsioTlsStream 2021-08-13 10:58:10 +02:00
Alexander A. Klimov 70b4558a62 Icinga DB: introduce icinga:history:stream:downtime#scheduled_by
... with the Downtime#scheduled_by attribute.
2021-08-09 20:07:38 +02:00
Alexander Aleksandrovič Klimov 852d674ec0
Merge pull request #8957 from Icinga/bugfix/apilistener-detect-ipv6-support
ApiListener: Choose bind host default based on OS IPv6 support
2021-08-09 17:32:40 +02:00
Julian Brost ec73b417f2 ApiListener: Choose bind host default based on OS IPv6 support 2021-08-06 12:19:08 +02:00
Alexander Aleksandrovič Klimov a475755491
Merge pull request #8955 from Icinga/bugfix/pgsql-escape
IDO PgSQL: always use regular string literals
2021-08-05 18:03:46 +02:00
Alexander Aleksandrovič Klimov dcf2c46bf7
Merge pull request #8954 from Icinga/Al2Klimov-patch-2
README.md: remove misleading badge
2021-08-05 17:07:45 +02:00
Alexander Aleksandrovič Klimov 17616fc9c7
README.md: remove misleading badge 2021-08-05 11:41:57 +02:00
Julian Brost 782669f13b IDO PgSQL: always use regular string literals
IdoPgsqlConnection::Escape() internally uses PQescapeStringConn() and its
documentation states the following:

  Furthermore, PQescapeStringConn does not generate the single quotes that must
  surround PostgreSQL string literals; they should be provided in the SQL
  command that the result is inserted into.

So it's intended to use the result in 'string' literals, not in E'string'
literals as Icinga did. This results in problems as the behavior of
PQescapeStringConn() depends on how the current connection will interpret
regular single quoted literals, namely on the value of the
standard_conforming_strings variable.

The E'string' literals were initially introduced in
ac6f3f8acf to fix #1206 where PostgreSQL started
warning about escape sequences in string literals not supported by the SQL
standard (but by PostgreSQL depending on the value of
standard_conforming_strings). In the meantime the oldest PostgreSQL version on
any platform supported by Icinga increased to 9.2 (CentOS 7) and starting with
9.1, standard_conforming_strings is enabled by default, so there will be no
warnings about escape sequences (as the warning is only issued if the escape
sequence is actually interpreted by PostgreSQL).
2021-08-05 11:39:32 +02:00
Alexander A. Klimov e3a5d613aa Icinga DB: clean up vanished objects from icinga:checksum:*:state
... not to let it grow non-stop.
2021-08-05 11:32:47 +02:00
Alexander Aleksandrovič Klimov 5af40fa533
Merge pull request #8952 from Icinga/probot/update-authors/master/af8dbaec5e8eaed880946f6592a56deb962f65ff
Update AUTHORS
2021-08-04 22:01:33 +02:00
icinga-probot[bot] 0d9ab3ba39
Update AUTHORS 2021-08-04 15:31:49 +00:00
stevie-sy af8dbaec5e
Update 09-object-types.md (#7953)
* Update 09-object-types.md

Because in this document it is not clear which units are allowed for DB Cleanup, I asked in the Community for it: https://community.icinga.com/t/db-ido-cleanup-possible-units/3854/2. We came to the conclusion that it would help if there is a notice which units are possible/allowed for this. For better finding I wrote  also a link to the language reference.

* Update 09-object-types.md

changed to the proposed "language reference"

* Update 09-object-types.md

Done. Sorry overlooked

* Update 09-object-types.md

accidentally inserted return undone . Hope now fits 😃

* Update 09-object-types.md

Requested Changes don

* Update 09-object-types.md

changed link to duration-literals
2021-08-04 17:31:30 +02:00
Alexander Aleksandrovič Klimov 02db80d6f3
Merge pull request #8815 from Icinga/feature/make-base-value-format-test-easier-to-understand
Make base_value/format test easier to understand
2021-08-03 11:37:09 +02:00
Alexander Aleksandrovič Klimov 14f961d6f2
Merge pull request #8909 from Icinga/docs/centOS8-RHEL-powertools
Change capitalization of the PowerTools command
2021-08-03 11:19:27 +02:00
Alexander Aleksandrovič Klimov aaccd0448f
Merge pull request #8944 from Icinga/feature/2.13-changelog
2.13.0: Changelog, Upgrading, VERSION
2021-08-02 22:10:37 +02:00
Alexander Aleksandrovič Klimov 3aa2289c59
Merge pull request #8946 from Icinga/bugfix/old-packages
ConfigPackageUtility::ValidatePackageName(): always tolerate already existing packages
2021-08-02 20:27:27 +02:00
Alexander Aleksandrovič Klimov 965266ee26
Typo 2021-08-02 17:08:15 +02:00
Noah Hilverling 30149c5027 Docs: Add 2.13 upgrading documentation 2021-08-02 16:51:45 +02:00