]> granicus.if.org Git - icinga2/log
icinga2
6 years agoFix SysconfigFile detection for binary builds
Michael Friedrich [Thu, 19 Apr 2018 06:49:47 +0000 (08:49 +0200)]
Fix SysconfigFile detection for binary builds

It may happen that the variable is not properly initialized
and we'll have an empty string. Observed on macOS and inside
Docker.

refs #6215

refs #6241

6 years agofixup set rlimit stack failed condition
lihan [Tue, 27 Feb 2018 04:56:36 +0000 (12:56 +0800)]
fixup set rlimit stack failed condition

refs #6119
refs #6215

6 years agoFix unit tests for 2.8.x
Michael Friedrich [Thu, 19 Apr 2018 09:19:20 +0000 (11:19 +0200)]
Fix unit tests for 2.8.x

refs #6207

6 years agoFix package error message
Jean Flach [Mon, 18 Dec 2017 10:04:40 +0000 (11:04 +0100)]
Fix package error message

fixes #5879

refs #5881

6 years agoEnhance http_certificate parameter documentation
Michael Insel [Fri, 22 Dec 2017 13:35:55 +0000 (14:35 +0100)]
Enhance http_certificate parameter documentation

This clarifies the usage of the http_certificate parameter.

refs #5610

refs #5913

6 years agoDocument the 'ignore_on_error' attribute for object creation
Michael Friedrich [Tue, 6 Feb 2018 17:03:36 +0000 (18:03 +0100)]
Document the 'ignore_on_error' attribute for object creation

fixes #5797

refs #6080

6 years agoFix incorrect parameter name in the API documentation
Gunnar Beutner [Mon, 5 Mar 2018 07:43:13 +0000 (08:43 +0100)]
Fix incorrect parameter name in the API documentation

fixes #6140

refs #6145

6 years agoFix check_nscp_api for multiple URL parameter usage
Michael Friedrich [Fri, 6 Apr 2018 13:23:31 +0000 (15:23 +0200)]
Fix check_nscp_api for multiple URL parameter usage

NSClient++ doesn't support the bracket notation.

refs #5706

refs #6207

6 years agoAllow to disable brackets for the Url class and Format()
Michael Friedrich [Fri, 6 Apr 2018 12:49:15 +0000 (14:49 +0200)]
Allow to disable brackets for the Url class and Format()

This commit also adds unit tests.

refs #5706

refs #6207

6 years agoElasticsearch: Fix crash with invalid performance data metrics
Michael Friedrich [Tue, 3 Apr 2018 12:38:25 +0000 (14:38 +0200)]
Elasticsearch: Fix crash with invalid performance data metrics

fixes #6191

refs #6192

6 years agoFix the explanation of `types` and `states` for user objects
Max Rosin [Sun, 4 Feb 2018 23:55:33 +0000 (00:55 +0100)]
Fix the explanation of `types` and `states` for user objects

refs #6068

6 years agoFix typo in Apply for Rules documentation
Michael Insel [Mon, 19 Feb 2018 21:11:12 +0000 (22:11 +0100)]
Fix typo in Apply for Rules documentation

fixes 6100

refs #6102

6 years agoFix broken link in README
Michael Insel [Thu, 15 Mar 2018 15:59:41 +0000 (16:59 +0100)]
Fix broken link in README

This fixes the broken documentation link inside the readme.

refs #6166

6 years agoFix InfluxDB backslash escaping
Noah Hilverling [Wed, 4 Apr 2018 11:02:48 +0000 (13:02 +0200)]
Fix InfluxDB backslash escaping

fixes #6182

refs #6196

6 years agoFix missing anchors in CLI commands chapter
Michael Friedrich [Thu, 12 Apr 2018 17:12:37 +0000 (19:12 +0200)]
Fix missing anchors in CLI commands chapter

refs #6227

6 years agoExplicitly use long with boost::posix_time
Jan Beich [Sun, 15 Apr 2018 04:02:42 +0000 (04:02 +0000)]
Explicitly use long with boost::posix_time

