]>
granicus.if.org Git - icinga2/log
Michael Friedrich [Fri, 13 Sep 2019 15:05:56 +0000 (17:05 +0200)]
Docs: Update debugging instructions for 2.11
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
Michael Friedrich [Thu, 12 Sep 2019 13:49:48 +0000 (15:49 +0200)]
Docs: Update Windows for VS 2019, add CI details
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
Michael Friedrich [Mon, 9 Sep 2019 15:11:26 +0000 (17:11 +0200)]
Dev: Fix CMake generator platform for VS 2019 in PS scripts
Michael Friedrich [Fri, 6 Sep 2019 07:25:32 +0000 (09:25 +0200)]
Dev Docs: Update Windows to Visual Studio 2019
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
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
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
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
Alexander A. Klimov [Mon, 9 Sep 2019 11:37:44 +0000 (13:37 +0200)]
HttpServerConnection#ProcessMessages(): avoid I/O if shutting down
refs #7431
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
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
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
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()
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
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
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
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
Michael Friedrich [Mon, 9 Sep 2019 07:26:12 +0000 (09:26 +0200)]
JsonRpcConnection: Don't swallow exceptions in Boost.Coroutine
refs #7351
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.
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
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
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
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
Michael Friedrich [Fri, 6 Sep 2019 07:56:29 +0000 (09:56 +0200)]
Merge pull request #7476 from Icinga/bugfix/api-beast-buffer
Always reset Boost beast buffer in HttpServerConnection#ProcessMessages
Michael Friedrich [Fri, 6 Sep 2019 07:31:16 +0000 (09:31 +0200)]
Always reset Boost beast buffer in HttpServerConnection#ProcessMessages
refs #7431
Michael Friedrich [Fri, 6 Sep 2019 07:24:34 +0000 (09:24 +0200)]
Adjust code comment for Logger->Flush() on Windows
Michael Friedrich [Mon, 2 Sep 2019 13:10:35 +0000 (15:10 +0200)]
Ensure that issue templates are more readable
Michael Friedrich [Mon, 2 Sep 2019 07:36:47 +0000 (09:36 +0200)]
Merge pull request #7467 from Icinga/feature/docs-development-2-11
Docs: Update Linux and Windows Dev instructions for 2.11
Michael Friedrich [Mon, 2 Sep 2019 07:20:56 +0000 (09:20 +0200)]
Docs: Update dev chapter for Debian Buster
Michael Friedrich [Sun, 1 Sep 2019 09:08:15 +0000 (11:08 +0200)]
Docs: Update Boost setup instructions for Windows dev environment
Michael Friedrich [Fri, 30 Aug 2019 14:37:09 +0000 (16:37 +0200)]
Merge pull request #7464 from Icinga/feature/docs-windows-agent-versions
Docs: Update supported Windows agent versions
Michael Friedrich [Fri, 30 Aug 2019 13:18:27 +0000 (15:18 +0200)]
Docs: Sync Vagrant box dev instructions with development docs
Michael Friedrich [Fri, 30 Aug 2019 12:21:19 +0000 (14:21 +0200)]
Merge pull request #7463 from Icinga/feature/docs-powershell
Docs: Prefer the Powershell commands on Windows
Michael Friedrich [Fri, 30 Aug 2019 12:11:51 +0000 (14:11 +0200)]
Docs: Update supported Windows agent versions
Michael Friedrich [Fri, 30 Aug 2019 12:04:40 +0000 (14:04 +0200)]
Docs: Add Windows debugging
Michael Friedrich [Fri, 30 Aug 2019 12:04:05 +0000 (14:04 +0200)]
Docs: Prefer the Powershell commands on Windows
Michael Friedrich [Fri, 30 Aug 2019 07:04:03 +0000 (09:04 +0200)]
Merge pull request #7459 from Icinga/feature/expose-problem-handled-counts
Metrics: Expose problem/handled counts for hosts/services
Michael Friedrich [Thu, 29 Aug 2019 15:04:23 +0000 (17:04 +0200)]
Metrics: Expose problem/handled counts for hosts/services
With the addition of problem/handled as checkable runtime
attributes in #7096 we should also expose them via CIB
into
- icinga check
- /v1/status/CIB
- IcingaApplication runtime macros
This originates from a request by @phil-or at the recent
Icinga meetup in Linz.
Michael Friedrich [Wed, 28 Aug 2019 07:16:19 +0000 (09:16 +0200)]
Merge pull request #7356 from Icinga/bugfix/influxdbwriter-clone
InfluxdbWriter: clone less
Michael Friedrich [Wed, 28 Aug 2019 06:59:28 +0000 (08:59 +0200)]
Merge pull request #7451 from Icinga/bugfix/update-docs
Update docs: Fix online URL, cipher list
Michael Friedrich [Wed, 28 Aug 2019 06:59:14 +0000 (08:59 +0200)]
Merge pull request #7445 from Icinga/bugfix/ddos-reconnect-7444
JsonRpcConnection#Disconnect(): unregister the connection ASAP
Michael Friedrich [Tue, 27 Aug 2019 14:47:58 +0000 (16:47 +0200)]
Update default cipher_list in upgrading docs
Michael Friedrich [Tue, 27 Aug 2019 14:47:07 +0000 (16:47 +0200)]
Update doc URL for the API info handler at /v1
Michael Friedrich [Tue, 27 Aug 2019 14:46:51 +0000 (16:46 +0200)]
Update doc URL references for the DB IDO feature
Michael Friedrich [Tue, 27 Aug 2019 13:15:18 +0000 (15:15 +0200)]
Merge pull request #7450 from Icinga/feature/windows-exe-icon
Windows binary: Also update the exe icon
Michael Friedrich [Tue, 27 Aug 2019 13:12:22 +0000 (15:12 +0200)]
Windows binary: Also update the exe icon
A thousand places for everything.
Michael Friedrich [Tue, 27 Aug 2019 12:53:29 +0000 (14:53 +0200)]
Merge pull request #7449 from Icinga/feature/warn-set-global-var
DSL: warn on x=y if x is a global variable
Michael Friedrich [Tue, 27 Aug 2019 12:51:30 +0000 (14:51 +0200)]
Merge pull request #7346 from Icinga/feature/check-plugins-code-page-7110
DaemonCommand#Run(): set code page to UTF-8
Michael Friedrich [Tue, 27 Aug 2019 11:58:02 +0000 (13:58 +0200)]
Merge pull request #7447 from Icinga/bugfix/nscp-json
check_nscp_api: read HTTP response via Boost.Beast
Alexander A. Klimov [Tue, 27 Aug 2019 11:34:10 +0000 (13:34 +0200)]
ITL: set globals.NscpPath explicitly
Alexander A. Klimov [Tue, 27 Aug 2019 11:19:05 +0000 (13:19 +0200)]
DSL: warn on x=y if x is a global variable
Michael Friedrich [Tue, 27 Aug 2019 11:04:03 +0000 (13:04 +0200)]
Merge pull request #7434 from Icinga/bugfix/cmake-aix
CMake: Fix CXX flags for AIX
Michael Friedrich [Tue, 27 Aug 2019 11:03:25 +0000 (13:03 +0200)]
Merge pull request #7435 from Icinga/bugfix/cmake-lto
CMake: Fix LTO flags for shared linking
Michael Friedrich [Tue, 27 Aug 2019 11:02:51 +0000 (13:02 +0200)]
Merge pull request #7437 from m4k5ym/check_uptime
Add check_uptime to ITL
Alexander A. Klimov [Mon, 26 Aug 2019 15:48:36 +0000 (17:48 +0200)]
check_nscp_api: fix missing HTTP response reason
Alexander A. Klimov [Mon, 26 Aug 2019 13:57:10 +0000 (15:57 +0200)]
check_nscp_api: read HTTP response via Boost.Beast
Max Deparade [Thu, 22 Aug 2019 13:03:11 +0000 (15:03 +0200)]
Adding check_uptime to itl
Alexander A. Klimov [Fri, 23 Aug 2019 15:14:13 +0000 (17:14 +0200)]
JsonRpcConnection#Disconnect(): unregister the connection ASAP
refs #7444
Michael Friedrich [Tue, 20 Aug 2019 18:52:51 +0000 (20:52 +0200)]
CMake: Fix LTO flags for shared linking
Michael Friedrich [Tue, 20 Aug 2019 13:46:45 +0000 (15:46 +0200)]
CMake: Fix CXX flags for AIX
Michael Friedrich [Mon, 19 Aug 2019 13:49:35 +0000 (15:49 +0200)]
Merge pull request #7428 from Icinga/feature/itl-sar-perf
ITL: Add sar-perf
Michael Friedrich [Fri, 16 Aug 2019 11:01:34 +0000 (13:01 +0200)]
ITL: Add sar-perf
Michael Friedrich [Fri, 16 Aug 2019 11:44:25 +0000 (13:44 +0200)]
Merge pull request #7422 from Icinga/bugfix/current_concurrent_checks-7416
Correct current_concurrent_checks to actually running checks
Alexander A. Klimov [Wed, 14 Aug 2019 15:43:06 +0000 (17:43 +0200)]
Correct current_concurrent_checks to actually running checks
refs #7416
Michael Friedrich [Thu, 15 Aug 2019 08:51:31 +0000 (10:51 +0200)]
Merge pull request #7421 from Icinga/feature/threadpool-metric
Expose metric current_pending_callbacks
Michael Friedrich [Thu, 15 Aug 2019 08:23:22 +0000 (10:23 +0200)]
Merge pull request #7423 from Icinga/bugfix/cluster-config-object-create-ignore-on-error
Fix and improve logging for runtime object sync
Michael Friedrich [Thu, 15 Aug 2019 07:29:05 +0000 (09:29 +0200)]
Fix and improve logging for runtime object sync
config::UpdateObject would create a new object, but this may
have been silently ignored with 'ignore_on_error' - downtimes, etc.
Since we cannot simply fetch the error from inside the config compiler,
we'd just check whether there's a config object created at this stage.
This happens synchronously, and once there is, log something.
The previous code always logged the creation, even if the downtime
was ignored, e.g. when the first master sent one for local host objects.
This commit also adds more details: identity, endpoint, zone to extract
the MessageOrigin details into log messages for better troubleshooting
and debugging.
refs #7198
Alexander A. Klimov [Wed, 14 Aug 2019 15:22:27 +0000 (17:22 +0200)]
Expose metric current_pending_callbacks
Alexander A. Klimov [Wed, 14 Aug 2019 15:12:59 +0000 (17:12 +0200)]
Introduce ThreadPool#GetPending()
Michael Friedrich [Wed, 14 Aug 2019 14:51:50 +0000 (16:51 +0200)]
Merge pull request #7420 from Icinga/feature/docs-tech-cluster-routing
Docs: Add cluster message routing details
Michael Friedrich [Wed, 14 Aug 2019 14:42:25 +0000 (16:42 +0200)]
Docs: Add cluster message routing details
refs #7198
Michael Friedrich [Wed, 14 Aug 2019 14:29:08 +0000 (16:29 +0200)]
Merge pull request #7419 from Icinga/bugfix/downtime-loop-activate-origin
Fix object create/delete config object cluster loop (missing message origin)
Michael Friedrich [Wed, 14 Aug 2019 11:49:57 +0000 (13:49 +0200)]
Merge pull request #7418 from Icinga/bugfix/icinga-check-version-compare
Fix minimum version parsing in the 'icinga' check
Michael Friedrich [Wed, 14 Aug 2019 11:15:05 +0000 (13:15 +0200)]
Properly parse the Icinga version for minimum version in the 'icinga' check
fixes #7415
Michael Friedrich [Wed, 14 Aug 2019 11:14:43 +0000 (13:14 +0200)]
Add unit test for Utility::CompareVersion
Michael Friedrich [Wed, 14 Aug 2019 09:22:55 +0000 (11:22 +0200)]
Add Utility::ParseVersion() and unit tests
This now uses a regex to extract the short version
similar to how Icinga Web 2 does it.
Additional unit tests prove the rule.
Michael Friedrich [Tue, 13 Aug 2019 14:09:26 +0000 (16:09 +0200)]
Fix cookie with ActivateItems
Michael Friedrich [Tue, 13 Aug 2019 12:53:06 +0000 (14:53 +0200)]
Fix message origin for runtime created config object (create/delete events)
Michael Friedrich [Mon, 12 Aug 2019 13:41:08 +0000 (15:41 +0200)]
Docs: Fix URL in Windows setup wizard
Michael Friedrich [Mon, 12 Aug 2019 09:02:33 +0000 (11:02 +0200)]
Merge pull request #7409 from Icinga/bugfix/cmake-target-arch
CMake: If target arch cannot be detected, don't throw an error
Michael Friedrich [Thu, 8 Aug 2019 17:26:10 +0000 (19:26 +0200)]
CMake: If target arch cannot be detected, don't throw an error
This only happens when ccache is improperly in use and -dumpmachine
doesn't work. Not on our ARM build platform.
Michael Friedrich [Thu, 8 Aug 2019 09:10:40 +0000 (11:10 +0200)]
Merge pull request #7406 from dgoetz/bugfix/doc_itl_icinga
Docs: Add a note to icinga check about failed reload detection
Dirk Goetz [Thu, 8 Aug 2019 08:58:18 +0000 (10:58 +0200)]
Docs: Add a note to icinga check about failed reload detection
Michael Friedrich [Wed, 7 Aug 2019 15:32:38 +0000 (17:32 +0200)]
Merge pull request #7404 from Icinga/bugfix/livestatus-interval
Explicitly write the 1.x legacy attribute 'interval_length' for Livestatus
Michael Friedrich [Wed, 7 Aug 2019 15:15:24 +0000 (17:15 +0200)]
Merge pull request #7353 from Icinga/bugfix/influxdbwriter-skip-tags-7341
InfluxdbWriter: skip non-resolvable tags
Michael Friedrich [Wed, 7 Aug 2019 14:36:15 +0000 (16:36 +0200)]
Merge pull request #7403 from Icinga/feature/docs-agents
Enhance Agent best practices throughout the documentation
Michael Friedrich [Wed, 7 Aug 2019 13:13:07 +0000 (15:13 +0200)]
Enhance Agent best practices throughout the documentation
- Highlight the Icinga agent
- Prefer SSH as fallback and add more detailed setup instructions
- Improve SNMP and add traps right after
- Explain nscp and wmi with URLs
- Drop discouraged nrpe instructions (checks and PNP customizations)
- Update Dependency examples with the Icinga Agent
This sources from recent discussions on community.icinga.com
and follows the updates with the distributed monitoring chapter for 2.11.
Michael Friedrich [Wed, 7 Aug 2019 13:22:09 +0000 (15:22 +0200)]
Explicitly write the 1.x legacy attribute 'interval_length' for Livestatus
fixes #7402
Michael Friedrich [Wed, 7 Aug 2019 11:44:07 +0000 (13:44 +0200)]
Merge pull request #7397 from Icinga/bugfix/umbrella-logging-systemd-7394
icinga2 daemon --close-stdio: keep console log open during first config validation
Michael Friedrich [Wed, 7 Aug 2019 10:03:17 +0000 (12:03 +0200)]
Log a hint after failed config validation for systemd users
Michael Friedrich [Tue, 6 Aug 2019 13:25:44 +0000 (15:25 +0200)]
Merge pull request #7400 from Icinga/bugfix/cib-stats-concurrent-checks
Fix missing stats for current_concurrent_checks via REST API
Michael Friedrich [Tue, 6 Aug 2019 13:06:05 +0000 (15:06 +0200)]
Merge pull request #7399 from Icinga/feature/log-downtimes-acks
Improve logging for downtime/ack events (add, remove, expire)
Michael Friedrich [Tue, 6 Aug 2019 12:51:10 +0000 (14:51 +0200)]
Fix missing stats for current_concurrent_checks via REST API
It was added inside the 'icinga' check task, but not for the REST API.
Thanks for asking, @Thomas-Gelf
Michael Friedrich [Tue, 6 Aug 2019 11:28:13 +0000 (13:28 +0200)]
Improve logging for downtime/ack events (add, remove, expire)
fixes #7374
Alexander A. Klimov [Mon, 5 Aug 2019 16:30:45 +0000 (18:30 +0200)]
icinga2 daemon --close-stdio: keep console log open during first config validation
refs #7394
Michael Friedrich [Mon, 5 Aug 2019 14:48:49 +0000 (16:48 +0200)]
Merge pull request #7391 from Icinga/feature/cluster-sync-avoid-non-utf-8
Cluster sync: Only sync valid UTF8 content (text config, no binaries)
Michael Friedrich [Mon, 5 Aug 2019 11:14:36 +0000 (13:14 +0200)]
Merge pull request #7396 from Icinga/bugfix/ido-drop-index-if-exists
DB IDO: Fix upgrade script for 2.11.0 (drop index only if existing)
Michael Friedrich [Mon, 5 Aug 2019 11:06:50 +0000 (13:06 +0200)]
DB IDO: Add upgrading note