10091 Commits

Author SHA1 Message Date
Michael Friedrich
6e822672be Add log message for log rotate; update docs
refs #6737

(cherry picked from commit df25b183cb256440a53d1c2fc582b98ceb25d444)
2019-05-16 15:28:52 +02:00
Alexander A. Klimov
98d674f780 Timer::TimerThreadProc(): use C++11 lambda instead of bind()
refs #6737

(cherry picked from commit 7a8f8fd7349269cb2e0e670b8d2a44693e5c07c7)
2019-05-16 15:27:53 +02:00
Alexander A. Klimov
f551666a7d StreamLogger#BindStream(): set #m_FlushLogTimer only if needed
refs #6737

(cherry picked from commit 622f68412440d4fa3ac1b347a929087073bc24f9)
2019-05-16 15:27:29 +02:00
Elias Ohm
304ba1fd6c Fix for double-free (and possibly other memory-corruption related) crashes at logrotate time
this is a direct fix of the issue revealing the problem that leads to crash

verification done with a patched icinga2 where the execution-order of the code lines of counter-parts involved in re-incrementing/decrementing Timer:Ptr is forced to be the one that leads to the obeserverd segfaults

refs #6737

(cherry picked from commit 52e3db279ab9ff348456234b8a033e703c6f7580)
2019-05-16 15:26:47 +02:00
marxin
54538986b8 Documentation: add missing argument to chkconfig command.
(cherry picked from commit dd0c7a28ddc2fd0f78f3fbdb1d4651d29e604e1c)
2019-05-16 15:25:01 +02:00
Michael Friedrich
0927078685 Docs: Use jo to format JSON body for API actions, esp. unix timestamps
(cherry picked from commit 21225c6b48a084c3d96ee1e7c938d30e19a2e395)
2019-05-16 15:23:56 +02:00
Michael Friedrich
469cd2503c CLI: Fix updates for NodeName/ZoneName constants
fixes #7117

(cherry picked from commit 4197bc9bcd957a1edcf5cec80a9d03fcc4b6c313)
2019-05-16 15:23:35 +02:00
Michael Friedrich
d0ac7f464d DB IDO: Do not deactivate objects during application reload/restart
This follows the same principle as with the shutdown handler,
and was introduced with the changed reload handling with 2.9.
Previously IsShuttingDown() was sufficient which got set at one
location.

SigUsr2 as handler introduced a new location where m_ShuttingDown
is not necessarily set yet. Since this handler gets called when
l_Restarting is enabled, we'll use this flag to avoid config update
events resulting in object deactivation (object->IsActive() always
returns false).

refs #5996
refs #6691
refs #6970

fixes #7125

(cherry picked from commit 78e24c53f1564269f744de5efe50cb099cadbdde)
2019-05-16 15:22:16 +02:00
Michael Friedrich
553bc54297 Improve REST API docs
- Better explanation for filters and filter_vars
- Update examples to use filters in the body only, don't fuck around with the URL parameters.
- Better explain actions and their intent
- More insights into config packages and their intention
- Improve API clients and add the tables from icinga2-api-examples
- Formatting for CLI requests

(cherry picked from commit 31170db12349f67b48b56f67342225a19e0f34e3)
2019-05-16 14:52:37 +02:00
Michael Friedrich
e55cad5c1a Fix headings in the docs
refs #6918

(cherry picked from commit e909302fd90ccc4aecdb99bcc04750c4aa0f098d)
2019-05-16 14:52:33 +02:00
Michael Friedrich
defb5b505f Docs: Improve config object types chapter
(cherry picked from commit 2ce82b56d480cb0af469cc5d6feb8eb52c3f9c49)
2019-05-16 14:49:56 +02:00
Alexander A. Klimov
9c0507f725 Doc: adjust default of ApiListener#bind_host
(cherry picked from commit 915525dbcdb1af544aa7518250955d9c1d78fa3a)
2019-05-16 14:46:00 +02:00
Michael Friedrich
d6b4c96d02 Add technical concept docs for our internal JSON-RPC message API
(cherry picked from commit 3c591a03b048cc3fd00ad75e467797f9448f3fa5)
2019-05-16 14:40:40 +02:00
Michael Friedrich
1149ed7506 Technical Concepts: Add config compiler references
(cherry picked from commit 219602761166375b51089aaa25c9d7e28cf692d3)
2019-05-16 14:40:09 +02:00
Peter Eckel
2a1a3726bf Avoid duplicating non-zero count message replay messages in the debug log
(cherry picked from commit 5d59863725ea843312fd89a9fc9e434187a56650)
2019-05-16 14:31:12 +02: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
de21dc3909 Release version 2.10.4 v2.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 5da4fbde3b501c174ec028b7a7ae036194a5a77e)
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 1c546a7b510a1f15059932ccc60ab52161c68915)
2019-03-19 12:27:18 +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
Alexander A. Klimov
e72da3b479 check_network -h: drop non-existent feature
refs #6155