6 years agoRemove init.conf from icinga.cpp
Noah Hilverling [Wed, 4 Apr 2018 11:53:18 +0000 (13:53 +0200)]
Remove init.conf from icinga.cpp

6 years agoDoc: Fix typo in API user creation example
Michael Insel [Thu, 22 Mar 2018 19:47:15 +0000 (20:47 +0100)]
Doc: Fix typo in API user creation example

This fixes a typo in the API user creation example inside the documentation.

refs #6177

6 years agohashed_password -> password_hash. Fixes #6175
Maurice Meyer [Thu, 22 Mar 2018 19:40:46 +0000 (20:40 +0100)]
hashed_password -> password_hash. Fixes #6175

Signed-off-by: Maurice Meyer <morre@mor.re>
refs #6176

6 years agoMerge pull request #6179 from Icinga/fix/api-user-crash-2.8.2
Michael Friedrich [Fri, 23 Mar 2018 11:31:19 +0000 (12:31 +0100)]
Merge pull request #6179 from Icinga/fix/api-user-crash-2.8.2

Fix crash in api user command

6 years agoFix crash in api user command 6179/head
Jean Flach [Tue, 20 Feb 2018 08:45:55 +0000 (09:45 +0100)]
Fix crash in api user command

Missing backport in support/2.8

fixes #6178

6 years agoRelease version 2.8.2 v2.8.2
Jean Flach [Thu, 22 Mar 2018 10:17:13 +0000 (11:17 +0100)]
Release version 2.8.2

6 years agoUpdate mailmap
Jean Flach [Thu, 22 Mar 2018 09:35:02 +0000 (10:35 +0100)]
Update mailmap

6 years agoDocs: Add a note to only query the NSClient++ API from the local Icinga 2 client
Michael Friedrich [Tue, 20 Mar 2018 10:50:52 +0000 (11:50 +0100)]
Docs: Add a note to only query the NSClient++ API from the local Icinga 2 client

refs #6172

6 years agoImprove error handling for empty packages in /v1/config/packages
Michael Friedrich [Wed, 7 Mar 2018 12:27:31 +0000 (13:27 +0100)]
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

6 years agoBuild fix
Gunnar Beutner [Wed, 7 Mar 2018 08:56:42 +0000 (09:56 +0100)]
Build fix

6 years agoCode style
Jean Flach [Fri, 16 Feb 2018 09:31:00 +0000 (10:31 +0100)]
Code style

6 years agoFix ApiUser unit test
Gunnar Beutner [Tue, 6 Mar 2018 08:30:22 +0000 (09:30 +0100)]
Fix ApiUser unit test

6 years agoEnsure that SetCorked() works properly
Gunnar Beutner [Tue, 6 Mar 2018 07:49:43 +0000 (08:49 +0100)]
Ensure that SetCorked() works properly

6 years agoFix incorrect argument type for JsonRpc::SendMessage
Gunnar Beutner [Tue, 6 Mar 2018 07:54:47 +0000 (08:54 +0100)]
Fix incorrect argument type for JsonRpc::SendMessage

6 years agoLimit anonymous connections to 25
Jean Flach [Mon, 5 Mar 2018 12:22:43 +0000 (13:22 +0100)]
Limit anonymous connections to 25

6 years agoLimit JSON-RPC message size
Noah Hilverling [Thu, 1 Mar 2018 08:47:29 +0000 (09:47 +0100)]
Limit JSON-RPC message size

6 years agoFix incorrect HTTP content length limits
Gunnar Beutner [Wed, 28 Feb 2018 11:06:01 +0000 (12:06 +0100)]
Fix incorrect HTTP content length limits

6 years agoAdd SetCorked() calls to the JsonRpcConnection class
Gunnar Beutner [Wed, 28 Feb 2018 10:42:05 +0000 (11:42 +0100)]
Add SetCorked() calls to the JsonRpcConnection class

