Alexander A. Klimov
8c2483bae9
doc/win-dev.ps1: actually utilize ThrowOnNativeFailure
...
refs #8935
2021-10-28 15:51:40 +02:00
Alexander Aleksandrovič Klimov
f5f8ccb1f4
Merge pull request #9020 from Icinga/feature/icingaeb-schema-version
...
Icinga DB: publish Redis schema version via XADD icinga:schema
2021-10-25 13:21:37 +02:00
Alexander A. Klimov
d8b4768471
Icinga DB init. dump: flush both buffered states and state checksums
...
not to dump x states, but only x - (x % bulk) state checksums.
2021-10-21 13:49:24 +02:00
Noah Hilverling
a7cbf50674
Merge pull request #9030 from Icinga/Al2Klimov-patch-1
...
Icinga DB: don't include checkable types in history IDs
2021-10-19 14:52:43 +02:00
Alexander Aleksandrovič Klimov
f6b26de20d
Merge pull request #9040 from Icinga/bugfix/icinga-db-runtime-state
...
Icinga DB: stream runtime state updates only to icinga:runtime:state
2021-10-19 14:40:46 +02:00
Alexander A. Klimov
4b0688047e
Icinga DB: stream runtime state updates only to icinga:runtime:state
...
... where they belong to, not to icinga:runtime.
2021-10-18 18:11:30 +02:00
Alexander Aleksandrovič Klimov
99c5c24a17
InfluxdbCommonWriter#Flush(): fix log message
...
s/InfluxdbWriter/Influxdb2Writer/
fixes #9035
2021-10-14 12:03:45 +02:00
Alexander Aleksandrovič Klimov
a7a2f4bed0
Merge pull request #9032 from Napsty/nrpe-payload-size
...
Add ITL config option for different NRPE payload size/length
2021-10-12 18:11:31 +02:00
Napsty
195fae6113
Add ITL config option for different NRPE payload size/length
2021-10-12 08:29:07 +02:00
Alexander Aleksandrovič Klimov
e0339c387b
Icinga DB: don't include checkable types in history IDs
...
... as they’re unnecessary for being distinguish across types.
Services always have a ! in the name, hosts never do.
2021-10-11 16:14:30 +02:00
Alexander Aleksandrovič Klimov
30a5ba3961
Merge pull request #9002 from Icinga/feature/icingadb-remove-usernotification-stream
...
Icinga DB: remove usernotification history stream
2021-10-08 19:16:26 +02:00
Alexander Aleksandrovič Klimov
4190d58668
Merge pull request #9011 from Icinga/bugfix/icingadb-remove-zone-parent-key
...
Icinga DB: Remove unused Redis key 'icinga:zone:parent'
2021-10-08 17:19:51 +02:00
Alexander Aleksandrovič Klimov
ff60c1af37
Merge pull request #8895 from Icinga/bugfix/typo-8766
...
Fix typo
2021-10-08 17:19:20 +02:00
Noah Hilverling
750e64b974
Icinga DB: Remove unused Redis key 'icinga:zone:parent'
2021-10-08 12:06:14 +02:00
Julian Brost
df84a498f4
IcingaDB: actually write parent to parent_id of zones
...
This fixes that the code used the wrong variable. Previously, it was written to
Redis that each zone is its own parent (if it has a parent at all).
2021-10-08 11:15:54 +02:00
Alexander A. Klimov
3bf180a341
Fix typo
...
refs #8766
2021-10-08 10:27:35 +02:00
Julian Brost
544b9989f0
Merge pull request #8947 from Icinga/Al2Klimov-patch-1
...
Typo
2021-10-07 18:07:00 +02:00
Alexander Aleksandrovič Klimov
3d5034c8cc
Merge pull request #8924 from peteeckel/fix/check-postgres-itl-8922
...
[ITL] Added --datadir, --language and --perflimit for check_postgres
2021-10-04 10:50:50 +02:00
Peter Eckel
688de9dce7
[ITL] Added --datadir, --language and --perflimit for check_postgres
2021-10-01 19:53:53 +02:00
Alexander Aleksandrovič Klimov
4dd00c9eac
Merge pull request #9025 from Icinga/probot/update-authors/master/ed50a9d5295d0ceb26abb8155e28f6260b314ee0
...
Update AUTHORS
2021-10-01 17:43:46 +02:00
icinga-probot[bot]
b267a253bd
Update AUTHORS
2021-10-01 15:42:53 +00:00
Alexander Aleksandrovič Klimov
ed50a9d529
Merge pull request #9001 from Icinga/feature/icingadb-add-user-ids-to-notification-history
...
Icinga DB: Write IDs of notified users into notification history stream
2021-10-01 17:42:48 +02:00
Alexander Aleksandrovič Klimov
a866b4211f
Merge pull request #9006 from Icinga/enhance-notification-end-time-docs
...
Doc: Enhance notification `end` time docs
2021-10-01 17:42:30 +02:00
Alexander Aleksandrovič Klimov
63fca8faa1
Merge pull request #9000 from haxtibal/feature/journaldlogger
...
JournaldLogger - log to systemd journal
2021-10-01 17:42:10 +02:00
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
Napsty
57bea5e3c4
Add new check_nrpe parameter -D to disable logging to syslog
2021-09-29 09:46:55 +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