Michael Friedrich
6cce9c0fdd
API: Automatically repair broken packages
...
This partially reverts #7150 and avoids exceptions
inside the flow. Each time an empty active stage
is detected, Icinga tries to repair it from the
the given directory tree.
Also, the code now takes into account that it should
create the package storage on startup, whether within
the API object, or if disabled, inside the application.
Caching the active stages for packages in memory
only is in effect with the API feature being enabled.
This is useful for other deployed config packages,
not only the internal one.
fixes #7173
refs #7150
refs #7119
fixes #6959
2019-05-10 12:48:34 +02:00
Michael Friedrich
98039e88b4
Merge pull request #7165 from Icinga/feature/enhance-dev-docs
...
Doc: Improve the development chapter
2019-05-09 14:47:49 +02:00
Michael Friedrich
af9d2e2e93
Merge pull request #7171 from dgoetz/bugfix/doc-mysql-ha
...
Docs: Add Master-Master-Replication as option for mysql
2019-05-09 14:25:31 +02:00
Dirk Goetz
c4f1ad7abb
Docs: Add Master-Master-Replication as option for mysql
2019-05-09 09:25:07 +02:00
Michael Friedrich
81075088f1
Merge pull request #7169 from Icinga/feature/enhance-docs
...
Docs: Improve distributed, features HA, reachability chapters
2019-05-08 18:25:25 +02:00
Michael Friedrich
c3d7fc727b
Merge pull request #7168 from Icinga/bugfix/config-packages-regression
...
Fix deadlock in API config packages
2019-05-08 18:18:21 +02:00
Michael Friedrich
c2542710b7
Docs: Add initial sync for secondary HA masters, hints on IDO DB clusters
...
refs #6492
2019-05-08 18:16:54 +02:00
Michael Friedrich
07790e456b
Docs: Improve features chapter and add details on HA setups
...
refs #4855
2019-05-08 18:16:40 +02:00
Michael Friedrich
15326caf38
Docs: Add note for reachability calculation with checks disabled
...
refs #6844
2019-05-08 17:31:36 +02:00
Michael Friedrich
03324b2fb6
Config packages: Catch active stage exceptions in rare cases
...
Typically this already is detected on startup.
2019-05-08 16:43:27 +02:00
Michael Friedrich
704aabcb63
Avoid dead-lock with config packages and active stages
2019-05-08 16:06:46 +02:00
Michael Friedrich
2faf58dc9e
Merge pull request #7166 from Icinga/feature/pure-mariadb-libs
...
cmake: Update MySQL autodetection to support MariaDB
2019-05-08 12:03:23 +02:00
Markus Frosch
3d1536855a
cmake: Update MySQL autodetection to support MariaDB
2019-05-07 22:18:50 +02:00
Michael Insel
24ca8075ee
Doc: Install C++ & .NET Desktop in Windows Dev Env
...
For developing the Icinga Windows parts you need the C++ Desktop and
.NET Desktop workloads in Visual Studio.
2019-05-07 17:28:51 +02:00
Michael Insel
ea8f367873
Doc: Fix package build indentation
...
This fixes the broken indentation in the development package build
chapter (only visible in MkDocs).
2019-05-07 17:28:37 +02:00
Michael Insel
cb9424636c
Doc: Move VS Github extension under code tools
...
The Visual Studio Github extension is located under code tools.
2019-05-07 17:28:28 +02:00
Michael Insel
cfba1c173f
Doc: Fix Windows Dev Env indentation
...
This fixes the broken indentation in the Development with Visual Studio
chapter (only visible in MkDocs).
2019-05-07 17:28:19 +02:00
Michael Friedrich
736e0806d7
Merge pull request #7164 from Icinga/bugfix/notification-times-validate
...
Improve validation for times.{begin,end} in notification objects
2019-05-07 15:58:44 +02:00
Michael Friedrich
296fc06890
Merge pull request #7163 from Icinga/bugfix/db-ido-reachable
...
DB IDO: Use cached reachable state
2019-05-07 15:21:21 +02:00
Michael Friedrich
8ae206cd5d
Improve validation for times.{begin,end} in notification objects
...
fixes #6939
2019-05-07 15:20:06 +02:00
Michael Friedrich
5553438249
DB IDO: Use cached reachable state
...
fixes #6844
2019-05-07 13:47:09 +02:00
Michael Friedrich
11dc30407c
Merge pull request #7162 from Icinga/bugfix/cli-no-command-status-code
...
CLI: Return non-zero on unknown sub commands
2019-05-07 13:23:05 +02:00
Michael Friedrich
00bc0b2303
CLI: Return non-zero on unknown sub commands
...
fixes #6585
2019-05-07 12:43:53 +02:00
Michael Friedrich
aa88271d5a
Merge pull request #7158 from Icinga/bugfix/cli-node-wizard-zonename
...
CLI: Fix updates for NodeName/ZoneName constants
2019-05-07 11:14:28 +02:00
Michael Friedrich
4197bc9bcd
CLI: Fix updates for NodeName/ZoneName constants
...
fixes #7117
2019-05-06 10:19:56 +02:00
Michael Friedrich
edaaaae1e8
Merge pull request #7155 from Elias481/bugfix/evaluatefilter-assign-this-scope-6874
...
use current frame scope for permission filter function calls
2019-05-03 16:53:40 +02:00
Michael Friedrich
7dfd3535e5
Merge pull request #7157 from Icinga/bugfix/ido-conn-prevent-deactivate-on-reload
...
DB IDO: Do not deactivate objects during application reload/restart
2019-05-03 16:52:10 +02:00
Michael Friedrich
78e24c53f1
DB IDO: Do not deactivate objects during application reload/restart
...
This follows the same principle as with the shutdown handler,
and was introduced with the changed reload handling with 2.9.
Previously IsShuttingDown() was sufficient which got set at one
location.
SigUsr2 as handler introduced a new location where m_ShuttingDown
is not necessarily set yet. Since this handler gets called when
l_Restarting is enabled, we'll use this flag to avoid config update
events resulting in object deactivation (object->IsActive() always
returns false).
refs #5996
refs #6691
refs #6970
fixes #7125
2019-05-03 15:40:48 +02:00
Elias Ohm
c10ff9dd72
try without initialization of frame Locals which are not used for permissions filter and as far as I can see also not for query filters
2019-05-02 09:03:30 +02:00
Elias Ohm
53febdea81
use current frame scope for permission filter function calls
2019-05-02 07:35:19 +02:00
Michael Friedrich
759b090f81
Merge pull request #7150 from Icinga/bugfix/api-config-package-active-stage-name
...
Ensure that runtime created API objects survive a restart
2019-04-30 14:22:13 +02:00
Michael Friedrich
d80135ee30
Merge pull request #7153 from Icinga/bugfix/windows-plugins
...
Fix compiler warnings in Windows plugins
2019-04-30 14:21:23 +02:00
Michael Friedrich
f206cba394
Merge pull request #7152 from Elias481/fix/mysql8-headers-compatibility
...
account for adjusted interface of mysql8
2019-04-30 14:20:18 +02:00
Michael Friedrich
502c43fb12
Active packages: Don't try to fix broken config packages which are not cached yet
2019-04-30 12:19:35 +02:00
Michael Insel
25c2a2bb53
Fix compiler warnings in Windows plugins
...
This fixes a bunch of compiler warnings in the Windows plugins.
2019-04-30 10:32:44 +02:00
Markus Frosch
26df2cc4b2
Merge pull request #7145 from Icinga/feature/dotnet-4.6
...
Raise .NET target version to 4.6
2019-04-29 17:01:15 +02:00
Michael Insel
3b1bd4d131
Doc: Raise required .NET framework version
...
This raises the required .NET framework version in the installation
documentation. This also adds notes in the upgrading documentation
for the new .NET Framework requirements.
Update .NET requirements for development on Windows.
refs #7090
2019-04-29 12:19:09 +02:00
Michael Insel
54d9470c6b
Use WixNetFxExtension to detect installed .NET
...
This implements the use of the WixNetFxExtension for the WIX toolset, to
detect the installed .NET Framework version. If the installed .NET
version is lower than 4.6 the installation process will terminate with
the note to install at least .NET Framework 4.6.
refs #7090
2019-04-29 12:19:05 +02:00
Michael Friedrich
8a258de9bc
Merge pull request #6734 from leeclemens/remove-redundant-indexes
...
db ido: remove redundant mysql indexes
2019-04-29 09:13:22 +02:00
Michael Friedrich
c99b0f5f42
Merge pull request #7151 from marxin/fix-docs-chkconfig
...
Documentation: add missing argument to chkconfig command.
2019-04-29 09:01:52 +02:00
Elias Ohm
615f019c2e
account for adjusted interface of mysql8 (now utilizes c99 bools instead of my_bool labelled chars)
2019-04-29 00:18:15 +02:00
marxin
dd0c7a28dd
Documentation: add missing argument to chkconfig command.
2019-04-27 12:48:37 +02:00
Michael Friedrich
2bca7a5bb5
Repair broken API config packages at runtime
...
This means a new timer which checks every 5m whether the
active-stage can be read, and if not, it overwrites the
file on disk with the details from memory.
2019-04-26 14:53:36 +02:00
Michael Friedrich
f92c134b0a
Cluster: Don't try to sync objects from broken _api package
2019-04-26 14:43:38 +02:00
Michael Friedrich
0d6d48fd59
Daemon: Deal with exceptions from broken _api package
2019-04-26 14:43:10 +02:00
Michael Friedrich
c821e73364
Cache the API package stage name with a active-stage fallback
...
This prevents reading the file everytime the stageName is required
for when creating a runtime object via REST API.
2019-04-26 13:40:27 +02:00
Michael Friedrich
b878086565
Merge pull request #7148 from Icinga/feature/api-setup-cn
...
Add --cn parameter to 'api setup' CLI command allowing hostname overrides
2019-04-26 12:04:58 +02:00
Michael Friedrich
1078a0a824
Add --cn parameter to 'api setup' CLI command allowing hostname overrides
...
fixes #6649
2019-04-26 10:52:05 +02:00
Michael Friedrich
8edcba772d
Merge pull request #7146 from Icinga/feature/update-release-docs
...
Update release procedure
2019-04-26 10:26:25 +02:00
Michael Friedrich
712dbbc846
Drop the changelog generator script
2019-04-26 10:22:31 +02:00