6 years agoUse cork in tlsstream and HTTP connection
Jean Flach [Tue, 27 Feb 2018 13:49:15 +0000 (14:49 +0100)]
Use cork in tlsstream and HTTP connection

6 years agoAdd cork
Jean Flach [Tue, 27 Feb 2018 13:48:37 +0000 (14:48 +0100)]
Add cork

6 years agoFix null ptr dereference in HttpServerConnection::ProcessMessageAsync
Gunnar Beutner [Wed, 28 Feb 2018 10:07:19 +0000 (11:07 +0100)]
Fix null ptr dereference in HttpServerConnection::ProcessMessageAsync

6 years agoFix incorrect return value
Gunnar Beutner [Wed, 28 Feb 2018 09:50:33 +0000 (10:50 +0100)]
Fix incorrect return value

6 years agoFix incorrect size of request limits
Jean Flach [Fri, 23 Feb 2018 13:29:18 +0000 (14:29 +0100)]
Fix incorrect size of request limits

refs #6103

6 years agoFix typo in prepare-dirs
Jean Flach [Fri, 23 Feb 2018 12:25:59 +0000 (13:25 +0100)]
Fix typo in prepare-dirs

refs #5850

6 years agoRemove need for init.conf
Jean Flach [Mon, 29 Jan 2018 13:23:53 +0000 (14:23 +0100)]
Remove need for init.conf

6 years agoRemove need for RunAsUser/Group
Jean Flach [Fri, 26 Jan 2018 15:27:16 +0000 (16:27 +0100)]
Remove need for RunAsUser/Group

They are now read form the sysconfig file which is owned by root

6 years agoAdd cli tool to send signals as Icinga user
Jean Flach [Wed, 17 Jan 2018 12:26:19 +0000 (13:26 +0100)]
Add cli tool to send signals as Icinga user

fixes #5991

6 years agoGet ICINGA2_USER and GROUP from sysconfig
Jean Flach [Wed, 17 Jan 2018 12:25:40 +0000 (13:25 +0100)]
Get ICINGA2_USER and GROUP from sysconfig

6 years agoFix prepare-dirs permission exploit
Jean Flach [Wed, 29 Nov 2017 12:56:10 +0000 (13:56 +0100)]
Fix prepare-dirs permission exploit

refs #5793

6 years agoAdd clarification on sysconfig location
Jean Flach [Thu, 22 Feb 2018 11:31:36 +0000 (12:31 +0100)]
Add clarification on sysconfig location

6 years agoAdd Upgrading to Icinga 2.8.2 chapter
Jean Flach [Thu, 22 Feb 2018 10:29:12 +0000 (11:29 +0100)]
Add Upgrading to Icinga 2.8.2 chapter

6 years agoRemove debug output in ApiUserCommand::Run
Gunnar Beutner [Thu, 15 Feb 2018 14:49:23 +0000 (15:49 +0100)]
Remove debug output in ApiUserCommand::Run

6 years agoProperly escape strings in ApiUserCommand::Run
Gunnar Beutner [Thu, 15 Feb 2018 14:48:53 +0000 (15:48 +0100)]
Properly escape strings in ApiUserCommand::Run

6 years agoImprove api user command
Jean Flach [Fri, 22 Dec 2017 12:01:51 +0000 (13:01 +0100)]
Improve api user command

--oneline can now be used to print out only the password hash string.
This can be used to update ApiUser passwords through the API. There is
also now a validation to make use salt does not contain a '$' which
would break verification.

6 years agoFix crash when using incorrectly formatted password hash
Jean Flach [Fri, 22 Dec 2017 11:58:39 +0000 (12:58 +0100)]
Fix crash when using incorrectly formatted password hash

6 years agoMove new password functions into tlsutility
Jean Flach [Fri, 22 Dec 2017 11:14:31 +0000 (12:14 +0100)]
Move new password functions into tlsutility

6 years agoHash API password and comparison
Jean Flach [Fri, 11 Aug 2017 14:23:24 +0000 (16:23 +0200)]
Hash API password and comparison

fixes #4920

