Commit Graph

10487 Commits

Author SHA1 Message Date
Alexander A. Klimov 268bd85752 Url#m_Query: test order preservation
refs #6536
2018-12-21 11:54:48 +01:00
Alexander A. Klimov eeb609d4ae Url#m_Query: preserve order
refs #6536
2018-12-21 11:52:37 +01:00
Alexander A. Klimov 17e86f98a2 Make UnameHelper() efficient
refs #6452
2018-12-20 16:37:04 +01:00
Alexander A. Klimov 12f3149eef Checkable: require zone to be set if command_endpoint is set
refs #6666
2018-12-20 13:59:28 +01:00
BarbUk 5109f7f788 Add haproxy CheckCommand definition
Haproxy plugin check haproxy csv statistics page and reports response
time and backends sessions count
2018-12-20 14:54:53 +04:00
BarbUk c97c42bff4 Fix ITL CheckCommand disk
Add -N/--include-type option, available since release 1.5.
2018-12-20 13:22:59 +04:00
BarbUk 18250896ca Add fail2ban CheckCommand definition
The check_fail2ban plugin use the fail2ban-client binary
to monitor fail2ban jails.
2018-12-20 11:59:28 +04:00
Michael Friedrich c4d57afa3d
Merge pull request #6821 from Icinga/bugfix/downtimes-disappear-satellite-6542
Don't delete downtimes in satellite zones
2018-12-18 16:13:36 +01:00
Michael Friedrich b40400e79f
Merge pull request #6826 from Icinga/bugfix/downtimes-recreate-satellite-6542
Downtime#HasValidConfigOwner(): wait for ScheduledDowntimes
2018-12-18 16:12:34 +01:00
Michael Friedrich 359cb14a52
Merge pull request #6843 from Icinga/appveyor
Improve AppVeyor builds
2018-12-18 14:53:14 +01:00
Michael Friedrich f68a0d3167
Merge pull request #6806 from BarbUk/feature/itl-check-lsyncd
Add lsyncd CheckCommand definition
2018-12-18 14:23:51 +01:00
Markus Frosch ace12db110 appveyor: Run Debug builds
[skip travis]
2018-12-18 12:23:39 +01:00
Markus Frosch fcfde9ac22 tools/win32: Invalidate CMake cache on build 2018-12-18 11:52:06 +01:00
Alexander A. Klimov c98d6a5254 Downtime#HasValidConfigOwner(): respect Downtime#authoritative_zone
refs #6542
2018-12-17 15:54:31 +01:00
Alexander A. Klimov 5431eae116 Add and populate Downtime#authoritative_zone
refs #6542
2018-12-17 15:54:23 +01:00
Michael Friedrich eab49d3df8
Merge pull request #6829 from Icinga/feature/api-events-notification-command
API Event Streams: Add 'command' for Notification events
2018-12-17 13:58:16 +01:00
Michael Friedrich ba8d79f3c5 API Event Streams: Add 'command' for Notification events
fixes #6824
2018-12-07 09:37:03 +01:00
Alexander A. Klimov 39e0d787e8 Downtime#HasValidConfigOwner(): wait for ScheduledDowntimes
refs #6542
2018-12-06 15:44:57 +01:00
Alexander A. Klimov bbcf469af1 Implement ScheduledDowntime::AllConfigIsLoaded()
refs #6542
2018-12-06 15:44:51 +01:00
Michael Friedrich 75e06e9c0b
Merge pull request #6825 from ekeih/docs/explain-retry-interval-for-passive-checks-6795
Document that retry_interval is only used after an active check result
2018-12-06 11:25:40 +01:00
Max Rosin 00757919b3 Document that retry_interval is only used after an active check result
fixes #6795
2018-12-06 11:24:57 +01:00
Michael Friedrich bf4ecbed69 Revert "ThreadPool#Stop(): discard non-processed queue items"
This reverts commit 30e6d0f809.

refs #6815
2018-12-06 09:56:49 +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
Michael Insel 1352b15220 Fix string comparison on edge cases
This fixes a few edge cases where the string comparison failed before.
2018-12-05 20:12:06 +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 b58ce84b0e
Merge pull request #6817 from Icinga/bugfix/stalled-tls-connections-6816
HttpServerConnection#DataAvailableHandler(): be aware of being called multiple times concurrently
2018-12-05 11:35:35 +01:00
Michael Friedrich 0cc559b775
Merge pull request #6820 from Icinga/bugfix/scheduled-downtime-ha-duplicates
Only create downtimes from non-paused ScheduledDowntime objects in HA enabled cluster zones
2018-12-05 11:33:29 +01:00
Michael Friedrich 0ad27d5436
Merge pull request #6823 from transitiv/feature/itl-apt-list
ITL: Support --list argument to check_apt
2018-12-05 11:32:31 +01:00
Michael Friedrich 08c1539561
Merge pull request #6815 from Icinga/bugfix/reload-while-api-dos
ThreadPool#Stop(): discard non-processed queue items
2018-12-05 11:11:49 +01:00
Michael Friedrich 26f411638f
Merge pull request #6757 from Icinga/bugfix/no-more-notifications-recovery-filtered
Fix that no_more_notifications gets reset when Recovery notifications are filtered away
2018-12-05 11:05:44 +01:00
Michael Friedrich b6212e92fb
Merge pull request #6750 from davidtek/master
#6749 Wrong operator on stride variable causing incorrect behaviour
2018-12-05 11:05:05 +01:00
Michael Friedrich c3ec1f9a21
Merge pull request #6801 from BarbUk/feature/itl-check-varnish
Add varnish CheckCommand definition
2018-12-05 10:52:28 +01:00