Commit Graph

10477 Commits

Author SHA1 Message Date
Alexander A. Klimov 7e630c7732 HttpServerConnection#DataAvailableHandler(): be aware of being called multiple times concurrently
refs #6816
2018-12-03 19:05:41 +01:00
Alexander A. Klimov 30e6d0f809 ThreadPool#Stop(): discard non-processed queue items 2018-12-03 16:38:52 +01:00
Michael Friedrich 7b39591c6b
Merge pull request #6811 from Icinga/bugfix/win-check-memory-state-condition
Fix state conditions in check_memory and check_swap
2018-12-03 15:06:30 +01:00
Michael Friedrich 5f25eb6b2d Add a code comment for connection: close handling 2018-12-03 14:40:50 +01:00
Sven Wegener a83dbc9de5 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-03 14:27:37 +01:00
Michael Friedrich e0b3e05c63 Docs: Update README.md with a better description and direct URLs to icinga.com/docs 2018-12-03 13:23:21 +01:00
Michael Friedrich ac9ed41537 Docs: Update anchors 2018-12-03 11:15:04 +01:00
Michael Friedrich ec39a74453 Docs: More updates on dev environments, add mini TOC 2018-12-03 11:11:35 +01:00
Michael Friedrich 3827e15c4a Docs: Simplify INSTALL.md and point to icinga.com/docs 2018-12-03 11:11:35 +01:00
Michael Friedrich c6fc144102 Docs: Delete extra docs for windows builds
This should be visible in icinga.com/docs, no extra
docs needed.
2018-12-03 11:11:35 +01:00
Michael Friedrich 4382b87baa Docs: First draft for development docs 2018-12-03 11:11:35 +01:00
Michael Friedrich 5ef23ee06d
Merge pull request #6808 from Icinga/bugfix/put-request-0-byte-file-3937
Remove redundand check for object existence on creation via API
2018-11-30 13:21:21 +01:00
BarbUk fe42c091a4 Documentation: fix sudoers file name 2018-11-30 01:32:20 +04:00
Michael Insel 160a7716c5 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-11-29 22:16:57 +01:00
BarbUk 4944800d09 Indentation: space to tab 2018-11-30 00:41:27 +04:00
BarbUk 4afbf2f987 Documentation: use icinga user instead of nagios 2018-11-30 00:40:05 +04:00
BarbUk 9d1a6d7492 Indentation: space to tab 2018-11-30 00:36:06 +04:00
BarbUk d57d3cbb49 Indentation: space to tab 2018-11-30 00:33:53 +04:00
Alexander A. Klimov 8de5326d23 Remove redundand check for object existence on creation via API
refs #3937
2018-11-29 17:51:53 +01:00
Michael Friedrich 1f06ba2dfc
Merge pull request #6800 from Icinga/bugfix/win-check-perfmon-english-names
Fix check_perfmon to support non-localized names
2018-11-29 13:01:09 +01:00
BarbUk 3b0bfd51bf Add lsyncd CheckCommand definition 2018-11-28 16:55:23 +04:00
BarbUk b6e97a9eff Add documentation for sudoers configuration 2018-11-28 13:39:51 +04:00
BarbUk ef0c68fe79 correct command definition 2018-11-28 11:37:49 +04:00
BarbUk 16b0042791 Add btrfs CheckCommand definition
Check a btrfs mountpoint health and disk space allocated
2018-11-28 00:04:10 +04:00
BarbUk 42cbd365bf Add more info about varnish_param 2018-11-27 19:35:58 +04:00
BarbUk 2e462d63a4 Add varnish CheckCommand definition
This definition use check_varnish to monitore a varnish instance.
This closes #5122
2018-11-27 19:22:36 +04:00
Michael Insel 5da4fbde3b 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
2018-11-26 17:18:38 +01:00
Michael Friedrich d17b403583
Merge pull request #6791 from Icinga/feature/docs-ido-cleanup
Docs: Add a section for DB IDO Cleanup
2018-11-22 09:32:00 +01:00
Michael Friedrich 1540fdbadb
Merge pull request #6776 from fluxX04/apache2-doc-fix
Doc fix: update apache section
2018-11-21 11:24:47 +01:00
Michael Friedrich f1d26848ac Docs: Add a section for DB IDO Cleanup
refs #6784
2018-11-21 11:20:54 +01:00
Michael Friedrich f3cd3eb870 DSL: Implement getenv()
This patch also restores Utility::GetFromEnvironment()
and replaces the hardcoded `getenv()` calls.
2018-11-19 18:11:16 +01:00
Martijn van Duren a763e74a50 Make mail-{host,service}-notification.sh as POSIX-compliant as possible. 2018-11-16 14:23:56 +01:00
fluxX04 114da89ef0 update apache status command to be identical according the itl 2018-11-15 09:54:58 +01:00
Michael Friedrich aec0f6de15
Merge pull request #6775 from Icinga/feature/docs-tech-concepts-check-scheduler
Add technical docs for the check scheduler (general, initial check, offsets)
2018-11-14 14:41:23 +01:00
Michael Friedrich 9409e93bc7 Add technical docs for the check scheduler (general, initial check, offsets)
David asked me about initial check offsets, so I wrote something :)
2018-11-14 14:27:52 +01:00
Michael Friedrich 2ce3e1d49d Merge branch 'support/2.10' 2018-11-14 09:09:00 +01:00
Michael Friedrich 00694cb675 Release version 2.10.2 2018-11-14 09:08:51 +01:00
Michael Friedrich e2169f17f2 Release version 2.10.2 2018-11-13 17:13:54 +01:00
Michael Friedrich 6998436db1
Merge pull request #6480 from ajaffie/feature/win-check-update-4720
Modify windows check_update command to allow specifying thresholds.
2018-11-13 16:40:26 +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 31c81dc7ee
Merge pull request #6773 from Icinga/bugfix/systemd-error-log
Initialize ICINGA2_ERROR_LOG inside the systemd environment
2018-11-13 16:36:54 +01:00
Michael Friedrich 6a4c5e6bcb Imitialize ICINGA2_ERROR_LOG inside the Systemd environment
The initscript uses a local default, which is not here for Systemd.
2018-11-13 14:02:03 +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 Friedrich 26d7b59ff6
Merge pull request #6771 from Icinga/feature/tests
Implement unit tests for Dictionary initializers
2018-11-13 11:48:55 +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 374dd91deb
Merge pull request #6770 from Icinga/bugfix/graphitewriter-deadlock
Fix deadlock in GraphiteWriter
2018-11-13 08:36:51 +01:00
Michael Insel b0cf92fd17 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-12 20:12:40 +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