Alexander A. Klimov
e1bc4d474f
On check_timeout first send SIGTERM
...
... to allow check plugins to terminate gracefully.
refs #6162
2021-01-14 12:00:11 +01:00
Yonas Habteab
997ad86225
Fix no re-notification for non OK state changes with time delay
2021-01-14 11:54:25 +01:00
Alexander Aleksandrovič Klimov
5efe3e662c
Merge pull request #8025 from Icinga/bugfix/downtime-for-host-service-with-long-name-8022
...
ConfigObjectUtility::GetObjectConfigPath(): hash names of not already existing objects
2021-01-14 10:42:04 +01:00
Julian Brost
a68d774f78
Merge pull request #8581 from bebehei/shell-exitcode
...
Shell exitcode
2021-01-14 09:56:21 +01:00
Julian Brost
db30704d14
Merge pull request #8532 from Icinga/bugfix/do-not-override-error-codes-that-are-not-200
...
HTTP: Do not override status codes that are not 200
2021-01-14 09:34:04 +01:00
Yonas Habteab
066db5ef60
HTTP: Don't override status codes that are not OK
2021-01-13 18:56:56 +01:00
Julian Brost
f12666c166
Merge pull request #8157 from Icinga/bugfix/temporary-files-5124
...
Clean up temp files
2021-01-13 15:45:29 +01:00
Julian Brost
0c6abc817b
Remove upq from ConfigItem::ActivateItems
...
Since commit d9010c7b9f
, ActivateItems no
longer uses the WorkQueue upq to perform tasks but instead performs
these locally. One instance of `upq.Join()`/`upq.HasExceptions()`
remained in the function, but I believe this was just missed when
removing the `upq.Enqueue()` call just before.
This commit removes the corresponding parameter and updates all call
sites accordingly.
2021-01-13 15:19:55 +01:00
Alexander Aleksandrovič Klimov
5a0118c6d8
Merge pull request #8442 from Icinga/bugfix/close-ebadf-8437
...
Close FDs based on /proc/self/fd
2021-01-13 10:59:15 +01:00
Alexander Aleksandrovič Klimov
f1110eb321
Merge pull request #8591 from Icinga/bugfix/concurent-notification-send-and-delete
...
Fix crash when notifications are sent while the notification object is deleted
2021-01-13 10:58:37 +01:00
Alexander A. Klimov
68a0079c26
ConfigObjectUtility::GetObjectConfigPath(): hash names of not already existing objects
...
... to avoid too long file names.
refs #8022
2021-01-12 18:03:22 +01:00
Alexander A. Klimov
450b2117d2
Add ".tmp" to state and modified attributes temp files
...
refs #5124
2021-01-12 17:35:29 +01:00
Alexander A. Klimov
18c2dae941
Clean up temp files
...
refs #5124
2021-01-12 17:35:29 +01:00
Alexander A. Klimov
26c944125b
Close FDs based on /proc/self/fd
...
... not to waste time with close(2)ing RLIMIT_NOFILE-3 non-existing FDs.
Newer kernel = higher RLIMIT_NOFILE = more time wasted
refs #8437
2021-01-12 17:32:28 +01:00
Julian Brost
aea06a27dc
Use reference-counted pointer in notification callback
...
`this` could be deleted after `Notification::BeginExecuteNotification`
exited and before `Notification::ExecuteNotificationHelper` finished.
This is fixed by constructing a `Notification::Ptr` and operate on that
one as it is properly reference-counted.
2021-01-12 17:19:29 +01:00
Julian Brost
5f548c8f89
Merge pull request #8431 from Icinga/feature/windows-lower-fqdn-7407
...
Windows agent: Default to lower case FQDN
2021-01-12 12:44:58 +01:00
Alexander Aleksandrovič Klimov
a6af5406f7
Merge pull request #8083 from Icinga/feature/Implement-new-API-events-7974
...
Implement new API event streams response
2021-01-12 12:26:05 +01:00
Yonas Habteab
756abbb2ff
ApiEvents: Implement new API event streams response
2021-01-11 14:59:48 +01:00
Alexander Aleksandrovič Klimov
8b20a139c5
Merge pull request #8582 from widhalmt/doc/check_logstash
...
Update URLs of check_logstash plugin
2021-01-11 13:49:36 +01:00
Alexander Aleksandrovič Klimov
d996d1e201
Merge pull request #8580 from bebehei/typo
...
Fix typo seemless -> seamless
2021-01-11 13:45:08 +01:00
Alexander Aleksandrovič Klimov
635a8c5d4c
Merge pull request #8088 from Icinga/bugfix/log-two-nodes-run-on-different-versions-8075
...
Display logmessage if two nodes run on different versions
2021-01-11 12:30:30 +01:00
Alexander Aleksandrovič Klimov
862add5f3f
Merge pull request #8512 from Icinga/bugfix/zombie-processes
...
Revert "icinga2 daemon: reap remaining child processes after reload"
2021-01-11 11:38:20 +01:00
Julian Brost
0276c0b052
Properly handle service downtime referencing a deleted host
...
Only two out of three cases were handled properly by the code: host
downtimes referencing a deleted host and service downtimes referencing a
deleted service worked fine. However, if a service downtime references a
deleted host, `Host::GetByName()` returns `nullptr` which isn't
accounted for. Use `Service::GetByNamePair()` instead as this performs a
check for the host being null internally.
2021-01-08 11:12:15 +01:00
Thomas Widhalm
adb1e0ca84
Update URLs of check_logstash plugin
2020-12-28 17:16:07 +01:00
Benedikt Heine
a71c105335
Run shellcheck over initscripts
...
Mainly quoting all variables
2020-12-27 16:57:23 +01:00
Benedikt Heine
ebb2ec7e92
Use tabs for indentation
...
Except for the switch case, the script was written with tab indentation.
With tabstop of 4 spaces, the indentation in the switch case would make
sense, but I assume this is just a glitch of the editor.
2020-12-27 16:34:02 +01:00
Benedikt Heine
d4251ea5ca
Exit from script instead of subshell on missing user
...
When executing `false || (echo bad; exit 1)`, the call to `exit` won't
exit the script, it will only exit the subshell and the exit code will
be stored in the return code `$?`.
Since this is an error, we have to exit the script properly.
2020-12-27 16:29:37 +01:00
Benedikt Heine
8a455e8150
Fix typo seemless -> seamless
2020-12-25 23:27:08 +01:00
Alexander Aleksandrovič Klimov
cb25be2d12
Merge pull request #8579 from Icinga/probot/update-authors/master/41ef094ab33d5e5cae2e8ab2cd63662fb73b6345
...
Update AUTHORS
2020-12-23 14:31:06 +01:00
icinga-probot[bot]
6fd4efc8dd
Update AUTHORS
2020-12-23 13:26:59 +00:00
Julian Brost
41ef094ab3
Merge pull request #8577 from Icinga/probot/update-authors/master/00d8703aada110599bb9790c2bed797d8b712c43
...
Update AUTHORS
2020-12-23 14:26:52 +01:00
Julian Brost
976e6af49b
Merge pull request #8536 from log1-c/patch-1
...
Remove rhel-8-server-optional-rpms, as it is not/no longer available for RHEL 8
2020-12-23 14:25:39 +01:00
icinga-probot[bot]
f0ca8fe773
Update AUTHORS
2020-12-23 13:20:50 +00:00
Julian Brost
00d8703aad
Merge pull request #7847 from Icinga/feature/log-trim-trailing-newlines-7828
...
Log: trim trailing newlines
2020-12-23 14:20:43 +01:00
Julian Brost
8df3d965b6
Merge pull request #8569 from StuebiSoft/feature/snmp-process-use-fullpath
...
Add parameter -f to snmp-process
2020-12-23 14:17:11 +01:00
Alexander Aleksandrovič Klimov
8f94af8e6f
Merge pull request #8575 from Icinga/bugfix/boost-1.74-http-headers
...
Support Boost 1.74 when setting HTTP headers
2020-12-23 14:03:12 +01:00
Julian Brost
eab07a7318
Provide a conversion function from icinga::String to boost::string_view
...
Boost.Beast changed the signature of
boost::beast::http::basic_fields::set in version 1.74 so that no longer
allows passing an icinga::String instance as value. This adds a
conversion function so that it works again.
2020-12-22 16:27:38 +01:00
Julian Brost
339b37a985
Use content_length method for setting the Content-Length header
...
Boost.Beast changed the signature of the previously used generic `set`
method so that it no longer accepts integer types, however there is
alreay a more specific method for setting the Content-Length header, so
use this one instead.
2020-12-22 16:27:38 +01:00
Alexander Aleksandrovič Klimov
6145525482
Merge pull request #8191 from Icinga/bugfix/build-fails-with-boost-1-74-8185
...
Define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT
2020-12-22 15:12:14 +01:00
Alexander Aleksandrovič Klimov
769a899749
Merge pull request #7891 from Icinga/bugfix/api-put-object-deletion-7726
...
ConfigObjectUtility#CreateObject(): check config objects for duplicates
2020-12-17 09:28:26 +01:00
Alexander A. Klimov
4051bc9c8f
ConfigObjectUtility#CreateObject(): check config objects for duplicates
...
... not to delete already existing objects during a trial of re-creation.
refs #7726
2020-12-16 16:45:22 +01:00
Yonas Habteab
8eb4f2e062
ApiListener: Display log message if two nodes run on different versions
2020-12-16 16:09:28 +01:00
Maik Stuebner
511727b3f6
Add parameter -f to snmp-process
...
with var snmp_process_use_fullpath is set to true
2020-12-16 12:04:03 +01:00
Noah Hilverling
f7e368564f
Merge pull request from GHSA-pcmr-2p2f-r7j6
...
Verify certificates against CRL before renewing them (2.13)
2020-12-15 12:30:19 +01:00
Alexander Aleksandrovič Klimov
6b04ef6e5d
Merge pull request #7871 from Icinga/feature/more-uoms-for-perfdata-7225
...
PerfdataValue: add UoMs
2020-12-14 18:42:49 +01:00
Alexander A. Klimov
34942a3511
Define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT
...
... to enable compiling with Boost v1.74.
refs #8185
2020-12-14 15:59:56 +01:00
Alexander A. Klimov
8c6bfdcf54
Revert "icinga2 daemon: reap remaining child processes after reload"
...
This reverts commit 91265a5b0e
which isn't needed anymore as Icinga 2 isn't PID 1 anymore.
2020-12-14 13:38:35 +01:00
Alexander A. Klimov
f04387a973
FireSuppressedNotifications(const Notification::Ptr&): don't send notifications while suppressed by checkable
...
... e.g. if a notification enters its time period (not suppressed anymore),
but its checkable has entered a downtime (suppressed).
refs #8509
2020-12-14 13:28:53 +01:00
Alexander A. Klimov
5547488cd5
Introduce Checkable#NotificationReasonSuppressed()
...
refs #8509
2020-12-14 13:27:58 +01:00
Alexander Aleksandrovič Klimov
b06ea2bef7
Merge pull request #8558 from Icinga/probot/update-authors/master/a9f94957a461109544d2a9f9aa9879d9b38fcf04
...
Update AUTHORS
2020-12-11 15:44:47 +01:00