(cherry picked from commit 9f26569bcc203d98498466cc1ffa6549a9b81998)
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 da3775b6dbc0541558b9ee3618b55f057297a137)
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 726be2fec262f10b42649d1dad5099336e8610e9)
2019-03-19 11:31:43 +01:00
Alexander A. Klimov
29e8961cda ElasticsearchWriter: don't leak sockets
refs #7018

(cherry picked from commit b2e2b587da530a5b79f746ed0db5b3804b502e07)
2019-03-19 11:31:20 +01:00
Alexander A. Klimov
1fc3a77c4a InfluxdbWriter: don't leak sockets
refs #6989

(cherry picked from commit 2a6b122413dfc8762a7839bbe41c125455a17b5c)
2019-03-19 11:30:01 +01:00
Michael Friedrich
c9d27e7baa
Merge pull request #7032 from Icinga/feature/backport-defer
Backport Defer class for 2.10
2019-03-19 11:28:48 +01:00
Michael Friedrich
7e87a61a62 Backport Defer class for 2.10 2019-03-19 11:23:18 +01:00
Bas Couwenberg
32dc61a788 Fix nested hostgroup example
In Icinga 1.x the list of members was set on the group object, in Icinga 2 the list of groups is set on the member objects.

(cherry picked from commit 8d3c8fd107f5c6e0da5551992208213fd4b8a867)
2019-03-19 11:20:30 +01:00
Alexander A. Klimov
bac6f17eff Notification#BeginExecuteNotification(): SetNextNotification() correctly
refs #5561

(cherry picked from commit 3b2054761ad90e71fba82d13cd57d7388f524993)
2019-03-19 11:20:09 +01:00
Jean Flach
cd65ffc55c Don't run UpdateObjectAuthority for Comments and Downtimes
(cherry picked from commit 2aff6a5887112259d795401e907a879ce424db51)
2019-03-19 11:19:50 +01:00
Michael Friedrich
2e2e4ffcec Fix that no_more_notifications gets reset when Recovery notifications are filtered away
Hello from the OSMC hackathon :)

(cherry picked from commit d082e8c1b19c88a68e0381db7f5806f31fe8523d)
2019-03-19 11:19:32 +01:00
Michael Insel
214874d401 Update Windows agent documentation screenshots
Updates the Windows agent screenshots in the documentation with the new design.

refs #6729

(cherry picked from commit a1540aebcc4b082fbdcd56bbae69b02063a2c517)
2019-03-19 11:19:08 +01:00
Michael Insel
b24b19214b Update Windows Agent design
This updates the Windows agent design to use the Icinga background
image.

refs #6729

(cherry picked from commit 68faeccff817b15c9c7838670c49067aaf242c43)
2019-03-19 11:18:59 +01:00
Alexander A. Klimov
188ff9b25a Assignment operators doc: tell what the { } are for
refs #5430

(cherry picked from commit 5e08e033ad6ddaba59734b49a5775fd0965f2b5f)
2019-03-13 10:34:06 +01:00
Alexander A. Klimov
c64f974f3c Doc: write systemd lower-case
See spelling chapter in https://freedesktop.org/wiki/Software/systemd/

(cherry picked from commit e7f2370ada3129881e989a40eb40636f8c6dd131)
2019-03-13 10:33:48 +01:00
Lee Garrett
d4646acdbf Typo and link fix
(cherry picked from commit 0a582905c5624056beca58cfcba44d954a20a91b)
2019-03-13 10:33:02 +01:00
Alexander A. Klimov
58c2ea8a76 Ignore failure of unit test base_utility/comparepasswords_issafe
... as volatile system load may cause false negatives

(cherry picked from commit 646feb76e06155f908a4dcee51144db8f05a114f)
2019-03-13 10:32:18 +01:00
Alexander A. Klimov
1436b7dc1c Don't require OS headers to provide SO_REUSEPORT
(cherry picked from commit bf0c68757f99f88b43d7696f98d8361f39b83b82)
2019-03-13 10:31:09 +01:00
Michael Friedrich
101783d7ef Release version 2.10.3 v2.10.3 2019-02-25 16:53:13 +01:00
Michael Friedrich
47c969eadc Dynamically print current copyright year in --version output
(cherry picked from commit c1fedab7aea73f6aa9c9357c54c409665239d698)
2019-02-25 16:41:39 +01:00
Michael Friedrich
14ef7cbc1f Fix formatting in development docs
(cherry picked from commit 710e4fa55e919032bd3b45c774130e1f938d3f81)
2019-02-25 13:49:19 +01:00
Alexander A. Klimov
a4f774aa94 Test Utility::ComparePasswords()
(cherry picked from commit 1b00331a88c396ab8c94188855074ed907a5bd66)
2019-02-25 13:34:59 +01:00
Alexander A. Klimov
f98e40d880 Secure ApiUser::GetByAuthHeader() against timing attacks
(cherry picked from commit 9558ebc0f46febc7692bbb65394708b78b276d46)
2019-02-25 13:34:51 +01:00
Michael Friedrich
51b637fc19
Merge pull request #6971 from Icinga/bugfix/downtime-acti
Activate downtimes before any checkable object
2019-02-25 10:14:30 +01:00