]> granicus.if.org Git - icinga2/log
icinga2
5 years agoFix the order of commands for adding EPEL to RHEL 7589/head
Thomas Widhalm [Thu, 24 Oct 2019 12:17:23 +0000 (14:17 +0200)]
Fix the order of commands for adding EPEL to RHEL

5 years agoClarify the installation of EPEL repository on CentOS vs RHEL
Thomas Widhalm [Thu, 24 Oct 2019 10:18:26 +0000 (12:18 +0200)]
Clarify the installation of EPEL repository on CentOS vs RHEL

5 years agoMerge pull request #7588 from Icinga/feature/upgrading-docs-bugfixes-2-11
Michael Friedrich [Thu, 24 Oct 2019 07:25:01 +0000 (09:25 +0200)]
Merge pull request #7588 from Icinga/feature/upgrading-docs-bugfixes-2-11

Docs: Add upgrading notes for 2.11.x bugfix releases

5 years agoDocs: Add upgrading notes for 2.11.x bugfix releases 7588/head
Michael Friedrich [Thu, 24 Oct 2019 07:18:19 +0000 (09:18 +0200)]
Docs: Add upgrading notes for 2.11.x bugfix releases

5 years agoMerge pull request #7458 from Icinga/feature/config-parser-cleanup
Michael Friedrich [Tue, 22 Oct 2019 15:29:59 +0000 (17:29 +0200)]
Merge pull request #7458 from Icinga/feature/config-parser-cleanup

Config parser: introduce optional_newlines

5 years agoMerge pull request #7584 from Icinga/bugfix/cluster-sync-checksums-timestamps
Michael Friedrich [Tue, 22 Oct 2019 15:22:27 +0000 (17:22 +0200)]
Merge pull request #7584 from Icinga/bugfix/cluster-sync-checksums-timestamps

Cluster Config Sync: Check the timestamp prior to config file checksums for changes

5 years agoMerge pull request #7541 from Icinga/bugfix/heredoc-eof
Michael Friedrich [Tue, 22 Oct 2019 15:19:27 +0000 (17:19 +0200)]
Merge pull request #7541 from Icinga/bugfix/heredoc-eof

