9074 Commits

Author SHA1 Message Date
Gunnar Beutner
5f4a9c9655 Use gcc-ar and gcc-ranlib when building with -flto 2018-01-17 14:26:37 +01:00
Gunnar Beutner
2c7d738e36
Merge pull request #5980 from Icinga/fix/db-ido-notification-filter
Explicitly pass 1 or 0 for notification filters in DB IDO
2018-01-17 13:50:48 +01:00
Michael Friedrich
a83ad4b7f2 Explicitly pass 1 or 0 for notification filters in DB IDO 2018-01-17 13:38:48 +01:00
Gunnar Beutner
34886dbf2b Merge branch 'support/2.8' 2018-01-17 11:24:34 +01:00
Gunnar Beutner
5a3f88d7ec Release version 2.8.1 2018-01-17 11:21:17 +01:00
Gunnar Beutner
be102d9d4e Release version 2.8.1 v2.8.1 2018-01-17 11:20:38 +01:00
Jean Flach
2475591fb5 Fix check_service returning Warning instead of Critical
fixes #5849
2018-01-17 11:08:57 +01:00
Michael Friedrich
372be299b4 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>
2018-01-17 11:00:08 +01:00
Gunnar Beutner
18d4019368 Enable installing the init scripts on Solaris
refs #5892
2018-01-17 10:28:57 +01:00
Gunnar Beutner
71a032579b
Merge pull request #5995 from Icinga/fix/influxdb-requests
Fix InfluxDB requests
2018-01-17 10:28:15 +01:00
Gunnar Beutner
9ad5def531
Merge pull request #5994 from Icinga/fix/influxdb-template
InfluxDBWriter: Fix macro in template
2018-01-17 10:27:55 +01:00
Gunnar Beutner
9b170b779c
Merge pull request #5993 from Icinga/feature/cmake-object-libs
Use CMake object libraries for our libs
2018-01-17 10:26:59 +01:00
Noah Hilverling
b83af363ef Add missing string escaping to InfluxDB-Writer
fixes #5987
2018-01-17 10:26:09 +01:00
Noah Hilverling
e19ae4e052 Fix HTTP response parsing for HTTP 1.1
refs #5987
2018-01-17 10:25:00 +01:00
Noah Hilverling
9768e03107 InfluxDBWriter: Fix macro in template 2018-01-17 09:23:48 +01:00
Gunnar Beutner
2a9dceb367 Use CMake object libraries for our libs 2018-01-17 04:28:21 +01:00
Michael Insel
415621cc56 Fix link format in documentation
refs #5922
2018-01-16 16:11:50 +01:00
Michael Insel
a22e130961 Fix typo in SELinux documentation
refs #5918
2018-01-16 16:10:54 +01:00
cstegm
4fda5e4975 Update 08-advanced-topics.md
fixed typo

refs #5972
2018-01-16 16:06:50 +01:00
Michael Friedrich
dde2a527b0 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
2018-01-16 16:03:07 +01:00
Michael Friedrich
bea793d24f
Merge pull request #5989 from Icinga/feature/changelog-categories-labels
changelog.py: Adjust categories and labels: Enhancement, Bug, ITL, Documentation, Support
2018-01-16 16:02:29 +01:00
Michael Friedrich
c25e25058f 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.
2018-01-16 15:49:53 +01:00
Gunnar Beutner
d591cca701
Merge pull request #5983 from Icinga/feature/initializer-lists
Use initializer lists for arrays and dictionaries
2018-01-16 12:40:29 +01:00
Gunnar Beutner
c2fb9fe226 Use initializer lists for arrays and dictionaries 2018-01-16 12:27:44 +01:00
Michael Friedrich
b4a0495239 Revert "Fix performance issues for InfluxdbWriter"
This reverts commit eea451ee94be7310e63ab6b7e5e94924b295e974.

refs #5764
2018-01-16 10:45:20 +01:00
Michael Friedrich
c3fe1a6323 Revert "Fix incorrect socket handling for the HTTP client"
This reverts commit 59da943548c7c1be5f4b27dce73a0ad27cf0de5d.

refs #5760
2018-01-16 10:44:31 +01:00
Michael Friedrich
fba838c7ef Revert "Make default getters and setters non-virtual"
This reverts commit 50eb774a0f57c8a09c0583e2be204bcc5bfd58cf.

