]> granicus.if.org Git - icinga2/log
icinga2
5 years agoDocs: Update technical concepts for TLS Network IO and Boost Asio, Beast and Coroutines 7231/head
Michael Friedrich [Wed, 5 Jun 2019 15:29:55 +0000 (17:29 +0200)]
Docs: Update technical concepts for TLS Network IO and Boost Asio, Beast and Coroutines

refs #7041

5 years agoMerge pull request #7184 from robert-scheck/strip-lf-notificationcomment
Michael Friedrich [Wed, 5 Jun 2019 13:22:57 +0000 (15:22 +0200)]
Merge pull request #7184 from robert-scheck/strip-lf-notificationcomment

Strip '\r' in notification messages to avoid 'Content-Type: application/octet-stream'

5 years agoMerge pull request #7229 from Icinga/feature/docs-plugin-api
Michael Friedrich [Wed, 5 Jun 2019 13:12:52 +0000 (15:12 +0200)]
Merge pull request #7229 from Icinga/feature/docs-plugin-api

Docs: Improve the service monitoring chapter (plugin API, new plugin, integration, etc.)

5 years agoMerge pull request #7220 from Icinga/bugfix/asio-error-handling
Michael Friedrich [Wed, 5 Jun 2019 12:43:31 +0000 (14:43 +0200)]
Merge pull request #7220 from Icinga/bugfix/asio-error-handling

Improve error handling with network connections (Boost ASIO)

5 years agoMerge pull request #7209 from Icinga/bugfix/immediately-close-sockets
Michael Friedrich [Wed, 5 Jun 2019 12:40:24 +0000 (14:40 +0200)]
Merge pull request #7209 from Icinga/bugfix/immediately-close-sockets

Close server connections and shutdown coroutines immediately on disconnect

5 years agoDocs: Avoid linking to the old plugin guidelines 7229/head
Michael Friedrich [Wed, 5 Jun 2019 11:31:02 +0000 (13:31 +0200)]
Docs: Avoid linking to the old plugin guidelines

Ours are here now.

5 years agoDocs: Formatting fixes
Michael Friedrich [Wed, 5 Jun 2019 11:15:47 +0000 (13:15 +0200)]
Docs: Formatting fixes

5 years agoDocs: Enrich the service monitoring chapter introduction
Michael Friedrich [Wed, 5 Jun 2019 11:11:12 +0000 (13:11 +0200)]
Docs: Enrich the service monitoring chapter introduction

- Plugin integration with commands
- Plugin API spec and code examples
- Overview

5 years agoDocs: Add details about thresholds and ranges to the plugin API spec
Michael Friedrich [Wed, 5 Jun 2019 10:58:53 +0000 (12:58 +0200)]
Docs: Add details about thresholds and ranges to the plugin API spec

5 years agoDocs: Add performance data metrics spec for plugin API
Michael Friedrich [Wed, 5 Jun 2019 09:23:20 +0000 (11:23 +0200)]
Docs: Add performance data metrics spec for plugin API

This imports the plugin API html spec, but in a more gentle
readable fashion with better examples.

This allows us to extend this specification later on.

5 years agoDocs: Add verbose tip for plugin creation
Michael Friedrich [Wed, 5 Jun 2019 09:21:07 +0000 (11:21 +0200)]
Docs: Add verbose tip for plugin creation

5 years agoDocs: Improve plugin integration
Michael Friedrich [Tue, 4 Jun 2019 15:46:45 +0000 (17:46 +0200)]
Docs: Improve plugin integration

5 years agoDocs: Write our own plugin API specification
Michael Friedrich [Thu, 9 May 2019 12:54:49 +0000 (14:54 +0200)]
Docs: Write our own plugin API specification

Rationale: The linked HTML document lacks the right
formatting and is very hard to read and understand.

Also, it doesn't explain plugin timeouts being best
practice, nor shows good programmatic examples.

Today, I prefer Python over Perl, and will share my
knowledge in the docs too.

5 years agoMerge pull request #7219 from Icinga/feature/api-cipherlist
Michael Friedrich [Wed, 5 Jun 2019 09:40:14 +0000 (11:40 +0200)]
Merge pull request #7219 from Icinga/feature/api-cipherlist

API: Harden default cipher list

5 years agoClose server connections and shutdown coroutines immediately on disconnect 7209/head
Alexander A. Klimov [Wed, 5 Jun 2019 08:32:20 +0000 (10:32 +0200)]
Close server connections and shutdown coroutines immediately on disconnect

