Alexander A. Klimov
0fd474ee8d
Hide $NOTIFY_SOCKET from plugins
...
refs #7329
2021-06-23 17:42:25 +02:00
Julian Brost
aa423d80ac
Change WindowsEventLogLogger default severity to information
...
As this is intended to replace the mainlog feature which logged severity
information, this should be the default for this logger.
2021-06-23 17:05:05 +02:00
Julian Brost
963ad9dd1c
Set a default severity for loggers
...
So far, the documentation has claimed that loggers have a default severity
(information for FileLogger and warning for SyslogLogger). However, this was
not the case and not setting the severity resulted in a configuration error.
This commit changes the default value to be information for all loggers.
2021-06-23 16:57:44 +02:00
Alexander A. Klimov
190e2f8fd9
Icinga DB: introduce icinga:downtime#scheduled_by
2021-06-23 16:49:19 +02:00
Alexander Aleksandrovič Klimov
2cd9c1d902
Merge pull request #8835 from Icinga/bugfix/api-filename-truncation
...
Fix/restrict truncation of filenames for API-created objects
2021-06-23 12:06:31 +02:00
Julian Brost
56060bc8d5
ApiListener: Deprecate tls_handshake_timeout in favor of connect_timeout
2021-06-23 11:21:42 +02:00
Julian Brost
84d778580f
Add timeout for all new connections
...
This commit adds a timeout for both establishing new outgoing and incoming
connections. This timeout applies to everything until the connection is in a
state where either JsonRpcConnection or HttpServerConnection takes over.
2021-06-23 11:21:42 +02:00
Julian Brost
fbed8a0463
Merge pull request #8768 from Icinga/bugfix/scheduleddowntime-interfer
...
ScheduledDowntime: ignore not related Downtimes while creating Downtimes
2021-06-22 15:48:37 +02:00
Julian Brost
02f761798c
Merge pull request #8825 from Icinga/bugfix/validate-config-package-name
...
ConfigPackageUtility::ValidateName: replace broken regex
2021-06-22 15:45:38 +02:00
Julian Brost
54a7da437d
Merge pull request #8447 from Icinga/feature/deprecated-relative-removal
...
Relativize future removals of deprecated features
2021-06-22 12:05:33 +02:00
Julian Brost
36ce7d961f
Rename silent parameter of ConfigItem::ActivateItems()
...
As silent now no longer only controls the generation of log messages, a better
name is required. This changes its name, inverts its value to reflect the new
name and adds a documentation comment.
2021-06-21 16:07:36 +02:00
Julian Brost
23aa628665
Windows: automatically migrate from mainlog to windowseventlog
2021-06-21 15:15:54 +02:00
Julian Brost
05ca30a6a0
Write early log messages to the Windows Event Log
...
When Icinga 2 is started as a service, the early log messages generated
until the FileLogger object is activated are lost and make it really
hard to debug issues that (only) occur when Icinga 2 reloads.
With this commit, these early log messages are written to the Windows
Event Log.
2021-06-21 15:15:54 +02:00
Julian Brost
6de9f58810
Add WindowsEventLogLogger
2021-06-21 15:15:54 +02:00
Julian Brost
118df982f1
GetObjectConfigPath: only truncate and hash comment and downtime filenames
...
This partially reverts 68a0079c26
and keeps the
fix only for comment and downtime objects for now. For reasoning, please see
the comment in the code.
2021-06-17 16:21:01 +02:00
Julian Brost
e079762c8e
GetObjectPath: ensure use of escaped name in all cases and use TruncateUsingHash()
...
68a0079c26
introduced two problems that are fixed
with this commit:
1. The new truncated/hashed name did not use EscapeName()
2. There was a possible collision of names when creating objects with a full
name of format "[80 characters]...[40 hex digits]" (i.e. the same as the
truncated/hashed variant but short enough that it isn't hashed)
2021-06-17 16:21:01 +02:00
Julian Brost
97d6876803
Utility: add a function to truncate strings while avoiding collisions
2021-06-17 16:21:01 +02:00
Julian Brost
5a114a6bf2
Merge pull request #8836 from lyknode/bugfix/doc-fix-match-signature
...
Fix match function signature to match its description
2021-06-17 15:00:13 +02:00
Baptiste Beauplat
905a1dd474
Fix match function signature to match its description
2021-06-17 14:37:51 +02:00
Julian Brost
61a93fdc0d
Merge pull request #8833 from Icinga/probot/update-authors/master/46743f9b138b05943bce1490190f126b0d15172e
...
Update AUTHORS
2021-06-15 12:33:08 +02:00
icinga-probot[bot]
2bbc1ad8c4
Update AUTHORS
2021-06-15 10:31:08 +00:00
Julian Brost
46743f9b13
Merge pull request #8625 from XnS/feature/itl-ssl_cert-ignore-stc
...
Added new option ignore-sct for ssl_cert to ITL
2021-06-15 12:31:03 +02:00
Julian Brost
e6993da809
Merge pull request #8814 from Napsty/esxi-hardware-sslproto
...
Add new -S parameter for esxi_hardware ITL
2021-06-15 12:30:27 +02:00
Julian Brost
005fac0a23
Merge pull request #8742 from Icinga/bugfix/double-to-string
...
Convert::ToString(double): handle integral values too large for long long correctly
2021-06-15 12:28:15 +02:00
Julian Brost
c40b18ef61
ConfigPackageUtility::ValidateName: replace broken regex
...
The old validation regex matched if the name consists only of invalid
character, not that it does not contain them, i.e. something like "foo/bar" was
considered valid.
This commit replaces the regex with a check that all characters in the name are
allowed characters.
2021-06-15 12:16:54 +02:00
Julian Brost
b8218a3c0e
IcingaDB::UpdateAllConfigObjects: explicitly capture variables in lambda
2021-06-15 11:52:53 +02:00
Alexander Aleksandrovič Klimov
02fc01bca4
Merge pull request #8829 from Icinga/probot/update-authors/master/b09d16a385fb33e5b0c6f640c86c0d43d3577a61
...
Update AUTHORS
2021-06-09 10:07:21 +02:00
Alexander A. Klimov
9c567c0bde
Icinga DB: no active checks? Not overdue!
2021-06-08 19:17:03 +02:00
icinga-probot[bot]
07ff84d237
Update AUTHORS
2021-06-08 16:00:12 +00:00
Alexander Aleksandrovič Klimov
b09d16a385
Merge pull request #8827 from Icinga/bugfix/perfdata-e-exponent-unit-prefix
...
Allow using E in perfdata both as exponent and unit prefix
2021-06-08 18:00:02 +02:00
Alexander A. Klimov
d1e15a220c
Icinga DB: use one Redis connection per config object type
2021-06-08 17:52:04 +02:00
Julian Brost
06999faf25
Allow using E in perfdata both as exponent and unit prefix
2021-06-08 12:37:13 +02:00
Julian Brost
0a362937b3
Merge pull request #8818 from pdolinic/fix/doc-api_process-check-results
...
Docs: Change to reflect actual hoststate
2021-06-07 16:12:15 +02:00
Julian Brost
f346a9eea4
Merge pull request #8652 from Icinga/bugfix/l_appversionint-0-8628
...
l_AppVersionInt: respect versions like r2.12.0, not just v2.12.0
2021-06-07 16:07:04 +02:00
Julian Brost
62cbe72cdb
Merge pull request #8492 from Icinga/bugfix/perfdata-scientific-notation
...
Fix perfdata parser not recognize scientific notation
2021-06-07 15:29:52 +02:00
Julian Brost
275ba6d1df
Merge pull request #8823 from Icinga/probot/sync-changelog/1ec158f9f1fb3687dda152957c6a388bb74046a7
...
CHANGELOG.md: add v2.12.4
2021-06-04 14:04:11 +02:00
Julian Brost
917ed59bb7
CHANGELOG.md: add v2.12.4
2021-06-04 11:54:32 +00:00
Julian Brost
1ec158f9f1
Merge pull request #8822 from Icinga/probot/sync-changelog/9f6cbc38f2734697d3bd1e464b1597f11138b291
...
CHANGELOG.md: add v2.11.9
2021-06-04 13:54:20 +02:00
Julian Brost
d24cca143f
CHANGELOG.md: add v2.11.9
2021-06-04 11:52:44 +00:00
Julian Brost
9f6cbc38f2
Merge pull request #8754 from Icinga/feature/icingadb-replace-lua-with-xadd-maxlen
...
Icinga DB: Use XADD ... MAXLEN 1 instead of a custom Lua script
2021-06-04 13:52:30 +02:00
Alexander Aleksandrovič Klimov
ee4fad54dd
Merge pull request #8391 from Icinga/feature/gha-windows
...
GitHub actions: build Windows
2021-06-02 14:32:04 +02:00
Alexander A. Klimov
e98a7a9140
icinga2.service: add NotifyAccess=all
...
refs #7329
2021-06-01 18:07:42 +02:00
Alexander A. Klimov
f0c763465b
sd_notify() systemd about what we're doing right now
...
refs #7329
2021-06-01 18:07:39 +02:00
Patrick Dolinic
dc0193b4ea
Docs: Change to reflect actual hoststate
2021-06-01 15:26:28 +02:00
Julian Brost
7012774f57
Make base_value/format test easier to understand
...
The old test looked really strange where it reads 3 into a Value and then
checks that it's not 3. However, what's going on there is that operator>> for
Value actually always reads a String, so instead check for what v should be,
not what it should not be.
2021-05-31 17:28:35 +02:00
Napsty
d5672dbb3c
Add new -S parameter for esxi_hardware ITL
2021-05-28 11:06:59 +02:00
Julian Brost
8b516f0c08
Merge pull request #8811 from Icinga/probot/update-authors/master/53fa6b8dd3d3bb05aa216e5ebb563135312d151a
...
Update AUTHORS
2021-05-26 16:53:16 +02:00
icinga-probot[bot]
8bf8b560b3
Update AUTHORS
2021-05-26 14:48:56 +00:00
Feu Mourek
53fa6b8dd3
Add a blank issue template with a link to the forum ( #8807 )
2021-05-26 16:48:50 +02:00
Alexander Aleksandrovič Klimov
dbcb2549aa
Merge pull request #8708 from Icinga/bugfix/reminder-notification-after-timeperiod-with-interval-0
...
Make sure not to send reminder notification, if problem notification has been suppressed by TimePeriod
2021-05-25 16:09:36 +02:00