refs #5759
2018-01-16 10:41:48 +01:00
Michael Friedrich
2901c77d65 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
2018-01-16 10:15:38 +01:00
Gunnar Beutner
32002b376b
Merge pull request #5986 from Icinga/fix/ido-schema-uq
Fix wrong schema constraint for fresh 2.8.0 installations
2018-01-16 10:13:21 +01:00
Michael Friedrich
f99f5bcf17 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
2018-01-16 09:49:46 +01:00
Gunnar Beutner
4e7b44e8c1
Merge pull request #5985 from Icinga/feature/ido-check-thresholds
Add query thresholds for the 'ido' check: Rate and pending queries
2018-01-16 08:06:22 +01:00
Michael Friedrich
0201f8ff64 Add query thresholds for the 'ido' check: Rate and pending queries
fixes #3924
2018-01-15 16:38:15 +01:00
Michael Friedrich
f056b3fe80
Merge pull request #5984 from Icinga/fix/db-ido-static-libraries
Fix missing static libraries for DB IDO
2018-01-15 16:06:29 +01:00
Michael Friedrich
4b46b0b693 Fix missing static libraries for DB IDO
refs #5927
2018-01-15 15:59:11 +01:00
Michael Friedrich
b440be9fc8
Merge pull request #5973 from Icinga/feature/api-checkresult-ttl
Add 'ttl' support for check result freshness via REST API
2018-01-15 14:25:15 +01:00
Michael Friedrich
211a07f49a Add 'ttl' support for check result freshness via REST API
The `process-check-result` action can now optionally set the
`ttl` parameter. This overrules the configured freshness
check (check_interval).

The main idea behind this is to allow the external sender
to specify when the next check result is coming in.

For example, a backup script which should be run every
24h can specify the exact expected next check result.

The addition to the CheckResult class is necessary to
forward the check result throughout the cluster and
calculate the `next_check` value on each node. This
allows us to send in a check result on a satellite,
and the master determines the freshness and possible
notifications/state changes for Icinga Web 2.
2018-01-15 13:54:11 +01:00
Michael Friedrich
1d0fd5be11
Merge pull request #5903 from Icinga/fix/cleanup-compatutility
Cleanup CompatUtility class and features
2018-01-15 13:51:07 +01:00
Michael Friedrich
50106057bf Remove obsolete locks in Livestatus; apply style guide to DB IDO 2018-01-15 13:39:34 +01:00
Michael Friedrich
403ab5c357 Eliminate time(NULL) in StatusDataWriter 2018-01-15 13:39:34 +01:00
Michael Friedrich
ef7c80959d More cleanup for compat filters in DB IDO 2018-01-15 13:39:34 +01:00
Michael Friedrich
4da3a50711 Clean up DB IDO events code 2018-01-15 13:39:34 +01:00
Michael Friedrich
636cf62d3a DB IDO: Clean up code and group CompatUtility calls 2018-01-15 13:39:34 +01:00
Michael Friedrich
d672df3f2c DB IDO: Don't send empty columns in queries 2018-01-15 13:39:34 +01:00
Michael Friedrich
e5462ea3d1 DB IDO: Remove check_command_args column
The populated value is not entirely correct, and pulls in lots
of compat code.
2018-01-15 13:39:34 +01:00
Michael Friedrich
9de233630a Move CompatUtility::GetCheckableInNotificationPeriod() logic into Livestatus feature 2018-01-15 13:39:34 +01:00
Michael Friedrich
7a012c062a Move CompatUtility::GetHostStateString() logic into DB IDO and CompatLogger features 2018-01-15 13:39:34 +01:00
Michael Friedrich
5222f7d058 GelfWriter should write the host notification output
No idea why there was a hardcoded unreachable message inside.
2018-01-15 13:39:34 +01:00
Michael Friedrich
915d0417c9 Move CompatUtility::GetHostCurrentState() logic into DB IDO and StatusData features 2018-01-15 13:39:34 +01:00
Michael Friedrich
48516560bc Move the IDO specific compat notification filter logic into the feature 2018-01-15 13:39:34 +01:00
Michael Friedrich
d373b03907 Drop CompatUtility::GetCheckable*Interval() and hardcode their minute representation in compat features 2018-01-15 13:39:34 +01:00