]> granicus.if.org Git - icinga2/log
icinga2
5 years agoDisable program option guessing in check_service 7190/head
Michael Insel [Fri, 17 May 2019 17:54:10 +0000 (19:54 +0200)]
Disable program option guessing in check_service

This disables the program option guessing in check_service to avoid
ambiguous parameter parsing.

refs #7188

5 years agoMerge pull request #7164 from Icinga/bugfix/notification-times-validate
Michael Friedrich [Tue, 7 May 2019 13:58:44 +0000 (15:58 +0200)]
Merge pull request #7164 from Icinga/bugfix/notification-times-validate

Improve validation for times.{begin,end} in notification objects

5 years agoMerge pull request #7163 from Icinga/bugfix/db-ido-reachable
Michael Friedrich [Tue, 7 May 2019 13:21:21 +0000 (15:21 +0200)]
Merge pull request #7163 from Icinga/bugfix/db-ido-reachable

DB IDO: Use cached reachable state

5 years agoImprove validation for times.{begin,end} in notification objects 7164/head
Michael Friedrich [Tue, 30 Apr 2019 13:56:57 +0000 (15:56 +0200)]
Improve validation for times.{begin,end} in notification objects

fixes #6939

5 years agoDB IDO: Use cached reachable state 7163/head
Michael Friedrich [Tue, 7 May 2019 11:47:09 +0000 (13:47 +0200)]
DB IDO: Use cached reachable state

fixes #6844

5 years agoMerge pull request #7162 from Icinga/bugfix/cli-no-command-status-code
Michael Friedrich [Tue, 7 May 2019 11:23:05 +0000 (13:23 +0200)]
Merge pull request #7162 from Icinga/bugfix/cli-no-command-status-code

CLI: Return non-zero on unknown sub commands

5 years agoCLI: Return non-zero on unknown sub commands 7162/head
Michael Friedrich [Tue, 7 May 2019 10:43:53 +0000 (12:43 +0200)]
CLI: Return non-zero on unknown sub commands

fixes #6585

5 years agoMerge pull request #7158 from Icinga/bugfix/cli-node-wizard-zonename
Michael Friedrich [Tue, 7 May 2019 09:14:28 +0000 (11:14 +0200)]
Merge pull request #7158 from Icinga/bugfix/cli-node-wizard-zonename

CLI: Fix updates for NodeName/ZoneName constants

5 years agoCLI: Fix updates for NodeName/ZoneName constants 7158/head
Michael Friedrich [Mon, 6 May 2019 08:19:56 +0000 (10:19 +0200)]
CLI: Fix updates for NodeName/ZoneName constants

fixes #7117

5 years agoMerge pull request #7155 from Elias481/bugfix/evaluatefilter-assign-this-scope-6874
Michael Friedrich [Fri, 3 May 2019 14:53:40 +0000 (16:53 +0200)]
Merge pull request #7155 from Elias481/bugfix/evaluatefilter-assign-this-scope-6874

use current frame scope for permission filter function calls

5 years agoMerge pull request #7157 from Icinga/bugfix/ido-conn-prevent-deactivate-on-reload
Michael Friedrich [Fri, 3 May 2019 14:52:10 +0000 (16:52 +0200)]
Merge pull request #7157 from Icinga/bugfix/ido-conn-prevent-deactivate-on-reload

DB IDO: Do not deactivate objects during application reload/restart

5 years agoDB IDO: Do not deactivate objects during application reload/restart 7157/head
Michael Friedrich [Fri, 3 May 2019 10:44:29 +0000 (12:44 +0200)]
DB IDO: Do not deactivate objects during application reload/restart

This follows the same principle as with the shutdown handler,
and was introduced with the changed reload handling with 2.9.
Previously IsShuttingDown() was sufficient which got set at one
location.

SigUsr2 as handler introduced a new location where m_ShuttingDown
is not necessarily set yet. Since this handler gets called when
l_Restarting is enabled, we'll use this flag to avoid config update
events resulting in object deactivation (object->IsActive() always
returns false).

refs #5996
refs #6691
refs #6970

fixes #7125

5 years agotry without initialization of frame Locals which are not used for permissions filter... 7155/head
Elias Ohm [Thu, 2 May 2019 07:03:30 +0000 (09:03 +0200)]
try without initialization of frame Locals which are not used for permissions filter and as far as I can see also not for query filters