5 years agoAdd cipher list change to upgrading docs 7219/head
Michael Friedrich [Wed, 5 Jun 2019 07:55:49 +0000 (09:55 +0200)]
Add cipher list change to upgrading docs

5 years agoAPI: Harden default cipher list
Michael Friedrich [Mon, 3 Jun 2019 16:09:57 +0000 (18:09 +0200)]
API: Harden default cipher list

According to https://www.acunetix.com/blog/articles/tls-ssl-cipher-hardening/

5 years agoImprove error handling with network connections (Boost ASIO) 7220/head
Michael Friedrich [Mon, 3 Jun 2019 16:15:02 +0000 (18:15 +0200)]
Improve error handling with network connections (Boost ASIO)

refs #7041

5 years agoMerge pull request #7224 from Icinga/bugfix/docs-lang-ref
Michael Friedrich [Tue, 4 Jun 2019 11:13:20 +0000 (13:13 +0200)]
Merge pull request #7224 from Icinga/bugfix/docs-lang-ref

Docs: Mark include_zones as internal consumed functionality

5 years agoDocs: Mark include_zones as internal consumed functionality 7224/head
Michael Friedrich [Tue, 4 Jun 2019 11:11:17 +0000 (13:11 +0200)]
Docs: Mark include_zones as internal consumed functionality

Asked during the Icinga Advanced training.

5 years agoMerge pull request #7213 from widhalmt/doc/global-zones
Michael Friedrich [Tue, 4 Jun 2019 07:34:32 +0000 (09:34 +0200)]
Merge pull request #7213 from widhalmt/doc/global-zones

Docs: Add note about not to use director-global for own configuration

5 years agoDocs: Add note about not to use director-global for your own configuration 7213/head
Thomas Widhalm [Fri, 31 May 2019 13:49:14 +0000 (15:49 +0200)]
Docs: Add note about not to use director-global for your own configuration

5 years agoMerge pull request #7211 from Icinga/feature/asio-tls-version
Michael Friedrich [Mon, 3 Jun 2019 14:19:22 +0000 (16:19 +0200)]
Merge pull request #7211 from Icinga/feature/asio-tls-version

Require TLS 1.2 for Cluster & REST API

5 years agoMerge pull request #7216 from peteeckel/fix/provide-snmpv3-context-option-7215
Michael Friedrich [Mon, 3 Jun 2019 14:06:13 +0000 (16:06 +0200)]
Merge pull request #7216 from peteeckel/fix/provide-snmpv3-context-option-7215

Provide the snmpv3_context option

5 years agoMerge pull request #7204 from episodeiv/master
Michael Friedrich [Mon, 3 Jun 2019 09:20:30 +0000 (11:20 +0200)]
Merge pull request #7204 from episodeiv/master

Allow setting the SNMP version for check_iftraffic.pl

5 years agoDocs: Add iftraffic version note, fix broken URL 7204/head
Michael Friedrich [Mon, 3 Jun 2019 09:19:12 +0000 (11:19 +0200)]
Docs: Add iftraffic version note, fix broken URL

5 years agoProvide the snmpv3_context option and the corresponding item in the documentation 7216/head
Peter Eckel [Mon, 3 Jun 2019 08:56:00 +0000 (10:56 +0200)]
Provide the snmpv3_context option and the corresponding item in the documentation

5 years agoMerge pull request #7214 from breml/patch-1
Michael Friedrich [Mon, 3 Jun 2019 07:39:39 +0000 (09:39 +0200)]
Merge pull request #7214 from breml/patch-1

Docs: Fix typo

5 years agoDocs: fix typo 7214/head
Lucas Bremgartner [Mon, 3 Jun 2019 07:03:16 +0000 (09:03 +0200)]
Docs: fix typo

5 years agoRequire TLS 1.2 for Cluster & REST API 7211/head
Michael Friedrich [Wed, 29 May 2019 15:07:31 +0000 (17:07 +0200)]
Require TLS 1.2 for Cluster & REST API

refs #7041

5 years agoMerge pull request #7210 from Icinga/bugfix/boost-asio-deprecated
Michael Friedrich [Wed, 29 May 2019 13:40:19 +0000 (15:40 +0200)]
Merge pull request #7210 from Icinga/bugfix/boost-asio-deprecated

Quality: Replace deprecated get_io_service() with get_executor().context() for Boost ASIO

