Commit Graph

10682 Commits

Author SHA1 Message Date
Michael Friedrich 1e124fd76d
Merge pull request #7062 from Icinga/bugfix/ido-reconnect-failover
Improve DB IDO HA failover behaviour
2019-04-01 10:30:11 +02:00
Michael Friedrich 066e7c2740 Docs: Add failover changes to upgrading chapter 2019-04-01 09:31:55 +02:00
Michael Friedrich 2913291a17 ido Check: Add last failover timestamp to output when HA enabled IDO is running 2019-04-01 09:31:03 +02:00
Michael Friedrich 4a26a48778 Code Quality: Move authority.cpp into the ApiListener class scope 2019-04-01 08:51:18 +02:00
Michael Friedrich 149f640fd8 Improve DB IDO HA failover behaviour
- Decrease Object Authority updates to 10s (was 30s)
- Decrease failover timeout to 30s (was 60s)
- Decrease cold startup (after (re)start) with no OA updates to 30s (was 60s)
- Immediately connect on Resume()
- Fix query priority which got broken with #6970
- Add more logging when a failover is in progress

```
[2019-03-29 16:13:53 +0100] information/IdoMysqlConnection: Last update by endpoint 'master1' was 8.33246s ago (< failover timeout of 30s). Retrying.

[2019-03-29 16:14:23 +0100] information/IdoMysqlConnection: Last update by endpoint 'master1' was 38.3288s ago. Taking over 'ido-mysql' in HA zone 'master'.
```

- Add more logging for reconnect and disconnect handling
- Add 'last_failover' attribute to IDO*Connection objects

refs #6970
2019-04-01 08:50:00 +02:00
Thomas Widhalm 0cc129e9e5 Add command `icingacli-elasticsearch` to ITL
fixes #7063
2019-03-29 16:50:33 +01:00
Jean Flach c612cf9c04 Document check_command may be a string 2019-03-28 13:33:52 +01:00
Michael Friedrich 48b3d25ce2 Fix license headers 2019-03-28 11:47:47 +01:00
Michael Friedrich 0611f3e009 Add docs for NotificationResult value type 2019-03-28 11:45:03 +01:00
Michael Friedrich 566e59bbfa Make NotificationResult available for events: Cluster and Features 2019-03-28 11:42:28 +01:00
Michael Friedrich 1706b297a5 Implement last_notification_result handling for Notification objects 2019-03-28 10:43:35 +01:00
Michael Friedrich ac483f2a8a Add OnNewNotificationResult signal and ProcessNotificationResult handler 2019-03-28 10:42:04 +01:00
Michael Friedrich 9621fd2e4b Add NotificationResult class 2019-03-28 10:42:04 +01:00
Michael Friedrich 34e03644fb Fix code block in distributed monitoring docs
refs #6998

