10608 Commits

Author SHA1 Message Date
Michael Insel
662f817364 Add option to windows installer to add global zones
This implements the option to add global zones to the windows agent
wizard.
2018-03-18 16:19:15 +01:00
Jean Flach
75b5fcc097
Merge pull request #6169 from Icinga/appveyor
appveyor: Clean cache when updating appveyor.yml
2018-03-17 18:41:00 +01:00
Markus Frosch
56be16b98d appveyor: Clean cache when updating appveyor.yml 2018-03-16 15:09:19 +01:00
Michael Friedrich
c40196dc32
Merge pull request #6166 from Icinga/fix/broken-link-readme
Fix broken link in README
2018-03-15 17:17:29 +01:00
Michael Insel
cb453f5b76 Fix broken link in README
This fixes the broken documentation link inside the readme.
2018-03-15 16:59:41 +01:00
Jean Flach
a742e64e4d Fix reload handling
Make sure we have written the new PID before letting it take over.
2018-03-14 10:43:59 +01:00
Michael Friedrich
1969a9071a Improve error handling for empty packages in /v1/config/packages
- If there is no package main directory, assume "empty packages".
- Catch exceptions thrown through GlobRecursive() and present a better http 500
to the user.

The packages directory tree is automatically created with the first
package creation, either from the user, or by the `_api` package.

fixes #6129
2018-03-13 11:03:02 +01:00
Noah Hilverling
c360ca8bb0 Add CORS notice to 2.9 upgrading docs 2018-03-13 09:42:27 +01:00
Gunnar Beutner
9b0fccfd80
Merge pull request #6153 from Icinga/fix/api-no-packages
Improve error handling for empty packages in /v1/config/packages
2018-03-13 09:23:01 +01:00
Gunnar Beutner
6a444a0fac
Merge pull request #6160 from Icinga/fix/code-style-global-zones
Replace std::vector:push_back calls with initializer list
2018-03-13 09:22:10 +01:00
Michael Insel
592d1c7d7e Replace std::vector:push_back with initializer list
This replaces a few std::vector::push_back calls with initializer lists.
2018-03-12 20:35:49 +01:00
Alex Merry
3723b0cc6e Fix smoke test on MSVC
The MSVC-generated code in debug mode was (quite rightly) complaining
about iterating past the start of an empty vector, and aborting the
test.
2018-03-07 16:43:54 +00:00
Michael Friedrich
429f518b49 Improve error handling for empty packages in /v1/config/packages
- If there is no package main directory, assume "empty packages".
- Catch exceptions thrown through GlobRecursive() and present a better http 500
to the user.

The packages directory tree is automatically created with the first
package creation, either from the user, or by the `_api` package.