6 years agoBuild/Merge fixes
Jean Flach [Fri, 23 Feb 2018 09:27:55 +0000 (10:27 +0100)]
Build/Merge fixes

6 years agoMinor codestyle and doc changes
Jean Flach [Wed, 21 Feb 2018 12:22:17 +0000 (13:22 +0100)]
Minor codestyle and doc changes

6 years agoLimit HTTP body size
Noah Hilverling [Mon, 19 Feb 2018 12:33:58 +0000 (13:33 +0100)]
Limit HTTP body size

6 years agoFix requests not being closed correctly
Noah Hilverling [Mon, 19 Feb 2018 09:47:14 +0000 (10:47 +0100)]
Fix requests not being closed correctly

6 years agoAdd timeout for TLS handshakes
Jean Flach [Tue, 13 Feb 2018 16:29:48 +0000 (17:29 +0100)]
Add timeout for TLS handshakes

6 years agoAuthenticate API user before parsing body
Jean Flach [Thu, 8 Feb 2018 13:54:52 +0000 (14:54 +0100)]
Authenticate API user before parsing body

6 years agoOnly read body from authenticated connections
Jean Flach [Thu, 1 Feb 2018 14:10:28 +0000 (15:10 +0100)]
Only read body from authenticated connections

This means we are not allowing unauthenticated requests anymore

6 years agoFix nullptr deref
Jean Flach [Tue, 30 Jan 2018 12:34:26 +0000 (13:34 +0100)]
Fix nullptr deref

6 years agoAdd HTTP Header size limits
Gunnar Beutner [Wed, 31 Jan 2018 08:05:06 +0000 (09:05 +0100)]
Add HTTP Header size limits

6 years agoAdd validation for HTTP connection sizes
Gunnar Beutner [Wed, 31 Jan 2018 06:59:49 +0000 (07:59 +0100)]
Add validation for HTTP connection sizes

6 years agoSELinux: Allows icinga2_t to send sigkill to all domains it transitions to
Dirk Goetz [Mon, 15 Jan 2018 14:05:09 +0000 (15:05 +0100)]
SELinux: Allows icinga2_t to send sigkill to all domains it transitions to

Fixes #5916

6 years agoRename macro RequireNotNull to REQUIRE_NOT_NULL
Jean Flach [Wed, 21 Feb 2018 12:42:58 +0000 (13:42 +0100)]
Rename macro RequireNotNull to REQUIRE_NOT_NULL

6 years agoFix nullptr deref in cluster events
Noah Hilverling [Wed, 31 Jan 2018 09:17:49 +0000 (10:17 +0100)]
Fix nullptr deref in cluster events

6 years agoAdd marco RequireNotNull
Noah Hilverling [Tue, 30 Jan 2018 10:26:07 +0000 (11:26 +0100)]
Add marco RequireNotNull

This is used to fix a number of possible nullptr dereferences

6 years agoDocs: Fix bracket in notification example
Michael Friedrich [Wed, 14 Feb 2018 12:04:42 +0000 (13:04 +0100)]
Docs: Fix bracket in notification example

refs #6089

6 years agoUpgrading: Make it more clear that the Director script is just an example
Michael Friedrich [Mon, 12 Feb 2018 08:49:11 +0000 (09:49 +0100)]
Upgrading: Make it more clear that the Director script is just an example

refs #6086

6 years agoExplain how to register functions in the global scope
Michael Friedrich [Tue, 6 Feb 2018 11:44:45 +0000 (12:44 +0100)]
Explain how to register functions in the global scope

refs #6075

6 years agoFix incorrect ::Start call
Gunnar Beutner [Mon, 18 Dec 2017 08:32:09 +0000 (09:32 +0100)]
Fix incorrect ::Start call

6 years agoDocs: Add IDO DB tuning tips
Michael Friedrich [Thu, 18 Jan 2018 16:50:39 +0000 (17:50 +0100)]
Docs: Add IDO DB tuning tips

fixes #5622

refs #6014

