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
Max Rosin
d8462cf6cd
Fix the Icinga2 version check for versions with more than 5 characters
...
The previous implementation assumed that every version number will have
5 characters. With the release of 2.10.0 this does not work anymore.
The new implementation extracts everything from the second character to
the first dash. This should work as long as the version string is in a
format like 'v2.10.1-8-gaebe6da'.
fixes Icinga#6703
2018-10-29 13:51:09 +01:00
Michael Friedrich
30853e6041
Revert code from icinga.com update
2018-10-24 12:34:38 +02:00
Michael Friedrich
9f919a2d1e
Docs: Add package related changes to the upgrading docs
...
refs #6714
2018-10-23 13:58:12 +02:00
Michael Friedrich
fac43e9eaf
Fix regression for wrong objects.cache path overwriting icinga2.debug file
...
The 'statusdata' feature is deprecated, although it affects 'object list'.
fixes #6705
refs #6707
2018-10-19 12:31:24 +02:00
Michael Friedrich
582d8f4961
Release version 2.10.1
2018-10-18 11:31:02 +02:00
Michael Friedrich
ab8c9ad39c
Merge pull request #6701 from Icinga/feature/readme-github-tag
...
Add GitHub release tag to README
2018-10-18 11:06:57 +02:00
Michael Friedrich
a9129e8e56
Add GitHub release tag to README
2018-10-18 11:06:04 +02:00
Michael Friedrich
4739697bda
Merge pull request #6700 from Icinga/feature/docs-addons
...
Enhance the addon chapter in the docs
2018-10-18 10:40:17 +02:00
Michael Friedrich
f7be04c22f
Enhance the addon chapter in the docs
2018-10-18 10:38:11 +02:00
Michael Friedrich
83ad98420a
Merge pull request #6699 from Icinga/feature/update-icinga-com
...
Update to https://icinga.com/
2018-10-18 10:19:50 +02:00
Michael Friedrich
12ef5c053f
Docs: Use the correct URLs in various places
2018-10-18 09:59:33 +02:00
Michael Friedrich
3cb2c1d143
icinga.com: Update everything else
2018-10-18 09:50:53 +02:00
Michael Friedrich
1a8a2c25f2
icinga.com: Update test and tools
2018-10-18 09:45:36 +02:00
Michael Friedrich
a2cb542a2e
icinga.com: Update '*.sql'
2018-10-18 09:41:54 +02:00
Michael Friedrich
0072a6f7d9
icinga.com: Update icinga-app
2018-10-18 09:39:34 +02:00
Michael Friedrich
eabea68c56
icinga.com: Update config files (ITL, etc.)
2018-10-18 09:37:59 +02:00
Michael Friedrich
dea5ec614e
icinga.com: Update CMakeLists.txt
2018-10-18 09:35:18 +02:00
Michael Friedrich
e6f404ec4a
icinga.com: Update docs for /community/get-involved -> /community
2018-10-18 09:32:14 +02:00
Michael Friedrich
44c3b83769
icinga.com: Update '*.ti'
2018-10-18 09:30:00 +02:00
Michael Friedrich
a036bda601
icinga.com: Update '*.h'
2018-10-18 09:29:29 +02:00
Michael Friedrich
dab53448bc
icinga.com: Update *.{h,c}pp
2018-10-18 09:27:04 +02:00
Michael Friedrich
aa7201aaad
Merge pull request #6696 from Icinga/bugfix/remove-default-environment
...
Remove default environment, regression from e678fa1aa5
2018-10-17 13:01:24 +02:00
Michael Friedrich
7abfe13a00
Remove default environment, regression from e678fa1aa5
...
refs #6512
fixes #6694
2018-10-17 12:45:13 +02:00
Michael Friedrich
c0398ed9ba
Merge pull request #6691 from Icinga/bugfix/reload-signal-handler-dump-state-file
...
Add missing shutdown/program state dumps for SIGUSR2 reload handler
2018-10-16 14:05:17 +02:00