Fix: Error and exception handling over API checks
Fixes error and exception handling while using API-Checks, which now will in most cases always return a proper check-result object and also abort while running into plugin execution errors, in case a server is not reachable by the time sync plugin as example.
Feature: Adds support for -RebuildCache flag on icinga cmd to rebuild component cache
Adds support to simply use `-RebuildCache` for
```powershell
icinga -RebuildCache;
```
or
```powershell
icinga -Shell -RebuildCache;
```
to generate a new cache file not only for the Framework (like before), but also for all installed components of Icinga for Windows.
This makes it easier for regular use and error handling, as users will not have to remember a different Cmdlet or use the `-DeveloperMode` to force Icinga for Windows to rebuild everything.
Feature: Adds support to configure Director Self-Service config string
This new feature allows to configure the Icinga Director Self-Service call during registration, by modifing the JSON-String. This will only apply to the first time registration of a host and is not modified again, unless the host and director keys for this specific host object are removed.
This works directly inside the IMC installation wizard as well as for the exported installation command or file.
By doing so, you can manually define the IP-Address with `address` key in your JSON as well as the display name of an object with `display_name`. Example:
```json
{ "address": "127.0.0.1", "display_name": "Example Host" }
```
The following constants are available inside the configuration:
`$ifw.hostaddress$`: Will use the default IP-Address automatically fetched from the system
`$ifw.hostname$`: The current hostname of the host, without FQDN and not modiying upper/lowercase
`$ifw.hostfqdn$`: The current FQDN of the host, without case modification
For lower and upper case modification, you can use `.tolower` or `.toupper` for the hostname and FQDN, example:
```json
{ "address": "127.0.0.1", "display_name": "$ifw.hostname.tolower$" }
```
Feature: Adds support to ignore SSL errors on IMC, Shell and Installer
Adds support to set the flag `-NoSSLValidation` for Cmdlets `icinga` and `Install-Icinga`, to ignore errors on self-signed certificates within the environment.
Example:
```powershell
icinga -NoSSLValidation
```
Icinga Shell:
```powershell
icinga -Shell -NoSSLValidation
```
Feature: Adds support to allow Agent cipher list configuration
Adds support for `Write-IcingaAgentApiConfig` function to configure the Icinga Agent TLS cipher list setting.
Fix: Framework migration error on multi framework installation
Fixes the framework migration tasks which fails in case multiple versions of the framework are installed, printing warnings in case there is
Fix: Recursive loop on first loading of Framework
Prevents the Icinga for Windows framework to recursively import itself on first startup or after reseting the cache file.
Doc: Updates metric over time docs for intervals
Icinga for Windows changed the behavior on how metrics over time `-TimeIndexes` argument works, as you now have to add the unit for the time to build the average for.
Fix: ThresholdInterval key detection on newer systems
On the latest Windows versions, the behavior for the dynamic detection of the argument `-ThresholdInterval` changed, as the name has been updated from `-ThresholdInterval` to `-ThresholdInterval:`.
This fix will now allow both versions of the naming, to support old and new environments.
Fix: Plugin failure for switch args with ThresholdInterval
Fixes failing calls for plugins which use a switch argument like `-NoPerfData`, which is followed directly by the `-ThresholdInterval` argument
Fix: Config generator should not use set_if = true
We should nbever use `set_if` = true inside the Icinga Configuration or Director Baskets. This will result in the Icinga Director always flagging a certain object as modified.
Fix: Service exclude filter for wildcards
Fixes service filter to handle exclude with wildcards instead of requiring the full service name (not applying to the display name)
Fix: Background service registration
Fixes background service registration caused by migration task for v1.10.0 being executed even when no services were defined before
Fix/hostname override for old installer
Adds support for hostname override for old installer function `Start-IcingaAgentInstallWizard` [moreamazingnick]