5 years agoMerge pull request #7196 from Icinga/feature/network-cleanup
Michael Friedrich [Wed, 29 May 2019 12:50:40 +0000 (14:50 +0200)]
Merge pull request #7196 from Icinga/feature/network-cleanup

Cleanup old code (HTTP, Cluster)

5 years agoQuality: Replace deprecated get_io_service() with get_executor().context() for Boost... 7210/head
Michael Friedrich [Wed, 29 May 2019 12:36:10 +0000 (14:36 +0200)]
Quality: Replace deprecated get_io_service() with get_executor().context() for Boost ASIO

refs #7041

5 years agoQuality: Mark NetworkStream, TcpSocket & UnixSocket classes as deprecated 7196/head
Michael Friedrich [Wed, 29 May 2019 12:17:36 +0000 (14:17 +0200)]
Quality: Mark NetworkStream, TcpSocket & UnixSocket classes as deprecated

They're used inside the Livestatus feature which needs rework.

5 years agoAdd documentation for iftraffic_version
Dennis Lichtenthäler [Wed, 29 May 2019 08:57:49 +0000 (10:57 +0200)]
Add documentation for iftraffic_version

5 years agoMerge pull request #7205 from Icinga/feature/remove-cli-troubleshoot
Michael Friedrich [Tue, 28 May 2019 13:25:25 +0000 (15:25 +0200)]
Merge pull request #7205 from Icinga/feature/remove-cli-troubleshoot

CLI: Remove broken troubleshoot command

5 years agoQuality: Removed unused HttpChunkedEncoding class
Michael Friedrich [Tue, 28 May 2019 11:46:19 +0000 (13:46 +0200)]
Quality: Removed unused HttpChunkedEncoding class

5 years agoQuality: Remove old MakeSSLContext() interface
Michael Friedrich [Tue, 28 May 2019 11:03:34 +0000 (13:03 +0200)]
Quality: Remove old MakeSSLContext() interface

5 years agoCLI: Remove broken troubleshoot command 7205/head
Michael Friedrich [Tue, 28 May 2019 10:31:38 +0000 (12:31 +0200)]
CLI: Remove broken troubleshoot command

It wasn't finished nor have we used it for support questions.

Issue templates, troubleshooting docs and external scripts
serve a better purpose here, especially with distributed systems.

5 years agoAllow setting the SNMP version for check_iftraffic.pl
Dennis Lichtenthäler [Tue, 28 May 2019 09:08:37 +0000 (11:08 +0200)]
Allow setting the SNMP version for check_iftraffic.pl

This is not supported in check_iftraffic.pl master yet
but there's a pull request at https://github.com/NETWAYS/check_iftraffic/pull/4

5 years agoQuality: Use Boost ASIO/IO engine in Graphite feature
Michael Friedrich [Mon, 27 May 2019 14:49:51 +0000 (16:49 +0200)]
Quality: Use Boost ASIO/IO engine in Graphite feature

This commit changes the reconnect priority to high.

Also add function docs.

5 years agoQuality: Rewrite OpenTSDB to use Boost ASIO and I/O engine
Michael Friedrich [Mon, 27 May 2019 13:09:26 +0000 (15:09 +0200)]
Quality: Rewrite OpenTSDB to use Boost ASIO and I/O engine

The connection handling and code isn't really good, but not
really actively maintained either.

Besides that, the "telnet" method doesn't allow for TLS,
this needs a general rewrite against their HTTP API.

I've also added function documentation where applicable.

5 years agoMerge pull request #7200 from Icinga/bugfix/docs-trailing-whitespace-typo
Michael Friedrich [Mon, 27 May 2019 07:58:25 +0000 (09:58 +0200)]
Merge pull request #7200 from Icinga/bugfix/docs-trailing-whitespace-typo

Docs: Replace 'training whitespaces' with 'trailing whitespaces'

5 years agoMerge pull request #7201 from Icinga/bugfix/update-more-copyright-headers
Michael Friedrich [Mon, 27 May 2019 07:57:51 +0000 (09:57 +0200)]
Merge pull request #7201 from Icinga/bugfix/update-more-copyright-headers

Unify copyright headers

5 years agoUnify copyright headers 7201/head
Michael Insel [Fri, 24 May 2019 14:25:32 +0000 (16:25 +0200)]
Unify copyright headers

Update (left over) copyright headers to generic copyright headers.

5 years agoDocs: Replace 'training whitespaces' with 'trailing whitespaces' 7200/head
Noah Hilverling [Fri, 24 May 2019 14:24:28 +0000 (16:24 +0200)]
Docs: Replace 'training whitespaces' with 'trailing whitespaces'