6 years agoFix wrong nscp-local include in the docs
Michael Friedrich [Thu, 18 Jan 2018 12:25:23 +0000 (13:25 +0100)]
Fix wrong nscp-local include in the docs

refs #6006

6 years agoMake default getters and setters non-virtual
Gunnar Beutner [Wed, 15 Nov 2017 08:47:23 +0000 (09:47 +0100)]
Make default getters and setters non-virtual

6 years agoAdd missing string escaping
Noah Hilverling [Wed, 17 Jan 2018 09:25:42 +0000 (10:25 +0100)]
Add missing string escaping

fixes #5987

6 years agoFix HTTP response parsing for HTTP 1.1
Noah Hilverling [Wed, 17 Jan 2018 09:25:00 +0000 (10:25 +0100)]
Fix HTTP response parsing for HTTP 1.1

refs #5987

6 years agoFix performance issues for InfluxdbWriter
Gunnar Beutner [Tue, 24 Oct 2017 13:23:58 +0000 (15:23 +0200)]
Fix performance issues for InfluxdbWriter

6 years agoFix incorrect socket handling for the HTTP client
Gunnar Beutner [Tue, 14 Nov 2017 13:13:24 +0000 (14:13 +0100)]
Fix incorrect socket handling for the HTTP client

6 years agoRelease version 2.8.1 v2.8.1
Gunnar Beutner [Wed, 17 Jan 2018 10:20:38 +0000 (11:20 +0100)]
Release version 2.8.1

6 years agoFix check_service returning Warning instead of Critical
Jean Flach [Wed, 13 Dec 2017 16:48:16 +0000 (17:48 +0100)]
Fix check_service returning Warning instead of Critical

fixes #5849

6 years agoAdd some technical insights into the cluster-zone health check and log lag
Michael Friedrich [Wed, 3 Jan 2018 14:22:02 +0000 (15:22 +0100)]
Add some technical insights into the cluster-zone health check and log lag

As per @widhalmt request.

refs #5942

Signed-off-by: Gunnar Beutner <gunnar.beutner@icinga.com>
6 years agoEnable installing the init scripts on Solaris
Gunnar Beutner [Wed, 20 Dec 2017 07:44:06 +0000 (08:44 +0100)]
Enable installing the init scripts on Solaris

refs #5892

6 years agoFix link format in documentation
Michael Insel [Fri, 29 Dec 2017 16:54:14 +0000 (17:54 +0100)]
Fix link format in documentation

refs #5922

6 years agoFix typo in SELinux documentation
Michael Insel [Thu, 28 Dec 2017 11:03:49 +0000 (12:03 +0100)]
Fix typo in SELinux documentation

refs #5918

6 years agoUpdate 08-advanced-topics.md
cstegm [Thu, 11 Jan 2018 15:48:40 +0000 (16:48 +0100)]
Update 08-advanced-topics.md

fixed typo

refs #5972

6 years agochangelog.py: Adjust categories and labels: Enhancement, Bug, ITL, Documentation...
Michael Friedrich [Tue, 16 Jan 2018 14:49:53 +0000 (15:49 +0100)]
changelog.py: Adjust categories and labels: Enhancement, Bug, ITL, Documentation, Support

This PR allows to adjust the categories and matching labels. If no label
matches, "Support" is the old hardcoded default.

Issues with the "Documentation" and "ITL" label will be put into their
respective category at the bottom before "Support". This increases readability
and allows users to focus on the core vs additional config and docs.

"Support" also applies to labels such as "code-quality", "Tests" and "Packages"/"Installation".

Note: Labels are case sensitive. The order of the categories dictionary is
important too.

Since issues and PRs are the same for GitHub, and we don't require an issue
for a PR anymore, we sometimes have duplicates. This patch adds an inline
label called "PR" to highlight these PRs in the Changelog.

refs #5989

6 years agoRevert "Fix performance issues for InfluxdbWriter"
Michael Friedrich [Tue, 16 Jan 2018 09:45:20 +0000 (10:45 +0100)]
Revert "Fix performance issues for InfluxdbWriter"