(cherry picked from commit 12b0b9a936)
2019-03-28 10:02:59 +01:00
Michael Friedrich 7af20e9750
Merge pull request #7052 from Icinga/feature/ha-enable
Disable feature HA by default (InfluxDB, Graphite, Gelf, Elasticsearch, OpenTSDB, Perfdata)
2019-03-27 17:16:18 +01:00
Michael Friedrich c2bf4cca9f Disable feature HA by default (InfluxDB, Graphite, Gelf, Elasticsearch, OpenTSDB, Perfdata) 2019-03-27 15:29:47 +01:00
Michael Friedrich bea24c20f7
Merge pull request #7051 from Icinga/bugfix/influxdb-flush-buffer
InfluxDB/Elasticsearch: Flush only if there's data in the buffer
2019-03-27 12:16:07 +01:00
Michael Friedrich 93030709f5 Implement previous_state_change 2019-03-27 11:43:14 +01:00
Michael Friedrich 06eacd13ab Also apply buffer flush fix for Elasticsearch feature 2019-03-27 11:35:41 +01:00
Michael Friedrich cb3729bc6a InfluxDB: Flush only if there's data in the buffer
Regression from 2.10.4
2019-03-27 11:26:00 +01:00
Michael Friedrich 09dfdaa71b
Merge pull request #7047 from Icinga/feature/update-issue-templates
Update issue templates
2019-03-26 09:50:21 +01:00
Michael Friedrich d587321cd4
Merge pull request #7049 from Icinga/feature/docs-api-golang
REST API Docs: Add Golang client code example
2019-03-26 09:48:52 +01:00
Michael Friedrich 4296622f52 REST API Docs: Add Golang client code example 2019-03-26 09:46:36 +01:00
Michael Friedrich b9b171b084
Merge pull request #6998 from Icinga/bugfix/doc-code-formatting
Unify documentation code formatting
2019-03-26 09:40:17 +01:00
Michael Insel 081d88436f Unify documentation code formatting
This unifies the documentation code formatting to use only backticks.
2019-03-26 09:11:03 +01:00
Michael Friedrich 4c51a64e32
Update issue templates 2019-03-25 16:56:00 +01:00
Michael Friedrich 3bec99bc47
Merge pull request #7042 from dgoetz/bugfix/selinux_sudo-7039
SELinux: add a boolean to allow execution of plugins via sudo
2019-03-25 11:38:04 +01:00
Michael Friedrich d881abea5f
Merge pull request #7046 from Icinga/feature/docs-ca-list-cleanup
Document that `ca list` is not an inventory, add cleanup cycle
2019-03-25 11:01:25 +01:00
Michael Friedrich 870de6a35d Document that `ca list` is not an inventory, add cleanup cycle 2019-03-25 10:59:55 +01:00
Dirk Goetz 1c30a571d4 SELinux: add a boolean to allow execution of plugins via sudo
Fixes #7039
2019-03-22 11:26:54 +01:00
Michael Friedrich f4e9028543
Merge pull request #7037 from lamaral/bugfix/api_doc_title
Fix incorrect title in API docs
2019-03-21 11:30:39 +01:00
Luiz Amaral ae2de7b423
Fix incorrect title in API docs
The API docs had the title "List Configuration Packages and their Stages" written twice.
2019-03-20 11:34:59 +01:00
Michael Friedrich fc1070c92b
Merge pull request #7035 from Icinga/feature/es-content-type
Elasticsearch: Change Content-Type header to 'application/x-ndjson' for bulk streams
2019-03-20 10:49:54 +01:00
Michael Friedrich 27a41804fc Elasticsearch: Change Content-Type header to 'application/x-ndjson' for bulk streams
fixes #6609
2019-03-20 10:13:38 +01:00
Michael Friedrich 9c163c3848
Merge pull request #7034 from Icinga/feature/nsclient-update
Update NSClient++ to 0.5.2.39
2019-03-19 16:59:02 +01:00
Michael Friedrich 40df0a26d9 Update RELEASE checklist
(cherry picked from commit 07161899e0)
2019-03-19 13:11:50 +01:00
Michael Friedrich 0ae4d9ec81 Merge branch 'support/2.10' 2019-03-19 12:56:33 +01:00
Michael Friedrich 7063163c68 Release version 2.10.4 2019-03-19 12:56:28 +01:00
Michael Friedrich de21dc3909 Release version 2.10.4 2019-03-19 12:55:29 +01:00
Michael Insel 60bc79ffa2 Fix check_perfmon to support non-localized names
This fixes check_perfmon to support non-localized names on localized
Windows machines. The fix handles the given performance counter by
default as non-localized name, if none is found it falls back to the
localized name.

refs #5546

(cherry picked from commit 5da4fbde3b)
2019-03-19 12:33:53 +01:00
Michael Friedrich 2fdc1ccd7a Docs: Update supported package repos in Getting Started chapter
- Add Raspbian
- Link to support matrix
- Use generic source list generators for Debian/Ubuntu
- Reorder dependent repo chapters (EPEL, etc.)
- Drop el6 instructions for IDO

(cherry picked from commit 1c546a7b51)
2019-03-19 12:27:18 +01:00
Michael Friedrich 9149af50af
Merge pull request #7033 from Icinga/feature/docs-package-repos
Docs: Update supported package repos in Getting Started chapter
2019-03-19 12:25:59 +01:00
Michael Friedrich 1c546a7b51 Docs: Update supported package repos in Getting Started chapter
- Add Raspbian
- Link to support matrix
- Use generic source list generators for Debian/Ubuntu
- Reorder dependent repo chapters (EPEL, etc.)
- Drop el6 instructions for IDO
2019-03-19 12:08:19 +01:00
Michael Friedrich 07161899e0 Update RELEASE checklist 2019-03-19 11:50:30 +01:00
Michael Friedrich 4257ccecca Update AUTHORS 2019-03-19 11:50:17 +01:00
Michael Friedrich 0649b6fd3b
Merge pull request #7031 from Icinga/feature/metricwriters-logging
Improve logging for parsing metrics in features
2019-03-19 11:34:48 +01:00
Alexander A. Klimov e72da3b479 check_network -h: drop non-existent feature
refs #6155

(cherry picked from commit 9f26569bcc)
2019-03-19 11:32:16 +01:00
Michael Insel c996520e73 Fix heading level in development chapter
This fixes the wrong heading level for the Debian development
environment.

(cherry picked from commit da3775b6db)
2019-03-19 11:32:00 +01:00
Dirk Goetz 221215f4cd SELinux: add unreserved_port_type attribute to icinga2_port_t
Fixes #7029

(cherry picked from commit 726be2fec2)
2019-03-19 11:31:43 +01:00
Alexander A. Klimov 29e8961cda ElasticsearchWriter: don't leak sockets
refs #7018

(cherry picked from commit b2e2b587da)
2019-03-19 11:31:20 +01:00