5 years agoQuality: Drop unused boost/tuple header include
Michael Friedrich [Fri, 24 May 2019 13:34:02 +0000 (15:34 +0200)]
Quality: Drop unused boost/tuple header include

5 years agoQuality: Remove old SocketEvent functionality
Michael Friedrich [Fri, 24 May 2019 08:07:51 +0000 (10:07 +0200)]
Quality: Remove old SocketEvent functionality

5 years agoQuality: Purge old TlsStream functionality
Michael Friedrich [Fri, 24 May 2019 07:19:15 +0000 (09:19 +0200)]
Quality: Purge old TlsStream functionality

5 years agoQuality: Clean JsonRPC class and add function docs
Michael Friedrich [Thu, 23 May 2019 15:25:56 +0000 (17:25 +0200)]
Quality: Clean JsonRPC class and add function docs

5 years agoQuality: Purge old HTTP code in lib/remote
Michael Friedrich [Thu, 23 May 2019 13:25:08 +0000 (15:25 +0200)]
Quality: Purge old HTTP code in lib/remote

5 years agoMerge pull request #6813 from Icinga/feature/gelfwriter-tls-support
Michael Friedrich [Fri, 24 May 2019 13:50:18 +0000 (15:50 +0200)]
Merge pull request #6813 from Icinga/feature/gelfwriter-tls-support

 Implement TLS support for the GelfWriter feature

5 years agoMerge pull request #7156 from Icinga/feature/itl-sleep
Michael Friedrich [Fri, 24 May 2019 13:42:46 +0000 (15:42 +0200)]
Merge pull request #7156 from Icinga/feature/itl-sleep

Implement sleep CheckCommand

5 years agoMerge pull request #7199 from Icinga/feature/docs-dev-style-guide
Michael Friedrich [Fri, 24 May 2019 13:08:36 +0000 (15:08 +0200)]
Merge pull request #7199 from Icinga/feature/docs-dev-style-guide

Docs: Add styleguide with development details

5 years agoDocs: Add styleguide with development details 7199/head
Michael Friedrich [Fri, 24 May 2019 12:17:18 +0000 (14:17 +0200)]
Docs: Add styleguide with development details

@htriem

5 years agoMerge pull request #7142 from Icinga/feature/boost-asio-nscp
Michael Friedrich [Thu, 23 May 2019 12:15:47 +0000 (14:15 +0200)]
Merge pull request #7142 from Icinga/feature/boost-asio-nscp

 check_nscp_api: Rewrite using Boost ASIO and Beast

5 years agoMerge branch 'support/2.10'
Michael Friedrich [Thu, 23 May 2019 11:57:54 +0000 (13:57 +0200)]
Merge branch 'support/2.10'

5 years agoRelease version 2.10.5
Michael Friedrich [Thu, 23 May 2019 11:56:44 +0000 (13:56 +0200)]
Release version 2.10.5

5 years agoRelease version 2.10.5 v2.10.5
Michael Friedrich [Thu, 23 May 2019 11:56:44 +0000 (13:56 +0200)]
Release version 2.10.5

5 years agocheck_nscp_api: Rewrite using Boost ASIO and Beast 7142/head
Michael Friedrich [Wed, 24 Apr 2019 16:11:40 +0000 (18:11 +0200)]
check_nscp_api: Rewrite using Boost ASIO and Beast

This includes a huge workaround for NSCP not sending
the status reason correctly. Therefore parsing the raw
data buffer is required, otherwise we could just use
Beast's builtin HTTP parser as everywhere else.

refs #7142
refs #7041

5 years agoMerge pull request #7143 from Icinga/feature/boost-asio-debug-console
Michael Friedrich [Wed, 22 May 2019 11:52:09 +0000 (13:52 +0200)]
Merge pull request #7143 from Icinga/feature/boost-asio-debug-console

Use I/O engine in debug console CLI command

5 years agoDebug Console: Use our new I/O engine for HTTP requests 7143/head
Michael Friedrich [Fri, 5 Apr 2019 07:30:26 +0000 (09:30 +0200)]
Debug Console: Use our new I/O engine for HTTP requests

refs #7041

5 years agoDocs: Remove EOL distributions (SLES11, Ubuntu 14)
Michael Friedrich [Tue, 9 Apr 2019 12:08:39 +0000 (14:08 +0200)]
Docs: Remove EOL distributions (SLES11, Ubuntu 14)