5 years agouse current frame scope for permission filter function calls
Elias Ohm [Thu, 2 May 2019 05:35:19 +0000 (07:35 +0200)]
use current frame scope for permission filter function calls

5 years agoMerge pull request #7150 from Icinga/bugfix/api-config-package-active-stage-name
Michael Friedrich [Tue, 30 Apr 2019 12:22:13 +0000 (14:22 +0200)]
Merge pull request #7150 from Icinga/bugfix/api-config-package-active-stage-name

Ensure that runtime created API objects survive a restart

5 years agoMerge pull request #7153 from Icinga/bugfix/windows-plugins
Michael Friedrich [Tue, 30 Apr 2019 12:21:23 +0000 (14:21 +0200)]
Merge pull request #7153 from Icinga/bugfix/windows-plugins

Fix compiler warnings in Windows plugins

5 years agoMerge pull request #7152 from Elias481/fix/mysql8-headers-compatibility
Michael Friedrich [Tue, 30 Apr 2019 12:20:18 +0000 (14:20 +0200)]
Merge pull request #7152 from Elias481/fix/mysql8-headers-compatibility

account for adjusted interface of mysql8

5 years agoActive packages: Don't try to fix broken config packages which are not cached yet 7150/head
Michael Friedrich [Tue, 30 Apr 2019 10:19:35 +0000 (12:19 +0200)]
Active packages: Don't try to fix broken config packages which are not cached yet

5 years agoFix compiler warnings in Windows plugins 7153/head
Michael Insel [Tue, 30 Apr 2019 08:32:44 +0000 (10:32 +0200)]
Fix compiler warnings in Windows plugins

This fixes a bunch of compiler warnings in the Windows plugins.

5 years agoMerge pull request #7145 from Icinga/feature/dotnet-4.6
Markus Frosch [Mon, 29 Apr 2019 15:01:15 +0000 (17:01 +0200)]
Merge pull request #7145 from Icinga/feature/dotnet-4.6

Raise .NET target version to 4.6

5 years agoDoc: Raise required .NET framework version 7145/head
Michael Insel [Mon, 29 Apr 2019 09:41:49 +0000 (11:41 +0200)]
Doc: Raise required .NET framework version

This raises the required .NET framework version in the installation
documentation. This also adds notes in the upgrading documentation
for the new .NET Framework requirements.

Update .NET requirements for development on Windows.

refs #7090

5 years agoUse WixNetFxExtension to detect installed .NET
Michael Insel [Thu, 25 Apr 2019 16:14:04 +0000 (18:14 +0200)]
Use WixNetFxExtension to detect installed .NET

This implements the use of the WixNetFxExtension for the WIX toolset, to
detect the installed .NET Framework version. If the installed .NET
version is lower than 4.6 the installation process will terminate with
the note to install at least .NET Framework 4.6.

refs #7090

5 years agoMerge pull request #6734 from leeclemens/remove-redundant-indexes
Michael Friedrich [Mon, 29 Apr 2019 07:13:22 +0000 (09:13 +0200)]
Merge pull request #6734 from leeclemens/remove-redundant-indexes

db ido: remove redundant mysql indexes

5 years agoMerge pull request #7151 from marxin/fix-docs-chkconfig
Michael Friedrich [Mon, 29 Apr 2019 07:01:52 +0000 (09:01 +0200)]
Merge pull request #7151 from marxin/fix-docs-chkconfig

Documentation: add missing argument to chkconfig command.

