Commit Graph

10243 Commits

Author SHA1 Message Date
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
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 90de216cbb
Merge pull request #6479 from Icinga/feature/socketevents-inherit-object-6477
SocketEvents: inherit from Stream
2018-11-12 17:06:37 +01:00
Michael Friedrich cb0fd8d449
Merge pull request #6756 from MaBauMeBad/master
ITL: Add repeat_key for check_nwc_health
2018-11-12 17:02:53 +01:00
Michael Friedrich 798ef557d3 Update the GH issue template a bit 2018-11-12 13:26:30 +01:00
Michael Friedrich 9d73f0cf30 Implement unit tests for Dictionary initializers 2018-11-09 14:56:36 +01:00
Michael Friedrich 3fa9c1d8dd
Merge pull request #6762 from jschanz/master
fixes #6758
2018-11-09 13:50:21 +01:00
Schanz, Jens 2754175c6e fixes #6758
Add target network-online.target as requirement.
Service Icinga2 won't start before target is finally reached.
This prevents Icinga2 from failing if no entry for hostname.domain
is set in /etc/hosts
2018-11-09 13:17:08 +01:00
Michael Friedrich 9767ad14f7
Merge pull request #6759 from Icinga/bugfix/streamlogger-delete
Fix possible double free in StreamLogger::BindStream()
2018-11-09 11:50:38 +01:00
Michael Friedrich bd1cfc7bf9
Merge pull request #6760 from Icinga/bugfix/armhf-stretch
armhf: Apply workaround for timer tests with std::bind callbacks
2018-11-09 11:50:06 +01:00
Michael Friedrich 1f5555e1d6 Fix possible double free in StreamLogger::BindStream()
refs #6737
2018-11-08 15:51:58 +01:00
Michael Friedrich 2991993f6b Apply workaround for timer tests with std::bind callbacks 2018-11-08 15:03:41 +01:00