Commit Graph

10574 Commits

Author SHA1 Message Date
Michael Insel 20fc8960e1 Use Unicode functions inside check_swap
This ensures that always Unicode functions are used in check_swap.
2019-04-05 09:24:32 +02:00
Markus Frosch 61ea5ea758 windows: Add rules for Win32 to IcingaAgent C#
Theoretically this should be automatically, but the C++ project uses
Win32 as platform...
2019-04-05 09:24:25 +02:00
Markus Frosch f70e215cc9 windows: Disable SAFESEH on x86 2019-04-05 09:03:04 +02:00
Markus Frosch 9f82faa439 cmake: Use the actual GIT_VERSION for ICINGA2_VERSION
And use a safe version with dots only for Windows.
2019-04-05 09:03:04 +02:00
Markus Frosch 1ab23c20fb windows: Disable optimization for boost::context 2019-04-05 09:03:04 +02:00
Markus Frosch 53bb10c2f2 windows: Remove the flag to disable auto linking 2019-04-05 09:03:04 +02:00
Markus Frosch ca67d7e963 windows: Improve Powershell Tools and AppVeyor config
[travis skip]
2019-04-05 09:03:04 +02:00
Michael Friedrich d0da5e0833
Merge pull request #7082 from Icinga/feature/docs-troubleshooting
Troubleshooting docs: Add Windows agents without NodeName constant
2019-04-04 15:42:52 +02:00
Michael Friedrich 4841525379 Troubleshooting docs: Add Windows agents without NodeName constant 2019-04-04 15:29:45 +02:00
Michael Friedrich c5ea42529e
Merge pull request #7080 from Icinga/feature/docs-object-types
Docs: Improve config object types chapter
2019-04-03 19:53:26 +02:00
Michael Friedrich 2ce82b56d4 Docs: Improve config object types chapter 2019-04-03 15:22:08 +02:00
Michael Friedrich cd325410ec
Merge pull request #7078 from Icinga/feature/deprecate-command-pipe-adjust-logs
Deprecate ExternalCommandListener feature ('command') and adjust log warnings to the roadmap
2019-04-03 14:59:36 +02:00
Michael Friedrich c785a0678f Deprecate ExternalCommandListener feature ('command') and adjust log warnings to the roadmap
They won't be removed with 2.11 thus far. Users should
be guided to the roadmap which holds all details instead
of hardcoding a version in the code.
2019-04-03 14:39:10 +02:00
Michael Friedrich 7242301fdb
Merge pull request #7077 from Icinga/bugfix/no-api
Always update object authority & don't skip notifications in non-API setups
2019-04-03 14:22:56 +02:00
Michael Friedrich 84019ba27a Fix notification skip for local non-API enabled setups
W/o local endpoint, these reminder notifications would
have been skipped otherwise.

PR #6935 improved the logging and made this problem visible.

Thanks @nilmerg :)
2019-04-03 13:50:21 +02:00
Michael Friedrich 5c3a9b77d7 Always update object authority, even w/o API feature
Regression from #7062

Thanks @nilmerg :)
2019-04-03 13:48:24 +02:00
Michael Friedrich e909302fd9 Fix headings in the docs
refs #6918
2019-04-03 11:04:07 +02:00
Michael Friedrich 0f2864f881
Merge pull request #6918 from Icinga/feature/technical-concepts-jsonrpc-messages
Add technical concept docs for our internal JSON-RPC API messages
2019-04-03 10:52:45 +02:00
Michael Friedrich 3c591a03b0 Add technical concept docs for our internal JSON-RPC message API 2019-04-03 10:51:15 +02:00
Michael Friedrich c6eaee611c
Merge pull request #7074 from Icinga/feature/cli-run-as-icinga-not-root
Impersonate as Icinga user, not root
2019-04-03 09:52:08 +02:00
Michael Friedrich 7174dcd265 Upgrading docs: Mention CLI commands 2019-04-03 09:51:35 +02:00
Michael Friedrich c2f180395a
Merge pull request #7000 from Icinga/bugfix/goto-loop
Don't abuse goto for building simple loops
2019-04-03 09:46:17 +02:00
Michael Friedrich 7ca8c3ec2f Impersonate as Icinga user, not root
This requires write permissions for

