Alexander A. Klimov
d7b465ce74
Implement IoBoundWorkSlot
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
fd239ba3fe
Adjust /v1/events, too
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
1941c1da28
Adjust all HTTP handlers (ex. /v1/events)
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
9ae1d732af
HttpServerConnection: actually handle requests
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
7fe0431ada
HttpServerConnection: verify requests via Boost ASIO + Beast
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
04a9879acc
Add HttpUtility::SendJsonError() overload for Boost/Beast
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
fc22cbaf09
Add HttpUtility::SendJsonBody() overload for Boost/Beast
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
2d7714802d
Allow CpuBoundWork to be done before end of scope
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
e21956e26e
ApiListener: detect protocol
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
539855bac1
ApiListener: verify peer
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
720c53ab77
ApiListener: perform TLS handshake
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
2615967e7f
Make ApiListener#m_SSLContext a Boost ASIO SSL context
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
e4f3422b3a
ApiListener: listen(2) via Boost ASIO
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
c547e9a863
Implement basic I/O engine
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
7c7c5e28f5
Implement LazyInit<T>
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
f38c68a4c6
Require Boost context, coroutine and date_time
2019-04-01 11:40:14 +02:00
Alexander A. Klimov
c262c701d9
Require Boost v1.66.0+
2019-04-01 11:40:14 +02:00
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
Maximilian Falkenstein
a205fd0887
Fix logrotate "Operation not permitted"
...
PR 75 (commit afb6346) added support for the 'su' directive of
logrotate. However, when using 'su', we cannot chown to arbitrary file
owners anymore, which means that unless the file has already been
created with the same permissions we'll get an error.
Fix this by not using chown and su together.
2019-03-31 22:16:06 +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 12b0b9a936fc842742e00cf14089139236d95b76)
2019-03-28 10:02:59 +01:00
Michael Friedrich
12b0b9a936
Fix code block in distributed monitoring docs
2019-03-28 09:56:49 +01:00
Michael Friedrich
cf9fe940d1
REST API Docs: Add Golang client code example
...
(cherry picked from commit 4296622f526dfe17ffe9155430f38f39616288a4)
2019-03-28 09:52:45 +01:00
Michael Friedrich
b188fa715c
Document that ca list
is not an inventory, add cleanup cycle
...
(cherry picked from commit 870de6a35d48136e2a393b8b975bd365dd602909)
2019-03-28 09:51:36 +01:00
Luiz Amaral
c918366e7a
Fix incorrect title in API docs
...
Partially picked from ae2de7b423fe67c6ca135123fe676b444e4b4367
2019-03-28 09:50:12 +01:00
Michael Insel
59c8ce91d8
Unify documentation code formatting
...
This unifies the documentation code formatting to use only backticks.
(cherry picked from commit 081d88436f66725152f5f5b58d07053da7ababd5)
2019-03-28 09:47:46 +01:00
Alexander A. Klimov
8702ee7dc2
HttpServerConnection#DataAvailableHandler(): reduce log spam
...
(cherry picked from commit f4ab0737d127284dae76483c7c4b0638e4a5f01d)
2019-03-28 09:44:38 +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