(cherry picked from commit 478f087a3aee1c70b96d69b4e0b4ebb9b985e032)

5 years agoAdjust docs for 2.10.x from cherry-picked commits
Michael Friedrich [Tue, 21 May 2019 14:46:31 +0000 (16:46 +0200)]
Adjust docs for 2.10.x from cherry-picked commits

5 years agoUpdate technical concepts docs on object authority and HA aware features
Michael Friedrich [Wed, 24 Oct 2018 13:47:10 +0000 (15:47 +0200)]
Update technical concepts docs on object authority and HA aware features

This includes are more detailed insight into how object authority calculation
works.

(cherry picked from commit 3fdc9669c671685eb267d28cf251e714de18af14)

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

(cherry picked from commit 0bd1d9a6f86df5072fe58bd6c5530c6ff1693310)

5 years agoMerge pull request #7190 from Icinga/bugfix/check-service-ambiguous-parameter
Michael Friedrich [Mon, 20 May 2019 14:09:42 +0000 (16:09 +0200)]
Merge pull request #7190 from Icinga/bugfix/check-service-ambiguous-parameter

Disable program option guessing in check_service

5 years agoMerge pull request #7189 from peteeckel/fix/check_service-7188
Michael Friedrich [Mon, 20 May 2019 14:08:19 +0000 (16:08 +0200)]
Merge pull request #7189 from peteeckel/fix/check_service-7188

Use --description instead of -d for check_service.exe

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 agoUse --description instead of -d for check_service.exe 7189/head
Peter Eckel [Fri, 17 May 2019 13:09:58 +0000 (15:09 +0200)]
Use --description instead of -d for check_service.exe

5 years agoMerge pull request #7185 from Icinga/bugfix/gelfwriter-wrong-log-facility
Michael Friedrich [Fri, 17 May 2019 06:33:34 +0000 (08:33 +0200)]
Merge pull request #7185 from Icinga/bugfix/gelfwriter-wrong-log-facility

Fix wrong facility in GelfWriter log message

5 years agoFix wrong facility in GelfWriter log message 7185/head
Michael Insel [Thu, 16 May 2019 17:50:40 +0000 (19:50 +0200)]
Fix wrong facility in GelfWriter log message

This fixes a wrong facility in GelfWriter log message (paused message).

5 years agoUse new I/O engine in GelfWriter 6813/head
Michael Insel [Thu, 16 May 2019 17:39:06 +0000 (19:39 +0200)]
Use new I/O engine in GelfWriter

5 years agoAdd documentaion for GelfWriter TLS support
Michael Insel [Sun, 2 Dec 2018 20:01:01 +0000 (21:01 +0100)]
Add documentaion for GelfWriter TLS support

This adds the documentation for the GelfWriter TLS support.

5 years agoImplement TLS support for the GelfWriter
Michael Insel [Fri, 30 Nov 2018 21:08:18 +0000 (22:08 +0100)]
Implement TLS support for the GelfWriter

This implements TLS support for the GelfWriter.

5 years agoDocs: Add Master-Master-Replication as option for mysql
Dirk Goetz [Thu, 9 May 2019 07:25:07 +0000 (09:25 +0200)]
Docs: Add Master-Master-Replication as option for mysql

(cherry picked from commit c4f1ad7abb454b94194424733241eaab07c33da8)

5 years agoDocs: Add initial sync for secondary HA masters, hints on IDO DB clusters
Michael Friedrich [Wed, 8 May 2019 16:16:54 +0000 (18:16 +0200)]
Docs: Add initial sync for secondary HA masters, hints on IDO DB clusters

refs #6492

(cherry picked from commit c2542710b7517bdbc3b14b7f5476e94a2785e581)

5 years agoDocs: Improve features chapter and add details on HA setups
Michael Friedrich [Wed, 8 May 2019 15:48:13 +0000 (17:48 +0200)]
Docs: Improve features chapter and add details on HA setups

refs #4855

(cherry picked from commit 07790e456b6993a272a7e7a91b33b05823492959)

5 years agoDocs: Add note for reachability calculation with checks disabled
Michael Friedrich [Wed, 8 May 2019 15:31:36 +0000 (17:31 +0200)]
Docs: Add note for reachability calculation with checks disabled

refs #6844

(cherry picked from commit 15326caf38e9c81d20e4fe6f1b6c9cb3327ac179)