- etc/features-*
- etc/*.conf
- var/{lib,cache}/icinga2/*

Typically permissions are handled by prepare-dirs,
or the respective CLI commands are run as root either way.

fixes #4947
2019-04-02 17:05:48 +02:00
Michael Friedrich f484bbefc0
Merge pull request #7008 from Icinga/feature/shared-ptr-atomic
Use C++11 atomics for our intrusive pointers
2019-04-02 15:15:56 +02:00
Alexander A. Klimov cfd0d86b9b Use C++11 atomics for our intrusive pointers 2019-04-02 13:54:30 +02:00
Michael Friedrich 58ae29acac
Merge pull request #7072 from Icinga/feature/boost-upgrading-docs
Upgrading docs: Add Boost dependencies
2019-04-01 18:10:46 +02:00
Michael Friedrich 66461ee3af Upgrading docs: Add Boost dependencies 2019-04-01 16:51:50 +02:00
Michael Friedrich dc0288fef8
Merge pull request #7005 from Icinga/feature/boost-asio
ApiListener: use Boost ASIO and coroutines for net I/O
2019-04-01 16:49:44 +02:00
Michael Friedrich 5c2aaf6380 Improve error logging on connection failure (cluster) 2019-04-01 16:13:37 +02:00
Markus Frosch ebf9f9d9f5 travis: Add boost path config
And disable unity builds for travis.

[skip appveyor]
2019-04-01 15:31:44 +02:00
Markus Frosch e4a3b64258 travis: Remove converity 2019-04-01 15:25:19 +02:00
Markus Frosch 0e5d0e0077 travis: Switch to xenial and newer Boost 2019-04-01 15:22:41 +02:00
Alexander A. Klimov 64b2ac4b30 ApiListener: drop unused thread pool 2019-04-01 15:06:17 +02:00
Alexander A. Klimov 3a6caa2800 Respect Accept:application/json where possible 2019-04-01 13:31:16 +02:00
Alexander A. Klimov 24c9542b5b HttpServerConnection: fix side effect of HTTP parser's default body limit 2019-04-01 13:31:16 +02:00
Alexander A. Klimov d428bdf384 Add missing includes 2019-04-01 13:31:16 +02:00
Markus Frosch ff3a2fe3da CMake: Handle INSTALL_RPATH globally and allow external additions 2019-04-01 13:31:16 +02:00
Alexander A. Klimov bf23e5392b UnbufferedAsioTlsStream: don't rely on *this in decltype()s for methods' return types 2019-04-01 13:31:16 +02:00
Alexander A. Klimov 7ec1e638a8 Turn shortcut UnbufferedAsioTlsStream::Parent into a base class 2019-04-01 13:31:16 +02:00
Markus Frosch f4193e40a1 appveyor: Use Boost 1.66 2019-04-01 13:31:16 +02:00
Alexander A. Klimov 5b2c1f023d Rename preventGc to keepAlive 2019-04-01 13:31:16 +02:00
Alexander A. Klimov 915525dbcd Doc: adjust default of ApiListener#bind_host 2019-04-01 13:31:16 +02:00
Alexander A. Klimov 5208448b76 Restore the previous performance of replaying logs 2019-04-01 13:31:16 +02:00
Alexander A. Klimov 79e95d2355 Introduce JsonRpcConnection#SendMessageInternal() 2019-04-01 13:31:16 +02:00
Alexander A. Klimov e6d78bf361 Move some TCP/TLS logic out of ApiListener
... for re-using it
2019-04-01 13:31:16 +02:00
Alexander A. Klimov 79220ee647 io-engine.hpp: fix missing namespace 2019-04-01 13:31:16 +02:00
Alexander A. Klimov 8b3efe5759 Introduce AsioConditionVariable 2019-04-01 13:31:16 +02:00
Alexander A. Klimov d3392d1579 Rename AsioTlsStreamHack to UnbufferedAsioTlsStream 2019-04-01 13:31:16 +02:00
Alexander A. Klimov e129c561d5 HttpServerConnection: don't disconnect during sending response 2019-04-01 13:31:16 +02:00
Alexander A. Klimov b384f859c9 Make IoEngine::m_CpuBoundSemaphore signed 2019-04-01 13:31:16 +02:00