Michael Friedrich
8313a1b2a9
Docs: Update README.md with a better description and direct URLs to icinga.com/docs
...
(cherry picked from commit e0b3e05c63
)
2019-02-11 13:27:38 +01:00
Michael Friedrich
7abed414ea
Docs: Update anchors
...
(cherry picked from commit ac9ed41537
)
2019-02-11 13:27:31 +01:00
Michael Friedrich
5dbc9dc0e8
Docs: More updates on dev environments, add mini TOC
...
(cherry picked from commit ec39a74453
)
2019-02-11 13:27:23 +01:00
Michael Friedrich
8f3c97dfef
Docs: Simplify INSTALL.md and point to icinga.com/docs
...
(cherry picked from commit 3827e15c4a
)
2019-02-11 13:27:15 +01:00
Michael Friedrich
0fa9947561
Docs: Delete extra docs for windows builds
...
This should be visible in icinga.com/docs, no extra
docs needed.
(cherry picked from commit c6fc144102
)
2019-02-11 13:26:59 +01:00
Michael Friedrich
ac80444129
Docs: First draft for development docs
...
(cherry picked from commit 4382b87baa
)
2019-02-11 13:26:53 +01:00
Michael Friedrich
146d055f4b
Add technical docs for the check scheduler (general, initial check, offsets)
...
David asked me about initial check offsets, so I wrote something :)
(cherry picked from commit 9409e93bc7
)
2019-02-11 13:26:01 +01:00
Michael Friedrich
29ff90a791
Update AUTHORS
2019-02-11 13:17:52 +01:00
Michael Insel
df68e65f05
Fix check_swap percentage calculation
...
This fixes the check_swap percentage calculation. When the pagefile is
turned off the available swap and total swap are 0 which leads to a
wrong calculation and misformated output.
refs #6913
(cherry picked from commit 4961e9ba62
)
2019-02-11 13:16:55 +01:00
Alexander A. Klimov
362c7eb28a
TcpSocket#Bind(): also set SO_REUSEPORT
...
refs #6898
(cherry picked from commit 984f7be030
)
2019-02-11 13:16:40 +01:00
Michael Friedrich
f6a62e71d8
ClusterEvents::AcknowledgementSet event should forward 'persistent' attribute
...
(cherry picked from commit 9f2ccfbaa0
)
2019-02-11 13:16:21 +01:00
Michael Insel
ab947d7c3b
Fix check_swap formatting
...
This fixes a small formatting mistake introduced by #6811 . To keep the
check_swap output in sync with all other plugins I fixed the formatting.
2019-02-11 13:15:41 +01:00
Michael Friedrich
4fb444d3b7
Fix Convert::ToLong(double val)
...
(cherry picked from commit b58cb17e4b
)
2019-02-11 13:15:18 +01:00
Michael Friedrich
b93ad277a1
Add a unit test for Convert::ToLong(double) - fails
...
(cherry picked from commit b1362aeb9b
)
2019-02-11 13:15:11 +01:00
Alexander A. Klimov
b888e06682
Downtime#HasValidConfigOwner(): respect Downtime#authoritative_zone
...
refs #6542
(cherry picked from commit c98d6a5254
)
2019-02-11 13:14:46 +01:00
Alexander A. Klimov
53248a70c2
Add and populate Downtime#authoritative_zone
...
refs #6542
(cherry picked from commit 5431eae116
)
2019-02-11 13:14:40 +01:00
Alexander A. Klimov
a24256993c
Downtime#HasValidConfigOwner(): wait for ScheduledDowntimes
...
refs #6542
(cherry picked from commit 39e0d787e8
)
2019-02-11 13:13:44 +01:00
Alexander A. Klimov
7c71218d88
Implement ScheduledDowntime::AllConfigIsLoaded()
...
refs #6542
(cherry picked from commit bbcf469af1
)
2019-02-11 13:13:36 +01:00
Markus Frosch
9f22300cf7
appveyor: Run Debug builds
...
[skip travis]
(cherry picked from commit ace12db110
)
2019-02-11 13:12:53 +01:00
Markus Frosch
3b14c733ed
tools/win32: Invalidate CMake cache on build
...
(cherry picked from commit fcfde9ac22
)
2019-02-11 13:12:42 +01:00
Michael Friedrich
ea64467c65
Revert "ThreadPool#Stop(): discard non-processed queue items"
...
This reverts commit 797ecd1539
.
2018-12-06 09:55:42 +01:00
Alexander A. Klimov
c8a1155e3d
Remove redundand check for object existence on creation via API
...
refs #3937
2018-12-05 16:05:05 +01:00
Michael Friedrich
190f381c7a
Docs: Add a section for DB IDO Cleanup
...
refs #6784
2018-12-05 16:04:50 +01:00
fluxX04
29a3a6d4d7
update apache status command to be identical according the itl
2018-12-05 16:04:35 +01:00
Alex
9800e69f9f
Doc fix: documentation link for apt
...
Fixes `check_apt` documentation link to point to the right man page.
2018-12-05 16:04:18 +01:00
David Lublink
62fcbe3c01
* BugFix : Wrong operator on stride variable causing incorrect behaviour ( #6749 )
2018-12-05 16:01:35 +01:00
Leon Stringer
a5659e469a
Doc fix: error in example path.
2018-12-05 16:01:10 +01:00
Michael Friedrich
173455de22
Call SSL_shutdown() at least twice
2018-12-05 16:00:53 +01:00
Edgar Fuß
3b4dc854cf
Put running downtimes in effect
...
If Icinga2 was restarted with a newly configured downtime that should
be in effect at the time of restart, the should-be-running segment of
it was not put into effect.
Add new LegacyTimePeriod::FindRunningSegment() and
ScheduledDowntime::FindRunningSegment() functions, call the latter in
ScheduledDowntime::CreateNextDowntime() before trying the old
ScheduledDowntime::FindNextSegment().
2018-12-05 16:00:28 +01:00
Edgar Fuß
e76ec0d42e
Remove spurious string in debug message
...
Remove a spurious " at " in the "Evaluating segment" debug message in ScheduledDowntime::FindNextSegment().
2018-12-05 15:59:58 +01:00
Edgar Fuß
ce6ab9a948
Remove dead code
...
Remove some dead code in ScheduledDowntime::CreateNextDowntime().
2018-12-05 15:59:52 +01:00
Alexander A. Klimov
f3f402fa7e
Socket engine: drop life support objects
...
refs #6477
2018-12-05 15:59:29 +01:00
Alexander A. Klimov
ad06c4f5ab
Make SocketEventDescriptor#EventInterface a SocketEvents::Ptr
...
refs #6477
2018-12-05 15:59:23 +01:00
Alexander A. Klimov
0b03a3d8f8
SocketEvents: inherit from Stream
...
refs #6477
2018-12-05 15:59:17 +01:00
Michael Friedrich
78e470996d
Only create downtimes from non-paused ScheduledDowntime objects in HA enabled cluster zones
2018-12-05 15:47:41 +01:00
Alexander A. Klimov
1d6cec5a99
HttpServerConnection#DataAvailableHandler(): be aware of being called multiple times concurrently
...
refs #6816
2018-12-05 15:46:32 +01:00
Alexander A. Klimov
797ecd1539
ThreadPool#Stop(): discard non-processed queue items
2018-12-05 15:46:03 +01:00
Michael Friedrich
1c8fba182c
Add a code comment for connection: close handling
2018-12-05 15:45:17 +01:00
Sven Wegener
080f666b55
Restore 'Connection: close' behaviour in HTTP responses
...
Actually the `corked` functionality caused problems with
not closing connections properly.
Full Analysis: https://github.com/Icinga/icinga2/issues/6799#issuecomment-443710338
Full credits to @swegener :)
fixes #6799
2018-12-05 15:45:09 +01:00
Michael Insel
18de1f7e11
Fix state conditions in check_memory and check_swap
...
This fixes the state conditions in check_memory and check_swap. This
turns the if/else if/else statements in simple if statements, since they
won't work properly when both thresholds are broken.
This also implements a new function to get a given state as wstring.
2018-12-05 15:44:44 +01:00
Michael Friedrich
e2169f17f2
Release version 2.10.2
2018-11-13 17:13:54 +01:00
Michael Friedrich
09e70217fd
Imitialize ICINGA2_ERROR_LOG inside the Systemd environment
...
The initscript uses a local default, which is not here for Systemd.
2018-11-13 16:37:27 +01:00
Michael Friedrich
0046dcad7b
DB IDO: Don't enqueue queries when the feature is paused (HA)
...
fixes #5876
refs #6739
2018-11-13 12:01:50 +01:00
Michael Friedrich
1a77d996ee
Implement unit tests for Dictionary initializers
2018-11-13 11:49:19 +01:00
Michael Insel
f4f2d862e6
Fix deadlock in GraphiteWriter
...
This fixes a deadlock in the GraphiteWriter feature, which is visible
during the reload process. The reload thread waits for the
GraphiteWriter to finish, but the GraphiteWriter can't finish because
it's stuck in `SendMetric()` waiting for a lock which is hold by the
reload thread.
2018-11-13 09:13:55 +01:00
Michael Friedrich
a1e30f6ef5
Apply workaround for timer tests with std::bind callbacks
2018-11-12 17:08:06 +01:00
Michael Friedrich
b3e98a842f
Fix possible double free in StreamLogger::BindStream()
...
refs #6737
2018-11-12 17:07:51 +01:00
Michael Friedrich
46ed01348c
Ensure that API/JSON-RPC messages in the same session are processed and not stalled
...
This basically drops the "corked" implementation which just stalled the
TLS IO polling after some requests. If you need sort of rate limiting
for these events, use an external TLS proxy which terminates that in front
of Icinga.
fixes #6635
2018-11-12 17:07:38 +01:00
Michael Friedrich
ec939373d0
Improve error handling for invalid child_options for API downtime actions
...
fixes #6712
2018-10-29 13:52:43 +01:00
Michael Friedrich
4424b203c2
Minor styleguide
2018-10-29 13:51:25 +01:00