Config lexer: complain on EOF in heredocs, i.e. {{{abc<EOF>

5 years agoCluster Config Sync: Check the timestamp prior to config file checksums 7584/head
Michael Friedrich [Tue, 22 Oct 2019 11:21:10 +0000 (13:21 +0200)]
Cluster Config Sync: Check the timestamp prior to config file checksums

Otherwise old configuration received from a secondary master/satellite
could always trigger a config change & reload.

5 years agoMerge pull request #7583 from azthec/patch-1
Michael Friedrich [Tue, 22 Oct 2019 10:18:31 +0000 (12:18 +0200)]
Merge pull request #7583 from azthec/patch-1

Minor doc fix

5 years agoUpdate 06-distributed-monitoring.md 7583/head
azthec [Tue, 22 Oct 2019 08:57:22 +0000 (09:57 +0100)]
Update 06-distributed-monitoring.md

5 years agoMerge pull request #7364 from Icinga/feature/expression-namespacevalue-intrusive...
Michael Friedrich [Tue, 22 Oct 2019 06:55:37 +0000 (08:55 +0200)]
Merge pull request #7364 from Icinga/feature/expression-namespacevalue-intrusive-pointers-7361

Replace classic shared pointers to Expression and NamespaceValue with intrusive ones

5 years agoReplace std::shared_ptr<NamespaceValue> with NamespaceValue::Ptr 7364/head
Alexander A. Klimov [Fri, 26 Jul 2019 12:45:11 +0000 (14:45 +0200)]
Replace std::shared_ptr<NamespaceValue> with NamespaceValue::Ptr

refs #7361

5 years agoReplace std::shared_ptr<Expression> with Expression::Ptr
Alexander A. Klimov [Fri, 26 Jul 2019 12:17:27 +0000 (14:17 +0200)]
Replace std::shared_ptr<Expression> with Expression::Ptr

refs #7361

5 years agoIntroduce SharedObject
Alexander A. Klimov [Fri, 26 Jul 2019 11:04:32 +0000 (13:04 +0200)]
Introduce SharedObject

refs #7361

5 years agoMerge pull request #7360 from Icinga/feature/std-shared_ptr
Michael Friedrich [Mon, 21 Oct 2019 15:02:28 +0000 (17:02 +0200)]
Merge pull request #7360 from Icinga/feature/std-shared_ptr

Replace some classic shared pointers with intrusive ones

5 years agoReplace std::shared_ptr<boost::asio::ssl::context> with Shared<boost::asio::ssl:... 7360/head
Alexander A. Klimov [Thu, 25 Jul 2019 14:45:39 +0000 (16:45 +0200)]
Replace std::shared_ptr<boost::asio::ssl::context> with Shared<boost::asio::ssl::context>::Ptr

5 years agoReplace std::shared_ptr<boost::asio::ip::tcp::acceptor> with Shared<boost::asio:...
Alexander A. Klimov [Thu, 25 Jul 2019 14:32:57 +0000 (16:32 +0200)]
Replace std::shared_ptr<boost::asio::ip::tcp::acceptor> with Shared<boost::asio::ip::tcp::acceptor>::Ptr

5 years agoReplace std::shared_ptr<AsioTcpStream> with Shared<AsioTcpStream>::Ptr
Alexander A. Klimov [Thu, 25 Jul 2019 12:55:22 +0000 (14:55 +0200)]
Replace std::shared_ptr<AsioTcpStream> with Shared<AsioTcpStream>::Ptr

5 years agoReplace std::shared_ptr<AsioTlsStream> with Shared<AsioTlsStream>::Ptr
Alexander A. Klimov [Thu, 25 Jul 2019 12:34:29 +0000 (14:34 +0200)]
Replace std::shared_ptr<AsioTlsStream> with Shared<AsioTlsStream>::Ptr

5 years agoIntroduce Shared<T>
Alexander A. Klimov [Thu, 25 Jul 2019 11:51:24 +0000 (13:51 +0200)]
Introduce Shared<T>

5 years agoMerge pull request #7457 from Icinga/feature/config-parser-malloc
Michael Friedrich [Thu, 17 Oct 2019 15:19:30 +0000 (17:19 +0200)]
Merge pull request #7457 from Icinga/feature/config-parser-malloc

Config parser: save some memory allocations

5 years agoMerge pull request #7578 from Icinga/feature/docs-upgrading-zones
Michael Friedrich [Thu, 17 Oct 2019 12:08:26 +0000 (14:08 +0200)]
Merge pull request #7578 from Icinga/feature/docs-upgrading-zones

Align the docs with GitHub details on Zone Inception

5 years agoAlign the docs with GitHub details on Zone Inception 7578/head
Michael Friedrich [Thu, 17 Oct 2019 12:06:48 +0000 (14:06 +0200)]
Align the docs with GitHub details on Zone Inception

5 years agoMerge pull request #7552 from Icinga/bugfix/cluster-sync-authoritative-file-old-versions
Michael Friedrich [Thu, 17 Oct 2019 11:50:47 +0000 (13:50 +0200)]
Merge pull request #7552 from Icinga/bugfix/cluster-sync-authoritative-file-old-versions

Avoid syncing .authorititative marker received from < 2.11 parent nodes

5 years agoMerge pull request #7564 from Foxeronie/patch-1
Michael Friedrich [Tue, 8 Oct 2019 11:32:52 +0000 (13:32 +0200)]
Merge pull request #7564 from Foxeronie/patch-1

doc typo: path to error.log

5 years agotypo for path to error.log 7564/head
Patrick [Tue, 8 Oct 2019 11:11:06 +0000 (13:11 +0200)]
typo for path to error.log

5 years agoAvoid syncing .authorititative marker received from < 2.11 parent nodes bugfix/cluster-sync-authoritative-file-old-versions 7552/head
Michael Friedrich [Wed, 2 Oct 2019 08:49:02 +0000 (10:49 +0200)]
Avoid syncing .authorititative marker received from < 2.11 parent nodes

5 years agoMerge pull request #7543 from Icinga/bugfix/docs-itl-memcached
Michael Friedrich [Fri, 27 Sep 2019 11:59:41 +0000 (13:59 +0200)]
Merge pull request #7543 from Icinga/bugfix/docs-itl-memcached

Docs: Fix URL for memcached ITL CheckCommand

5 years agoDocs: Fix URL for memcached ITL CheckCommand 7543/head
Michael Friedrich [Fri, 27 Sep 2019 09:42:26 +0000 (11:42 +0200)]
Docs: Fix URL for memcached ITL CheckCommand

fixes #7515

5 years agoConfig lexer: complain on EOF in heredocs, i.e. {{{abc<EOF> 7541/head
Alexander A. Klimov [Thu, 26 Sep 2019 11:06:22 +0000 (13:06 +0200)]
Config lexer: complain on EOF in heredocs, i.e. {{{abc<EOF>

5 years agoMerge pull request #7538 from Icinga/bugfix/dependency-ignore_on_error-7536
Michael Friedrich [Wed, 25 Sep 2019 10:12:22 +0000 (12:12 +0200)]
Merge pull request #7538 from Icinga/bugfix/dependency-ignore_on_error-7536

Dependency#OnAllConfigLoaded(): don't link *this with the child if *this is going to be dropped

5 years agoMerge pull request #7529 from Icinga/bugfix/activestageoverride-7521
Michael Friedrich [Wed, 25 Sep 2019 10:11:26 +0000 (12:11 +0200)]
Merge pull request #7529 from Icinga/bugfix/activestageoverride-7521

WarnOnImplicitlySetGlobalVar(): warn only on sins inside actual DSL code

5 years agoMerge pull request #7534 from Icinga/feature/next_update
Michael Friedrich [Wed, 25 Sep 2019 09:50:36 +0000 (11:50 +0200)]
Merge pull request #7534 from Icinga/feature/next_update

Introduce Checkable#next_update

5 years agoAdd docs for Checkable#next_update 7534/head
Michael Friedrich [Wed, 25 Sep 2019 09:44:20 +0000 (11:44 +0200)]
Add docs for Checkable#next_update

5 years agoDependency#OnAllConfigLoaded(): don't link *this with the child if *this is going... 7538/head
Alexander A. Klimov [Wed, 25 Sep 2019 09:30:50 +0000 (11:30 +0200)]
Dependency#OnAllConfigLoaded(): don't link *this with the child if *this is going to be dropped

refs #7536

5 years agoIntroduce Checkable#next_update
Alexander A. Klimov [Tue, 24 Sep 2019 15:54:20 +0000 (17:54 +0200)]
Introduce Checkable#next_update

5 years agoAdjust zones.d/README and just point to the docs
Michael Friedrich [Tue, 24 Sep 2019 10:57:32 +0000 (12:57 +0200)]
Adjust zones.d/README and just point to the docs

5 years agoWarnOnImplicitlySetGlobalVar(): warn only on sins inside actual DSL code 7529/head
Alexander A. Klimov [Mon, 23 Sep 2019 13:09:57 +0000 (15:09 +0200)]
WarnOnImplicitlySetGlobalVar(): warn only on sins inside actual DSL code

5 years agoMerge pull request #7527 from Icinga/bugfix/checkable-command-endpoint-zone
Michael Friedrich [Mon, 23 Sep 2019 08:16:42 +0000 (10:16 +0200)]
Merge pull request #7527 from Icinga/bugfix/checkable-command-endpoint-zone

Improve error message/docs for command endpoints requiring a zone

5 years agoUpdate wrong information in example config for zones.d 7527/head
Michael Friedrich [Mon, 23 Sep 2019 07:44:14 +0000 (09:44 +0200)]
Update wrong information in example config for zones.d

5 years agoImprove error message for command endpoint checkable's requiring a zone
Michael Friedrich [Mon, 23 Sep 2019 07:41:08 +0000 (09:41 +0200)]
Improve error message for command endpoint checkable's requiring a zone

fixes #7514

5 years agoMerge pull request #7526 from Icinga/feature/docs-upgrading-2-11
Michael Friedrich [Mon, 23 Sep 2019 07:40:33 +0000 (09:40 +0200)]
Merge pull request #7526 from Icinga/feature/docs-upgrading-2-11

Docs: Add upgrading/troubleshooting details for repos, config sync, agents

5 years agoUpgrading/Troubleshooting Docs: Agent Hosts with Command Endpoint require a Zone 7526/head
Michael Friedrich [Mon, 23 Sep 2019 07:17:22 +0000 (09:17 +0200)]
Upgrading/Troubleshooting Docs: Agent Hosts with Command Endpoint require a Zone

refs #7514

5 years agoUpgrading/Troubleshooting Docs: Add details about Zone inclusion and Zone Inception
Michael Friedrich [Mon, 23 Sep 2019 06:55:52 +0000 (08:55 +0200)]
Upgrading/Troubleshooting Docs: Add details about Zone inclusion and Zone Inception

refs #7519

5 years agoUpgrading Docs: Add a repository requirement table to clarify things
Michael Friedrich [Mon, 23 Sep 2019 06:38:18 +0000 (08:38 +0200)]
Upgrading Docs: Add a repository requirement table to clarify things

Imho `On platforms where EPEL or Backports cannot satisfy this dependency`
is enough, but GH is flooded with issues.

https://github.com/Icinga/icinga2/issues/7523
https://github.com/Icinga/icinga2/issues/7524
https://github.com/Icinga/icinga2/issues/7522
https://github.com/Icinga/icinga2/issues/7512
https://github.com/Icinga/icinga2/issues/7511
https://github.com/Icinga/icinga-packaging/issues/150
https://github.com/Icinga/icinga-packaging/issues/149
https://github.com/Icinga/icinga-packaging/issues/148
https://github.com/Icinga/icinga-packaging/issues/146

5 years agoRELEASE.md: Fix formatting
Michael Friedrich [Fri, 20 Sep 2019 10:18:44 +0000 (12:18 +0200)]
RELEASE.md: Fix formatting

5 years agoMerge pull request #7518 from sebastic/patch-1
Michael Friedrich [Fri, 20 Sep 2019 07:11:59 +0000 (09:11 +0200)]
Merge pull request #7518 from sebastic/patch-1

Fix spelling error

5 years agoFix spelling error 7518/head
Bas Couwenberg [Fri, 20 Sep 2019 05:17:03 +0000 (07:17 +0200)]
Fix spelling error

Another occurrence of:

 * UNKNWON -> UNKNWON

Ref: #7365

5 years agoUpdate RELEASE docs
Michael Friedrich [Thu, 19 Sep 2019 11:49:31 +0000 (13:49 +0200)]
Update RELEASE docs

5 years agoRelease version 2.11.0 v2.11.0
Michael Friedrich [Thu, 19 Sep 2019 07:53:37 +0000 (09:53 +0200)]
Release version 2.11.0

5 years agoMerge branch 'master' into support/2.11
Michael Friedrich [Wed, 18 Sep 2019 10:28:40 +0000 (12:28 +0200)]
Merge branch 'master' into support/2.11

5 years agoMerge pull request #7507 from Icinga/feature/csr-auto-signing-debug-log
Michael Friedrich [Wed, 18 Sep 2019 10:27:16 +0000 (12:27 +0200)]
Merge pull request #7507 from Icinga/feature/csr-auto-signing-debug-log

CSR Auto-signing: Add debug logging for skipped signing

5 years agoCSR Auto-signing: Add debug logging for skipped signing 7507/head
Michael Friedrich [Wed, 18 Sep 2019 09:53:58 +0000 (11:53 +0200)]
CSR Auto-signing: Add debug logging for skipped signing

5 years agoMerge pull request #7504 from Icinga/feature/docs-last-bits-for-2-11
Michael Friedrich [Tue, 17 Sep 2019 10:59:16 +0000 (12:59 +0200)]
Merge pull request #7504 from Icinga/feature/docs-last-bits-for-2-11

Docs: Update product URLs and missing bits

5 years agoDocs: Align local mkdocs config 7504/head
Michael Friedrich [Tue, 17 Sep 2019 10:54:43 +0000 (12:54 +0200)]
Docs: Align local mkdocs config

5 years agoDocs: Fix image locations for installation chapter
Michael Friedrich [Tue, 17 Sep 2019 10:44:18 +0000 (12:44 +0200)]
Docs: Fix image locations for installation chapter

5 years agoDocs: Align content of README from About chapter
Michael Friedrich [Tue, 17 Sep 2019 10:43:13 +0000 (12:43 +0200)]
Docs: Align content of README from About chapter

5 years agoDocs: Add the Director as migration strategy from Icinga 1.x
Michael Friedrich [Tue, 17 Sep 2019 10:29:03 +0000 (12:29 +0200)]
Docs: Add the Director as migration strategy from Icinga 1.x

5 years agoDocs: Update outdated addons chapter with supported products
Michael Friedrich [Tue, 17 Sep 2019 10:07:03 +0000 (12:07 +0200)]
Docs: Update outdated addons chapter with supported products

5 years agoDocs: Add certificate & vSphere modules to service monitoring chapter
Michael Friedrich [Tue, 17 Sep 2019 10:04:42 +0000 (12:04 +0200)]
Docs: Add certificate & vSphere modules to service monitoring chapter

5 years agoDocs: Add blog post URL for Director automation to configuration chapter
Michael Friedrich [Tue, 17 Sep 2019 10:04:10 +0000 (12:04 +0200)]
Docs: Add blog post URL for Director automation to configuration chapter

5 years agoDocs: Align product URLs in features chapter
Michael Friedrich [Tue, 17 Sep 2019 09:36:23 +0000 (11:36 +0200)]
Docs: Align product URLs in features chapter

5 years agoDocs: Align product URLs to icinga.com in distributed chapter
Michael Friedrich [Tue, 17 Sep 2019 09:34:01 +0000 (11:34 +0200)]
Docs: Align product URLs to icinga.com in distributed chapter

5 years agoDocs: Update product URLs and improve configuration introduction
Michael Friedrich [Tue, 17 Sep 2019 09:32:38 +0000 (11:32 +0200)]
Docs: Update product URLs and improve configuration introduction

There's more work underway, but after 2.11.

5 years agoDocs: Fix broken support matrix URL in Installation chapter
Michael Friedrich [Tue, 17 Sep 2019 06:51:54 +0000 (08:51 +0200)]
Docs: Fix broken support matrix URL in Installation chapter

5 years agoDocs: Update URLs and content in About chapter
Michael Friedrich [Tue, 17 Sep 2019 06:51:32 +0000 (08:51 +0200)]
Docs: Update URLs and content in About chapter

5 years agoMerge pull request #7503 from Icinga/bugfix/api-ciphers-el6
Michael Friedrich [Mon, 16 Sep 2019 12:54:57 +0000 (14:54 +0200)]
Merge pull request #7503 from Icinga/bugfix/api-ciphers-el6

API: Add AES128-GCM-SHA256 compatible cipher for el6

5 years agoAPI: Add AES128-GCM-SHA256 compatible cipher for el6 7503/head
Michael Friedrich [Mon, 16 Sep 2019 12:19:22 +0000 (14:19 +0200)]
API: Add AES128-GCM-SHA256 compatible cipher for el6

fixes #7501

5 years agoMerge pull request #7502 from Icinga/feature/docs-debugger-2-11
Michael Friedrich [Mon, 16 Sep 2019 08:36:52 +0000 (10:36 +0200)]
Merge pull request #7502 from Icinga/feature/docs-debugger-2-11

Docs: Update debugging instructions for 2.11

5 years agoDocs: Update debugging instructions for 2.11 7502/head
Michael Friedrich [Fri, 13 Sep 2019 15:05:56 +0000 (17:05 +0200)]
Docs: Update debugging instructions for 2.11

5 years agoMerge pull request #7496 from waja/docu_fix
Michael Friedrich [Fri, 13 Sep 2019 06:42:12 +0000 (08:42 +0200)]
Merge pull request #7496 from waja/docu_fix

Docu fix

5 years agoThis should also apply if host.vars.notification.mail is not defined, but service... 7496/head
Jan Wagner [Thu, 12 Sep 2019 15:20:15 +0000 (17:20 +0200)]
This should also apply if host.vars.notification.mail is not defined, but service.vars.notification.mail is

5 years agomail-service-notification may make more sense for a service apply
Jan Wagner [Thu, 12 Sep 2019 15:18:35 +0000 (17:18 +0200)]
mail-service-notification may make more sense for a service apply

5 years agoFixing syntax, else if shoudl work
Jan Wagner [Thu, 12 Sep 2019 15:17:48 +0000 (17:17 +0200)]
Fixing syntax, else if shoudl work

5 years agoMerge pull request #7495 from Icinga/bugfix/http-buffer-revert
Michael Friedrich [Thu, 12 Sep 2019 15:03:12 +0000 (17:03 +0200)]
Merge pull request #7495 from Icinga/bugfix/http-buffer-revert

Revert: Always reset Boost beast buffer in HttpServerConnection#ProcessMessages #7476

5 years agoRevert: Always reset Boost beast buffer in HttpServerConnection#ProcessMessages ... 7495/head
Michael Friedrich [Thu, 12 Sep 2019 15:00:17 +0000 (17:00 +0200)]
Revert: Always reset Boost beast buffer in HttpServerConnection#ProcessMessages #7476

Not a simple revert but also adds a comment for the buffer.

refs #7476

5 years agoMerge pull request #7480 from Icinga/feature/docs-windows-dev
Michael Friedrich [Thu, 12 Sep 2019 14:05:32 +0000 (16:05 +0200)]
Merge pull request #7480 from Icinga/feature/docs-windows-dev

Dev Docs: Update Windows to Visual Studio 2019

5 years agoDocs: Update Windows for VS 2019, add CI details 7480/head
Michael Friedrich [Thu, 12 Sep 2019 13:49:48 +0000 (15:49 +0200)]
Docs: Update Windows for VS 2019, add CI details

5 years agoMerge pull request #7491 from Icinga/bugfix/boost-asio-coroutine-exception-wrapper
Michael Friedrich [Mon, 9 Sep 2019 15:48:12 +0000 (17:48 +0200)]
Merge pull request #7491 from Icinga/bugfix/boost-asio-coroutine-exception-wrapper

Introduce IoEngine::SpawnCoroutine wrapping asio::spawn and Boost exceptions

5 years agoDev: Fix CMake generator platform for VS 2019 in PS scripts
Michael Friedrich [Mon, 9 Sep 2019 15:11:26 +0000 (17:11 +0200)]
Dev: Fix CMake generator platform for VS 2019 in PS scripts

5 years agoDev Docs: Update Windows to Visual Studio 2019
Michael Friedrich [Fri, 6 Sep 2019 07:25:32 +0000 (09:25 +0200)]
Dev Docs: Update Windows to Visual Studio 2019

5 years agoIntroduce IoEngine::SpawnCoroutine wrapping asio::spawn and Boost exceptions 7491/head
Michael Friedrich [Fri, 6 Sep 2019 13:11:55 +0000 (15:11 +0200)]
Introduce IoEngine::SpawnCoroutine wrapping asio::spawn and Boost exceptions

This is required to

- catch all exceptions and wrap them into Boost exceptions. They
are the only ones allowed with Boost.Coroutine.
- set a dedicated coroutine stack size for Windows.

refs #7431

5 years agoMerge pull request #7490 from Icinga/bugfix/asio-deprecated-io-service
Michael Friedrich [Mon, 9 Sep 2019 14:05:38 +0000 (16:05 +0200)]
Merge pull request #7490 from Icinga/bugfix/asio-deprecated-io-service

Quality: Replace deprecated Boost IO service code

5 years agoQuality: Replace deprecated Boost IO service code 7490/head
Michael Friedrich [Mon, 9 Sep 2019 13:11:38 +0000 (15:11 +0200)]
Quality: Replace deprecated Boost IO service code

https://github.com/boostorg/asio/issues/110
https://www.boost.org/doc/libs/1_66_0/doc/html/boost_asio/example/cpp03/services/logger_service.hpp

5 years agoMerge pull request #7487 from Icinga/bugfix/http-api-shutdown-avoid-io
Michael Friedrich [Mon, 9 Sep 2019 12:21:24 +0000 (14:21 +0200)]
Merge pull request #7487 from Icinga/bugfix/http-api-shutdown-avoid-io

API: Avoid I/O on shutdown

5 years agoHttpServerConnection#ProcessMessages(): avoid I/O if shutting down 7487/head
Alexander A. Klimov [Mon, 9 Sep 2019 11:37:44 +0000 (13:37 +0200)]
HttpServerConnection#ProcessMessages(): avoid I/O if shutting down

refs #7431

5 years agoHttpServerConnection#ProcessMessages(): avoid I/O after boost::asio::error::operation...
Alexander A. Klimov [Mon, 9 Sep 2019 11:29:47 +0000 (13:29 +0200)]
HttpServerConnection#ProcessMessages(): avoid I/O after boost::asio::error::operation_aborted

refs #7431

5 years ago{HttpServer,JsonRpc}Connection#Disconnect(): cancel I/O ops ASAP
Alexander A. Klimov [Mon, 9 Sep 2019 11:10:12 +0000 (13:10 +0200)]
{HttpServer,JsonRpc}Connection#Disconnect(): cancel I/O ops ASAP

refs #7431

5 years agoMerge pull request #7485 from Icinga/bugfix/api-disconnect-defer
Michael Friedrich [Mon, 9 Sep 2019 09:41:34 +0000 (11:41 +0200)]
Merge pull request #7485 from Icinga/bugfix/api-disconnect-defer

Avoid the Defer-Disconnect destructor pattern with Boost.Coroutines

5 years agoMerge pull request #7486 from Icinga/bugfix/http-header-error-handling
Michael Friedrich [Mon, 9 Sep 2019 09:40:44 +0000 (11:40 +0200)]
Merge pull request #7486 from Icinga/bugfix/http-header-error-handling

Rewrite error handling in HttpServerConnection#EnsureValidHeaders()

5 years agoRewrite error handling in HttpServerConnection#EnsureValidHeaders() 7486/head
Michael Friedrich [Fri, 6 Sep 2019 12:19:53 +0000 (14:19 +0200)]
Rewrite error handling in HttpServerConnection#EnsureValidHeaders()

Throwing local exceptions unnecessarily pollutes the exception
stack with immediate unwinding. Avoid this pattern at all cost within
Boost.Coroutines. MSVC may handle exceptions differently and cause
problems with stack unwinding.

refs #7431
refs #7351

5 years agoAvoid the Defer-Disconnect destructor pattern with Boost.Coroutines 7485/head
Michael Friedrich [Mon, 9 Sep 2019 08:53:37 +0000 (10:53 +0200)]
Avoid the Defer-Disconnect destructor pattern with Boost.Coroutines

Exceptions in Disconnect() might be thrown (this has been reworked
into error_code locally) which are swallowed inside the Destructor
for being dangerous. On the other hand, swallowing them may
corrupt the stack unwinding operation from the coroutine layer.

The best is to avoid Defer inside lib/remote and call Disconnect()
directly after breaking from other operations.

refs #7351
refs #7431

5 years agoMerge pull request #7483 from Icinga/bugfix/jsonrpc-boost-asio-coroutine-exceptions
Michael Friedrich [Mon, 9 Sep 2019 08:21:21 +0000 (10:21 +0200)]
Merge pull request #7483 from Icinga/bugfix/jsonrpc-boost-asio-coroutine-exceptions

JsonRpcConnection: Don't swallow exceptions in Boost.Coroutine

5 years agoMerge pull request #7481 from Icinga/feature/check-network-perfdata
Michael Friedrich [Mon, 9 Sep 2019 07:47:37 +0000 (09:47 +0200)]
Merge pull request #7481 from Icinga/feature/check-network-perfdata

Add summarized performance data to check_network

5 years agoJsonRpcConnection: Don't swallow exceptions in Boost.Coroutine 7483/head
Michael Friedrich [Mon, 9 Sep 2019 07:26:12 +0000 (09:26 +0200)]
JsonRpcConnection: Don't swallow exceptions in Boost.Coroutine

refs #7351

5 years agoAdd summarized performance data to check_network 7481/head
Michael Insel [Fri, 6 Sep 2019 18:36:47 +0000 (20:36 +0200)]
Add summarized performance data to check_network

This adds two new performance data values to check_network, 'network_in'
and 'network_out'.

On systems with multiple network interfaces the 'network_in' value holds
the summarized input bytes and the 'network_out' value holds the
summarized output bytes.

5 years agoMerge pull request #7479 from Icinga/feature/windows-dev
Michael Friedrich [Fri, 6 Sep 2019 10:52:47 +0000 (12:52 +0200)]
Merge pull request #7479 from Icinga/feature/windows-dev

Build: Add Powershell script for development config for building Windows debug packages

5 years agoBuild: Add Powershell script for development config for building Windows debug packages 7479/head
Michael Friedrich [Fri, 6 Sep 2019 08:51:06 +0000 (10:51 +0200)]
Build: Add Powershell script for development config for building Windows debug packages

5 years agoMerge pull request #7477 from Icinga/bugfix/api-boost-exceptions-errors
Michael Friedrich [Fri, 6 Sep 2019 08:22:42 +0000 (10:22 +0200)]
Merge pull request #7477 from Icinga/bugfix/api-boost-exceptions-errors

HttpServerConnection: Prefer error codes over Boost exceptions

5 years agoHttpServerConnection: Prefer error codes over Boost exceptions 7477/head
Michael Friedrich [Fri, 6 Sep 2019 08:06:17 +0000 (10:06 +0200)]
HttpServerConnection: Prefer error codes over Boost exceptions

When run within a coroutine, exceptions on Windows may influence
bad behaviour here. Instead, we'll check for the error code
and extract the message from memory. In contrast to exceptions
which are stored on the stack frame and then return, this costs
a little more memory but simplifies the logic.

This doesn't fix the linked issue, but is related to the analysis.

refs #7431