fixes #6129
2018-03-07 13:35:09 +01:00
Gunnar Beutner
ddab94feb3 Build fix 2018-03-07 09:57:08 +01:00
Jean Flach
f357439485 Code style 2018-03-07 09:57:08 +01:00
Gunnar Beutner
9886f3914c Fix ApiUser unit test 2018-03-06 09:37:23 +01:00
Gunnar Beutner
3043a190ca
Merge pull request #6148 from gunnarbeutner/fix/api-unit-test
Fix ApiUser unit test
2018-03-06 09:36:30 +01:00
Gunnar Beutner
6670024f62 Ensure that SetCorked() works properly 2018-03-06 09:35:57 +01:00
Gunnar Beutner
44ff536645
Merge pull request #6146 from gunnarbeutner/fix/corked-fixes
Ensure that SetCorked() works properly
2018-03-06 09:33:46 +01:00
Gunnar Beutner
70b3d20a7e Fix ApiUser unit test 2018-03-06 09:30:22 +01:00
Gunnar Beutner
9cd5298d8b Ensure that SetCorked() works properly 2018-03-06 09:03:35 +01:00
Gunnar Beutner
0b9869917f Fix incorrect argument type for JsonRpc::SendMessage 2018-03-06 09:02:05 +01:00
Gunnar Beutner
c16dbd19c8
Merge pull request #6147 from gunnarbeutner/fix/incorrect-arg-type
Fix incorrect argument type for JsonRpc::SendMessage
2018-03-06 09:01:47 +01:00
Gunnar Beutner
b172a67867 Fix incorrect argument type for JsonRpc::SendMessage 2018-03-06 08:58:19 +01:00
Jean Flach
fda4faac06 Limit anonymous connections to 25 2018-03-06 08:53:52 +01:00
Noah Hilverling
fdf2dc43d5 Limit JSON-RPC message size 2018-03-06 08:53:14 +01:00
Gunnar Beutner
9b72a6c2f3
Merge pull request #6135 from Icinga/fix/limit-api-package-size
Limit JSON RPC message size
2018-03-05 13:24:09 +01:00
Jean Flach
1bdd14b428 Limit anonymous connections to 25 2018-03-05 13:22:43 +01:00
Noah Hilverling
54ff60cd8c Limit JSON-RPC message size 2018-03-05 10:29:05 +01:00
Gunnar Beutner
4a09026466
Merge pull request #6145 from gunnarbeutner/fix/incorrect-parameter-name
Fix incorrect parameter name in the API documentation
2018-03-05 09:00:08 +01:00
Gunnar Beutner
39e303a03b Fix incorrect parameter name in the API documentation
fixes #6140
2018-03-05 08:43:13 +01:00
Gunnar Beutner
84be526b4c
Merge pull request #6139 from Icinga/itl/disk-docker-types
itl/disk: Ignore overlay and netfs filesystems
2018-03-05 08:38:00 +01:00
Markus Frosch
fa68c9255b itl: Ignore overlay and netfs filesystems
Usually used by Docker and other containers and namespaces
2018-03-02 12:44:08 +01:00
Noah Hilverling
ac6a39b7d4
Merge pull request #6136 from Icinga/feature/counter-for-currently-running-concurrent-checks-4939
Add counter for current concurrent checks to Icinga check
2018-03-01 15:47:25 +01:00
Gunnar Beutner
0c006637ea Clean up the Icinga plugins a bit 2018-03-01 15:27:09 +01:00
Noah Hilverling
d0a97ddf64 Add counter for current concurrent checks to Icinga check
fixes #4939
2018-03-01 15:01:55 +01:00
Noah Hilverling
186cad9872 Clean up CORS implementation 2018-03-01 14:04:56 +01:00
Gunnar Beutner
622127276b Fix incorrect HTTP content length limits 2018-02-28 14:17:17 +01:00
Gunnar Beutner
d23c03bfa5
Merge pull request #6134 from gunnarbeutner/fix/incorrect-content-length-limits
Fix incorrect HTTP content length limits
2018-02-28 14:16:15 +01:00
Gunnar Beutner
85858e6a36 Add SetCorked() calls to the JsonRpcConnection class 2018-02-28 12:57:22 +01:00
Jean Flach
8b334fe259 Use cork in tlsstream and HTTP connection 2018-02-28 12:57:22 +01:00
Jean Flach
419103b407 Add cork 2018-02-28 12:50:49 +01:00
Gunnar Beutner
a3bf8cd26e
Merge pull request #6133 from Icinga/fix/cork-socket
Limit the number of HTTP/JSON-RPC requests we read in parallel
2018-02-28 12:48:06 +01:00
Gunnar Beutner
45c2803f3e Fix incorrect HTTP content length limits 2018-02-28 12:28:02 +01:00
Gunnar Beutner
a9fb714578
Merge pull request #6116 from Icinga/fix/windows-service-restart
Fix Windows reload
2018-02-28 12:23:53 +01:00
Gunnar Beutner
c1837ea90b
Merge pull request #6131 from Icinga/feature/log-master-ticket-invalid
Log which ticket was invalid on the master
2018-02-28 12:22:34 +01:00
Gunnar Beutner
30ae5154f0
Merge pull request #6132 from gunnarbeutner/fix/http-parser-crash
Fix HTTP parser crash/hang
2018-02-28 12:21:09 +01:00
Gunnar Beutner
6e7421eab0 Fix null ptr dereference in HttpServerConnection::ProcessMessageAsync 2018-02-28 11:54:48 +01:00
Gunnar Beutner
6400a300cd Fix incorrect return value 2018-02-28 11:53:49 +01:00
Gunnar Beutner
6848af50ff Add SetCorked() calls to the JsonRpcConnection class 2018-02-28 11:42:05 +01:00