5 years agoUpdate AUTHORS
Michael Friedrich [Thu, 16 May 2019 14:48:25 +0000 (16:48 +0200)]
Update AUTHORS

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

(cherry picked from commit 407e77883cc274fee19d44035d9812cb4258fb66)

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

(cherry picked from commit 997d84bfa0b8c53144590547bcffdb6d30695e9b)

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

(cherry picked from commit f44e847717d272833dfc185ef2117390ef5a9f89)

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

refs #6932

(cherry picked from commit 9b489cf9b9347fbce5f5f268d83bba556467e2e9)

5 years agoanother small adjustment by the way just to ensure the object on stack ist the same...
Elias Ohm [Wed, 1 May 2019 10:09:24 +0000 (12:09 +0200)]
another small adjustment by the way just to ensure the object on stack ist the same as the one serialized further in case the object does not implement locking on mutation (besides it's mor efficient to not fetch the same value twice)

(cherry picked from commit cdd843a998bfaa5028369a3fd6d5368bdc6ee568)

5 years agoadd some object locking to the Dump method (which could theoreticylly suffer from...
Elias Ohm [Wed, 1 May 2019 09:49:07 +0000 (11:49 +0200)]
add some object locking to the Dump method (which could theoreticylly suffer from same reace condition as serializer)

(cherry picked from commit 44ac6cf1ecd10f2bd5e9b837e78da5dc5257a180)

5 years agoLock Objects during serialization
Elias Ohm [Sun, 28 Apr 2019 20:13:19 +0000 (22:13 +0200)]
Lock Objects during serialization

old behaviour was to only lock arrays, dictionaries and namespaces but not other objects

(cherry picked from commit 91296c2a250b1aeb0976f252eba5ffdce93c8590)

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

(cherry picked from commit 5afda779435c848cf5a8411f713adc9891aa5092)

5 years agotry without initialization of frame Locals which are not used for permissions filter...
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

(cherry picked from commit c10ff9dd726da0485f99f8c8601a0feb95cfd28f)

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

(cherry picked from commit 53febdea819adf58b20a0141e1a1131658f1338c)

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

(cherry picked from commit bdadb53940f1187d60a4679675af164dbb63f37c)

5 years ago* use dedicated permissions namespace for scriptframe in filterutility to allow prope...
Elias Ohm [Fri, 12 Apr 2019 06:10:57 +0000 (08:10 +0200)]
* use dedicated permissions namespace for scriptframe in filterutility to allow proper parallel execution
  * fixes issue https://github.com/Icinga/icinga2/issues/6785 where permission checks get wrong result because permissions checks are done within a shared namespaces without using only unique keys
  * mitigates issue https://github.com/Icinga/icinga2/issues/6874 where segmentation faults occur because of concurrent access to non threadsafe parts of namespace (a fix for thread safety of namespaces which would be an alternative approach to get rid of these segfaults is out of scope of this fix as 6785 needs to be fixed anyway and this is the straight-forwards) way to fix that
* do the same for eventqueue (not certain whether events can be processed in parallel but I expect it is the case)

(cherry picked from commit 1e7cd4afc821a0592b535e4270ebb2fdc387a207)

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

refs #6737

(cherry picked from commit df25b183cb256440a53d1c2fc582b98ceb25d444)

5 years agoTimer::TimerThreadProc(): use C++11 lambda instead of bind()
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

(cherry picked from commit 7a8f8fd7349269cb2e0e670b8d2a44693e5c07c7)

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

refs #6737

(cherry picked from commit 622f68412440d4fa3ac1b347a929087073bc24f9)

5 years agoFix for double-free (and possibly other memory-corruption related) crashes at logrota...
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

(cherry picked from commit 52e3db279ab9ff348456234b8a033e703c6f7580)

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

(cherry picked from commit dd0c7a28ddc2fd0f78f3fbdb1d4651d29e604e1c)

5 years agoDocs: Use jo to format JSON body for API actions, esp. unix timestamps
Michael Friedrich [Thu, 9 May 2019 15:48:19 +0000 (17:48 +0200)]
Docs: Use jo to format JSON body for API actions, esp. unix timestamps

(cherry picked from commit 21225c6b48a084c3d96ee1e7c938d30e19a2e395)

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

fixes #7117

(cherry picked from commit 4197bc9bcd957a1edcf5cec80a9d03fcc4b6c313)

5 years agoDB IDO: Do not deactivate objects during application reload/restart
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

(cherry picked from commit 78e24c53f1564269f744de5efe50cb099cadbdde)