This reverts commit eea451ee94be7310e63ab6b7e5e94924b295e974.

refs #5764

6 years agoRevert "Fix incorrect socket handling for the HTTP client"
Michael Friedrich [Tue, 16 Jan 2018 09:43:16 +0000 (10:43 +0100)]
Revert "Fix incorrect socket handling for the HTTP client"

This reverts commit 59da943548c7c1be5f4b27dce73a0ad27cf0de5d.

refs #5760

6 years agoRevert "Make default getters and setters non-virtual"
Michael Friedrich [Tue, 16 Jan 2018 09:41:48 +0000 (10:41 +0100)]
Revert "Make default getters and setters non-virtual"

This reverts commit 50eb774a0f57c8a09c0583e2be204bcc5bfd58cf.

refs #5759

6 years agoFix wrong schema constraint for fresh 2.8.0 installations
Michael Friedrich [Tue, 16 Jan 2018 08:49:46 +0000 (09:49 +0100)]
Fix wrong schema constraint for fresh 2.8.0 installations

This fix is only needed for a fresh 2.8.0 setup, older versions
and upgrades to current do not need this (can be applied as idempotent
update).

fixes #5947

refs #5986

6 years agoImplement AppLocal deployment support for UCRT
Gunnar Beutner [Wed, 13 Dec 2017 21:31:56 +0000 (22:31 +0100)]
Implement AppLocal deployment support for UCRT

refs #5856

6 years agoUpdate ElasticsearchWriter docs for 5.x support only
Michael Friedrich [Fri, 22 Dec 2017 09:11:37 +0000 (10:11 +0100)]
Update ElasticsearchWriter docs for 5.x support only

refs #5911

6 years agoRevert "Update docs for Elasticsearch 5.x and 6.x support"
Michael Friedrich [Fri, 22 Dec 2017 08:54:20 +0000 (09:54 +0100)]
Revert "Update docs for Elasticsearch 5.x and 6.x support"

This reverts commit 9b0cc125dd9d893a7e45547a252aacd03cea845c.

refs #5840

6 years agoRevert "Fix newline terminator for bulk requests in ElasticsearchWriter"
Michael Friedrich [Fri, 22 Dec 2017 08:53:56 +0000 (09:53 +0100)]
Revert "Fix newline terminator for bulk requests in ElasticsearchWriter"

This reverts commit 806eb0d2d2b077a9a4bac073bfbb27c2af369008.

refs #5840

6 years agoAdd missing initdb to PostgreSQL documentation
Noah Hilverling [Thu, 14 Dec 2017 16:08:03 +0000 (17:08 +0100)]
Add missing initdb to PostgreSQL documentation

refs #5864

6 years agoDocumentation: Add openSUSE to restart instructions
Noah Hilverling [Fri, 15 Dec 2017 07:19:00 +0000 (08:19 +0100)]
Documentation: Add openSUSE to restart instructions

refs #5866

6 years agoDocumentation: Remove redundant FreeBSD restart instructions
Noah Hilverling [Fri, 15 Dec 2017 06:41:05 +0000 (07:41 +0100)]
Documentation: Remove redundant FreeBSD restart instructions

refs #5866

6 years agoUpdate 09-object-types.md
noobahoi [Tue, 21 Nov 2017 15:22:58 +0000 (16:22 +0100)]
Update 09-object-types.md

object Downtime "localhost!my-downtime"

should be

object Downtime "my-downtime"

The host_name configuration attribute adds the localhost name automatically.

refs #5790

6 years agoUpdate 09-object-types.md
noobahoi [Tue, 21 Nov 2017 15:17:58 +0000 (16:17 +0100)]
Update 09-object-types.md

'TicketSalt' instead of 'NodeName'

refs #5790

6 years agoAdd documentation about automatic service restarts with systemd
Max Rosin [Wed, 15 Nov 2017 00:03:15 +0000 (01:03 +0100)]
Add documentation about automatic service restarts with systemd

refs #5721
refs #5757