5 years agoaccount for adjusted interface of mysql8 (now utilizes c99 bools instead of my_bool... 7152/head
Elias Ohm [Sun, 28 Apr 2019 22:18:15 +0000 (00:18 +0200)]
account for adjusted interface of mysql8 (now utilizes c99 bools instead of my_bool labelled chars)

5 years agoDocumentation: add missing argument to chkconfig command. 7151/head
marxin [Sat, 27 Apr 2019 10:48:37 +0000 (12:48 +0200)]
Documentation: add missing argument to chkconfig command.

5 years agoRepair broken API config packages at runtime
Michael Friedrich [Fri, 26 Apr 2019 12:51:28 +0000 (14:51 +0200)]
Repair broken API config packages at runtime

This means a new timer which checks every 5m whether the
active-stage can be read, and if not, it overwrites the
file on disk with the details from memory.

5 years agoCluster: Don't try to sync objects from broken _api package
Michael Friedrich [Fri, 26 Apr 2019 12:43:38 +0000 (14:43 +0200)]
Cluster: Don't try to sync objects from broken _api package

5 years agoDaemon: Deal with exceptions from broken _api package
Michael Friedrich [Fri, 26 Apr 2019 12:43:10 +0000 (14:43 +0200)]
Daemon: Deal with exceptions from broken _api package

5 years agoCache the API package stage name with a active-stage fallback
Michael Friedrich [Tue, 16 Apr 2019 14:37:38 +0000 (16:37 +0200)]
Cache the API package stage name with a active-stage fallback

This prevents reading the file everytime the stageName is required
for when creating a runtime object via REST API.

5 years agoMerge pull request #7148 from Icinga/feature/api-setup-cn
Michael Friedrich [Fri, 26 Apr 2019 10:04:58 +0000 (12:04 +0200)]
Merge pull request #7148 from Icinga/feature/api-setup-cn

Add --cn parameter to 'api setup' CLI command allowing hostname overrides

5 years agoAdd --cn parameter to 'api setup' CLI command allowing hostname overrides 7148/head
Michael Friedrich [Fri, 26 Apr 2019 08:51:39 +0000 (10:51 +0200)]
Add --cn parameter to 'api setup' CLI command allowing hostname overrides

fixes #6649

5 years agoMerge pull request #7146 from Icinga/feature/update-release-docs
Michael Friedrich [Fri, 26 Apr 2019 08:26:25 +0000 (10:26 +0200)]
Merge pull request #7146 from Icinga/feature/update-release-docs

Update release procedure

5 years agoDrop the changelog generator script 7146/head
Michael Friedrich [Fri, 26 Apr 2019 08:22:31 +0000 (10:22 +0200)]
Drop the changelog generator script

5 years agoUpdate release docs and make changelog a static entry
Michael Friedrich [Fri, 26 Apr 2019 08:22:05 +0000 (10:22 +0200)]
Update release docs and make changelog a static entry

5 years agoMerge pull request #7124 from Icinga/bugfix/namespace-thread-safe
Michael Friedrich [Fri, 26 Apr 2019 06:26:59 +0000 (08:26 +0200)]
Merge pull request #7124 from Icinga/bugfix/namespace-thread-safe

Namespace: place ObjectLock in all methods

5 years agoDrop .NET 2.0/3.0/3.5 as supported .NET platform
Michael Insel [Wed, 24 Apr 2019 18:05:16 +0000 (20:05 +0200)]
Drop .NET 2.0/3.0/3.5 as supported .NET platform

This drops .NET 2.0, 3.0 and 3.5 as as supported .NET runtime platform.

The maximum version can only be v4.0, which targets currently all .NET
4.x releases. Therefor I added the sku flag to enforce .NET 4.6 as
minimum runtime platform. Since .NET 4.x is backwards compatible we
should be safe to only set the minimum version/sku here (i.e. we should
be able to run the application on a system with .NET 4.7)

refs #7090

5 years agoRaise .NET target version to 4.6
Michael Insel [Wed, 24 Apr 2019 17:31:14 +0000 (19:31 +0200)]
Raise .NET target version to 4.6

This sets the target .NET framework version to 4.6.

The Prefer32Bit option was introduced with .NET 4. When set to true this
will generate x86 machine code on a 64-bit system, but this only affects
projects where the platform target is set to Any CPU. CMake generates
the project based on the system. Since the Prefer32Bit option was auto
generated during the switch to the new .NET version I ensured this is
explicitly set to false.

refs #7090

5 years agoMerge pull request #7088 from Icinga/feature/asio-event-queue
Michael Friedrich [Thu, 25 Apr 2019 14:54:43 +0000 (16:54 +0200)]
Merge pull request #7088 from Icinga/feature/asio-event-queue

Implement new event queue for ASIO consumers

5 years agoEventqueue: Remove unused code 7088/head
Michael Friedrich [Thu, 25 Apr 2019 14:21:07 +0000 (16:21 +0200)]
Eventqueue: Remove unused code

5 years agoEventsFilter#Push(): ensure not to modify the global namespace
Alexander A. Klimov [Tue, 23 Apr 2019 09:02:01 +0000 (11:02 +0200)]
EventsFilter#Push(): ensure not to modify the global namespace

5 years ago/v1/events: don't over-consume CPU-bound threads
Alexander A. Klimov [Mon, 8 Apr 2019 07:43:00 +0000 (09:43 +0200)]
/v1/events: don't over-consume CPU-bound threads

5 years agoNew event queue: handle empty filter
Alexander A. Klimov [Fri, 5 Apr 2019 15:41:39 +0000 (17:41 +0200)]
New event queue: handle empty filter

5 years ago/v1/events: remove anti-deadlock hack
Alexander A. Klimov [Fri, 5 Apr 2019 15:36:50 +0000 (17:36 +0200)]
/v1/events: remove anti-deadlock hack

5 years ago/v1/events: use new event queue
Alexander A. Klimov [Fri, 5 Apr 2019 15:34:46 +0000 (17:34 +0200)]
/v1/events: use new event queue

5 years agoFeed new event queue with events
Alexander A. Klimov [Fri, 5 Apr 2019 15:14:19 +0000 (17:14 +0200)]
Feed new event queue with events

5 years agoImplement new event queue for ASIO consumers
Alexander A. Klimov [Fri, 5 Apr 2019 15:02:42 +0000 (17:02 +0200)]
Implement new event queue for ASIO consumers

5 years agoMerge pull request #6722 from Icinga/feature/notification-result
Michael Friedrich [Thu, 25 Apr 2019 13:56:14 +0000 (15:56 +0200)]
Merge pull request #6722 from Icinga/feature/notification-result

Add notification result store/sync

5 years agoMerge pull request #7102 from Icinga/feature/boost-fs-7101
Michael Friedrich [Thu, 25 Apr 2019 13:53:55 +0000 (15:53 +0200)]
Merge pull request #7102 from Icinga/feature/boost-fs-7101

Replace self-written filesystem ops with boost.filesystem

5 years agoMerge pull request #6988 from Icinga/feature/thread-pool-6985
Michael Friedrich [Thu, 25 Apr 2019 12:20:42 +0000 (14:20 +0200)]
Merge pull request #6988 from Icinga/feature/thread-pool-6985

ThreadPool: use the Boost ASIO thread pool under the hood

5 years agoEnsure header ordering for win32 mswsock.h 6988/head
Markus Frosch [Thu, 25 Apr 2019 09:54:26 +0000 (11:54 +0200)]
Ensure header ordering for win32 mswsock.h

5 years agoReplace unlink() with boost::filesystem::remove() 7102/head
Alexander A. Klimov [Wed, 10 Apr 2019 12:16:39 +0000 (14:16 +0200)]
Replace unlink() with boost::filesystem::remove()

refs #7101

5 years agoReplace _unlink() + rename() with boost::filesystem::rename()
Alexander A. Klimov [Wed, 10 Apr 2019 11:44:13 +0000 (13:44 +0200)]
Replace _unlink() + rename() with boost::filesystem::rename()

refs #7101

5 years agoWork around boost::filesystem::path bug on VS
Alexander A. Klimov [Wed, 10 Apr 2019 10:31:53 +0000 (12:31 +0200)]
Work around boost::filesystem::path bug on VS

refs #7101

5 years agoUse Boost.Filesystem
Alexander A. Klimov [Wed, 10 Apr 2019 09:21:05 +0000 (11:21 +0200)]
Use Boost.Filesystem

refs #7101

5 years agoRequire Boost.Filesystem
Alexander A. Klimov [Tue, 9 Apr 2019 15:42:02 +0000 (17:42 +0200)]
Require Boost.Filesystem

refs #7101

5 years agoFix preprocessor macro comment
Michael Friedrich [Tue, 23 Apr 2019 14:59:49 +0000 (16:59 +0200)]
Fix preprocessor macro comment

5 years agoFix circular #include
Alexander A. Klimov [Mon, 1 Apr 2019 16:54:13 +0000 (18:54 +0200)]
Fix circular #include

refs #6985

5 years agoThreadPool: use the Boost ASIO thread pool under the hood
Alexander A. Klimov [Mon, 1 Apr 2019 15:05:16 +0000 (17:05 +0200)]
ThreadPool: use the Boost ASIO thread pool under the hood

5 years agoBuildfix
Michael Friedrich [Wed, 24 Apr 2019 10:10:57 +0000 (12:10 +0200)]
Buildfix

Obviously tired.

fixes #7138
fixes #7139

5 years agoMerge pull request #7140 from Icinga/feature/docs-logrotate
Michael Friedrich [Wed, 24 Apr 2019 09:54:54 +0000 (11:54 +0200)]
Merge pull request #7140 from Icinga/feature/docs-logrotate

Add log message for log rotate; update docs

5 years agoAdd log message for log rotate; update docs 7140/head
Michael Friedrich [Wed, 24 Apr 2019 09:33:43 +0000 (11:33 +0200)]
Add log message for log rotate; update docs

refs #6737

5 years agoMerge pull request #7004 from Icinga/bugfix/logrotate-6737
Michael Friedrich [Wed, 24 Apr 2019 09:52:16 +0000 (11:52 +0200)]
Merge pull request #7004 from Icinga/bugfix/logrotate-6737

Timer::TimerThreadProc(): use C++11 lambda instead of bind()

5 years agoTimer::TimerThreadProc(): use C++11 lambda instead of bind() 7004/head
Alexander A. Klimov [Mon, 11 Mar 2019 10:17:26 +0000 (11:17 +0100)]
Timer::TimerThreadProc(): use C++11 lambda instead of bind()

refs #6737

5 years agoMerge pull request #7130 from Icinga/bugfix/logrotate-issues-6737
Michael Friedrich [Wed, 24 Apr 2019 09:49:33 +0000 (11:49 +0200)]
Merge pull request #7130 from Icinga/bugfix/logrotate-issues-6737

StreamLogger#BindStream(): set #m_FlushLogTimer only if needed

5 years agoStreamLogger#BindStream(): set #m_FlushLogTimer only if needed 7130/head
Alexander A. Klimov [Thu, 18 Apr 2019 10:23:50 +0000 (12:23 +0200)]
StreamLogger#BindStream(): set #m_FlushLogTimer only if needed

refs #6737

5 years agoMerge pull request #7129 from Elias481/fix/logrotate-segfaults-6737
Michael Friedrich [Wed, 24 Apr 2019 09:45:16 +0000 (11:45 +0200)]
Merge pull request #7129 from Elias481/fix/logrotate-segfaults-6737

avoid incrementing Ptr which could be already be in destruction-phase

5 years agoFix for double-free (and possibly other memory-corruption related) crashes at logrota... 7129/head
Elias Ohm [Wed, 17 Apr 2019 20:31:42 +0000 (22:31 +0200)]
Fix for double-free (and possibly other memory-corruption related) crashes at logrotate time

this is a direct fix of the issue revealing the problem that leads to crash

verification done with a patched icinga2 where the execution-order of the code lines of counter-parts involved in re-incrementing/decrementing Timer:Ptr is forced to be the one that leads to the obeserverd segfaults

refs #6737

5 years agoDocs: Fix formatting in object type chapter
Michael Friedrich [Tue, 23 Apr 2019 13:33:28 +0000 (15:33 +0200)]
Docs: Fix formatting in object type chapter

5 years agoMerge pull request #7135 from Icinga/feature/boost-asio-elasticsearchwriter
Michael Friedrich [Tue, 23 Apr 2019 12:53:00 +0000 (14:53 +0200)]
Merge pull request #7135 from Icinga/feature/boost-asio-elasticsearchwriter

Use new I/O engine in ElasticsearchWriter

5 years agoMerge pull request #7137 from Icinga/bugfix/disconnect-log-more-spam
Michael Friedrich [Tue, 23 Apr 2019 12:50:18 +0000 (14:50 +0200)]
Merge pull request #7137 from Icinga/bugfix/disconnect-log-more-spam

JsonRpcConnection: reduce log spam on disconnect

5 years agoUse new I/O engine in ElasticsearchWriter 7135/head
Alexander A. Klimov [Tue, 23 Apr 2019 11:15:38 +0000 (13:15 +0200)]
Use new I/O engine in ElasticsearchWriter

5 years agoMerge pull request #7134 from Icinga/feature/boost-asio-influxdbwriter
Michael Friedrich [Tue, 23 Apr 2019 12:31:42 +0000 (14:31 +0200)]
Merge pull request #7134 from Icinga/feature/boost-asio-influxdbwriter

Use new I/O engine in InfluxdbWriter

5 years agoMerge pull request #7133 from Icinga/feature/boost-asio-pki
Michael Friedrich [Tue, 23 Apr 2019 12:27:48 +0000 (14:27 +0200)]
Merge pull request #7133 from Icinga/feature/boost-asio-pki

Use new I/O engine in PkiUtility::FetchCert() and PkiUtility::RequestCertificate()

5 years agoJsonRpcConnection: reduce log spam on disconnect 7137/head
Alexander A. Klimov [Tue, 23 Apr 2019 12:09:07 +0000 (14:09 +0200)]
JsonRpcConnection: reduce log spam on disconnect

5 years agoQuickfix technical docs for debugging
Michael Friedrich [Tue, 23 Apr 2019 11:47:40 +0000 (13:47 +0200)]
Quickfix technical docs for debugging

5 years agoMerge pull request #7127 from Icinga/bugfix/replay-log
Michael Friedrich [Tue, 23 Apr 2019 10:08:12 +0000 (12:08 +0200)]
Merge pull request #7127 from Icinga/bugfix/replay-log

ApiListener#RotateLogFile(): don't overwrite previous log

5 years agoMerge pull request #7126 from Icinga/bugfix/replay-logs-6932
Michael Friedrich [Tue, 23 Apr 2019 10:07:02 +0000 (12:07 +0200)]
Merge pull request #7126 from Icinga/bugfix/replay-logs-6932

ApiListener#ApiTimerHandler(): delete all replayed logs

5 years agoUse new I/O engine in InfluxdbWriter 7134/head
Alexander A. Klimov [Tue, 23 Apr 2019 09:25:52 +0000 (11:25 +0200)]
Use new I/O engine in InfluxdbWriter

5 years agoMerge pull request #7128 from Icinga/feature/re-write-objectlock-7123
Michael Friedrich [Tue, 23 Apr 2019 09:53:40 +0000 (11:53 +0200)]
Merge pull request #7128 from Icinga/feature/re-write-objectlock-7123

Re-write ObjectLock's implementation details

5 years agoIntroduce OptionalTlsStream
Alexander A. Klimov [Tue, 23 Apr 2019 09:25:26 +0000 (11:25 +0200)]
Introduce OptionalTlsStream

5 years agoApiListener#ReplayLog(): read current log file too instead of rotating 7127/head
Alexander A. Klimov [Wed, 17 Apr 2019 13:42:39 +0000 (15:42 +0200)]
ApiListener#ReplayLog(): read current log file too instead of rotating

5 years agoApiListener#RotateLogFile(): don't overwrite previous log
Alexander A. Klimov [Wed, 17 Apr 2019 12:31:49 +0000 (14:31 +0200)]
ApiListener#RotateLogFile(): don't overwrite previous log

5 years agoApiListener#ApiTimerHandler(): delete all replayed logs 7126/head
Alexander A. Klimov [Wed, 17 Apr 2019 11:52:13 +0000 (13:52 +0200)]
ApiListener#ApiTimerHandler(): delete all replayed logs

refs #6932

5 years agoMake Object#m_Mutex std::recursive_mutex 7128/head
Alexander A. Klimov [Wed, 17 Apr 2019 16:15:32 +0000 (18:15 +0200)]
Make Object#m_Mutex std::recursive_mutex

refs #7123

5 years agoMake Object#m_LockOwner std::atomic<std::thread::id>
Alexander A. Klimov [Wed, 17 Apr 2019 16:03:40 +0000 (18:03 +0200)]
Make Object#m_LockOwner std::atomic<std::thread::id>

refs #7123

5 years agoObjectLock: deduplicate constructors
Alexander A. Klimov [Wed, 17 Apr 2019 14:47:41 +0000 (16:47 +0200)]
ObjectLock: deduplicate constructors

refs #7123

5 years agoRotate replay log on shutdown, not on startup
Alexander A. Klimov [Wed, 17 Apr 2019 12:18:20 +0000 (14:18 +0200)]
Rotate replay log on shutdown, not on startup

5 years agoMerge pull request #7050 from Icinga/feature/previous-state-change
Michael Friedrich [Wed, 17 Apr 2019 11:17:41 +0000 (13:17 +0200)]
Merge pull request #7050 from Icinga/feature/previous-state-change

Implement previous_state_change

5 years agoMerge pull request #7112 from Icinga/bugfix/service-handled
Michael Friedrich [Wed, 17 Apr 2019 11:16:23 +0000 (13:16 +0200)]
Merge pull request #7112 from Icinga/bugfix/service-handled

Include host state in Service#handled and Service#severity

5 years agoMerge pull request #7121 from Icinga/bugfix/concurrent-checks
Michael Friedrich [Wed, 17 Apr 2019 11:14:32 +0000 (13:14 +0200)]
Merge pull request #7121 from Icinga/bugfix/concurrent-checks

Fix that MaxConcurrentChecks constant is overridden from 'checker' feature

5 years agoMerge pull request #7122 from Icinga/bugfix/evaluatefilter-change-globals
Michael Friedrich [Tue, 16 Apr 2019 15:40:20 +0000 (17:40 +0200)]
Merge pull request #7122 from Icinga/bugfix/evaluatefilter-change-globals

FilterUtility::EvaluateFilter(): ensure not to modify the global namespace

5 years agoNamespace: place ObjectLock in all methods 7124/head
Alexander A. Klimov [Tue, 16 Apr 2019 15:38:58 +0000 (17:38 +0200)]
Namespace: place ObjectLock in all methods

5 years agoMerge pull request #7113 from Elias481/fix/incorrect-usage-of-global-namespace-6874...
Michael Friedrich [Tue, 16 Apr 2019 14:02:16 +0000 (16:02 +0200)]
Merge pull request #7113 from Elias481/fix/incorrect-usage-of-global-namespace-6874-6785

use dedicated permissions namespace for scriptframe in filterutility

5 years agoFilterUtility::EvaluateFilter(): ensure not to modify the global namespace 7122/head
Alexander A. Klimov [Tue, 16 Apr 2019 13:53:44 +0000 (15:53 +0200)]
FilterUtility::EvaluateFilter(): ensure not to modify the global namespace

5 years agoFix that MaxConcurrentChecks constant is overridden from 'checker' feature 7121/head
Michael Friedrich [Mon, 15 Apr 2019 14:56:30 +0000 (16:56 +0200)]
Fix that MaxConcurrentChecks constant is overridden from 'checker' feature

Note: This drops the deprecated concurrent_checks setting from the checker feature
entirely and refactors the underlaying code handling.

Also affects ReloadTimeout which is new for 2.11.

fixes #7111

5 years agoMerge pull request #7120 from Icinga/bugfix/cluster-ignore-non-configured-zones
Michael Friedrich [Tue, 16 Apr 2019 09:08:15 +0000 (11:08 +0200)]
Merge pull request #7120 from Icinga/bugfix/cluster-ignore-non-configured-zones

Ignore synced config zones where no config item exists

5 years agoIgnore synced config zones where no config item exists 7120/head
Michael Friedrich [Fri, 28 Sep 2018 11:55:41 +0000 (13:55 +0200)]
Ignore synced config zones where no config item exists

The culprit is that we're in compiling configuration stage here,
we don't have access to `Zone::GetByName()` as objects have not
been activated yet.

Our best guess is from a config item loaded before (e.g. from zones.conf)
since no-one can sync zones via cluster config sync either.

It may not be 100% correct since the zone object itself may be invalid.
Still, if the zone object validator fails later, the config breaks either way.

The problem with removal of these directories is dealt by the cluster
config sync with stages.

refs #6727
refs #6716

5 years agoMerge pull request #7116 from Icinga/feature/no-reachable
Michael Friedrich [Mon, 15 Apr 2019 11:40:06 +0000 (13:40 +0200)]
Merge pull request #7116 from Icinga/feature/no-reachable

Drop Checkable#reachable in favor of #last_reachable

5 years agoMerge pull request #7115 from Icinga/feature/docs-api
Michael Friedrich [Fri, 12 Apr 2019 13:28:49 +0000 (15:28 +0200)]
Merge pull request #7115 from Icinga/feature/docs-api

Improve REST API docs