Commit graph

1801 commits

Author SHA1 Message Date
Lord Hepipud
786fa9f411
Merge pull request #555 from Icinga:fix/plugin_thresholds_invalid_conversion
Fix: Wrong conversion of certain threshold values

Fixes wrong conversion of values for `Convert-IcingaPluginThresholds`, which did not properly handle string values containing certain units inside the string itself
2022-08-24 16:50:04 +02:00
Lord Hepipud
95be5982bd
Merge pull request #526 from Icinga:feature/new_perfdata_handling
Feature: Rewrite PerfData Labels for multi output

Performance data should be created with some more adjustments to ensure we can properly create graphcs by using InfluxDB and Grafana as example
2022-08-24 16:33:27 +02:00
Lord Hepipud
ae01dbeb0a Rewrite PerfData Labels for multi output 2022-08-24 16:26:27 +02:00
Lord Hepipud
116eaa02f3 Fixes wrong conversion of certain threshold values 2022-08-24 09:57:30 +02:00
Lord Hepipud
5d661581e9
Merge pull request #554 from Icinga:fix/custom_hostname_automated_installation_director
Fix: Automated Icinga Director installation for custom hostname

Fixes certificate generation and host registration, in case a custom hostname was set during usage of `Install-Icinga` automation
2022-08-23 17:15:58 +02:00
Lord Hepipud
da31757841 Fixes automated Icinga Director installation for custom hostname 2022-08-23 16:48:20 +02:00
Lord Hepipud
0756b47128
Merge pull request #553 from Icinga:fix/exception_for_service_recovery_for_uninstalled_services
Fix: Exception for service recovery if service was not installed

Fixes an exception caused by service recovery setting, if the required service was not installed before.
2022-08-23 16:39:02 +02:00
Lord Hepipud
5daccac374 Fixes exception for service recovery if service was not installed 2022-08-23 16:38:25 +02:00
Lord Hepipud
eae4c38f33
Merge pull request #552 from Icinga:fix/cache_file_encoding_read_write
Fix: Cache file encoding read/write

Fixes file encoding for Icinga for Windows v1.10.0 to ensure the cache is always properly created with the correct encoding
2022-08-23 15:44:50 +02:00
Lord Hepipud
8c2b63399b Fixes cache file encoding read/write 2022-08-23 15:43:25 +02:00
Lord Hepipud
456cc26293
Merge pull request #551 from Icinga/fix/argument_does_not_support_percent_unit
Fix: Argument does not support percent unit error messagae

Fixes error message `This argument does not support the % unit` in case a `BaseValue` is set, but the actual value is `0`
2022-08-23 11:46:04 +02:00
Lord Hepipud
4100e05e84 Fixes error argument does not support percent unit 2022-08-23 11:40:58 +02:00
Lord Hepipud
11deff3403
Merge pull request #549 from Icinga:fix/remote_repo_sync_remote_path_reset
Fix: Remote Sync clears RemoteSource
2022-08-18 14:18:41 +02:00
Lord Hepipud
5fad73b4e7 Fixes Remote Sync clears RemoteSource 2022-08-18 14:17:37 +02:00
Lord Hepipud
a4d1971114
Merge pull request #548 from Icinga:fix/update_repository_resets_remote_path
Fix: RemoteSouce being cleared during Update-IcingaRepository

Fixes `RemoteSource` being cleared within repository `.json` files during `Update-IcingaRepository` tasks
2022-08-18 14:04:30 +02:00
Lord Hepipud
82af4f9da4 Fixes RemoteSouce being cleared during Update-IcingaRepository 2022-08-18 14:03:45 +02:00
Lord Hepipud
df4759fee3
Merge pull request #547 from Icinga:docs/wrong_install-icinga_arguments
Docs: Fixes wrong argument on Install-Icinga from file
2022-08-18 13:35:47 +02:00
Lord Hepipud
8107e1152e Fixes docs for wrong argument on Install-Icinga 2022-08-18 13:34:33 +02:00
Lord Hepipud
2c8a92fab5
Merge pull request #482 from Icinga:fix/utf8_encoding_errors
Fix: Encoding problems with special chars or German umlauts

Fixes Icinga for Windows plugin execution, by converting all parsed arguments and values from Icinga 2 from the `Default` of the PowerShell to `UTF8`.

This resolves issues during plugin execution on which arguments like `-Path`, `-TaskName` or anything else contained characters like `äöüß`.

In addition, we created an internal `StringBuilder` to resolve current issues on which unescaped strings within the Icinga configuration like `Icinga for Windows` instead of `'Icinga for Windows'`, are interpreted as `Icinga` instead of `Icinga for Windows` because of the whitespaces.

The new argument parser will test for this and create a proper string output value.
2022-08-17 17:36:42 +02:00
Lord Hepipud
787500c452 Fixes UTF8 encoding for plugin execution 2022-08-17 17:13:00 +02:00
Lord Hepipud
fd3ddd1538
Merge pull request #473 from Icinga:fix/icinga_config_string_dsl
Fix: Adds DSL parser to string arguments to fix whitespace and $ escaping

Fixes an issue with current implementation, as string values containing whitespaces or `$` are rendered wrong by default, if not set in single quotes `''`

Example:

Using `My Service`

will output

`My`
`Service`

This issue is already fixed for arrays, but plain string values on arguments require this workaround.

As Icinga 2 will always set arguments if a DSL is specified, regardless if a value is present or not, we have to use a `set_if` expression for this, but can't as the Icinga Director baskets currently ignore `set_if_format` which requires to be an expression instead of a string.
2022-08-17 17:02:16 +02:00
Lord Hepipud
f126065cad Adds DSL parser to string arguments, fixing errors 2022-08-17 17:00:36 +02:00
Lord Hepipud
a83d35e60e
Merge pull request #534 from Icinga:Fix_powershell_array_creation_in_icinga_config
Fix the creation of powershell arrays in Icinga2 configuration

Improves Icinga and Director configuration generator, by wrapping PowerShell arrays inside `@()` instead of simply writing them comma separated
2022-08-17 16:06:11 +02:00
RincewindsHat
4e182ca8ea Fix the creation of powershell arrays in Icinga2 configuration 2022-08-17 16:04:58 +02:00
Lord Hepipud
c200cc6f11
Merge pull request #543 from Icinga:fix/developer_mode_option_causes_always_cache_reset_while_using_icinga
Fix: icinga command always resetting cache

Fixes the `icinga` command which always resets the Framework cache, caused by newly introduced `Developer Mode`
2022-08-17 15:30:18 +02:00
Lord Hepipud
6d86c0fe28 Fixes icinga command always resetting cache 2022-08-17 15:26:52 +02:00
Lord Hepipud
b7a0d3892d
Merge pull request #542 from Icinga:fix/null-value_exception_for_no_background_daemons_configured
Fix: Null-value exception on missing background daemons

Fixes `You cannot call a method on va null-valued expression` during installation or while enabling JEA, in case no background daemons have been configured.
2022-08-17 14:59:12 +02:00
Lord Hepipud
906d616966 Fixes null-value exception on missing background daemons 2022-08-17 14:52:40 +02:00
Lord Hepipud
8af403de55
Merge pull request #541 from Icinga:fix/improve_location_handling_for_uninstaller
Fix: Uninstaller removal errors by improving location handling

Improves internal component uninstaller and Icinga for Windows uninstaller to ensure folders are not locked during uninstallation with the current PowerShell sessions
2022-08-17 12:39:54 +02:00
Lord Hepipud
9d422e8c67 Fixes uninstaller by improving location handling 2022-08-17 12:38:36 +02:00
Lord Hepipud
d1734f7daa
Merge pull request #540 from Icinga:doc/improve_custom_repo_installation_example
Docs: Fixes doc for custom repo example installation

Makes installation example for using custom repositories and director automation more clear and fixes missing `IfW-StableRepository` installation command entry.
2022-08-16 15:40:35 +02:00
Lord Hepipud
2511257b0f Fixes docs for custom repo example installation 2022-08-16 15:38:13 +02:00
Lord Hepipud
6dbe210337
Merge pull request #536 from Icinga/feature/easier_include_exclude_filtering
Feature: Adds function for easier include/exclude filtering

Adds generic function for easier managing include/exclude filtering for plugins and for cleaning arrays with not wanted content.
2022-08-05 09:36:50 +02:00
Lord Hepipud
5f8b59e4da
Merge pull request #537 from Icinga/doku_fix
Fix missing file name in URL
2022-07-13 20:15:58 +02:00
RincewindsHat
b5493eee69 Fix missing file name in URL 2022-07-13 14:02:41 +02:00
Lord Hepipud
f908d5b2bd Adds function for easier include/exclude filtering 2022-07-12 13:33:02 +02:00
Lord Hepipud
5263f0cddc
Merge pull request #532 from Icinga:fix/exceptions_for_missing_Cmdlets_on_encapsulated_calls
Fix: Exceptions on encapsulated PowerShell calls for missing Cmdlets

Fixes errors on encapsulated PowerShell calls for missing Cmdlets `Write-IcingaConsoleError` and `Optimize-IcingaForWindowsMemory`, while trying to restart services or appling configurations which require a new PowerShell session.
2022-06-08 16:50:54 +02:00
Lord Hepipud
02d1e71032 Fixes errors on encapsulated PowerShell calls 2022-06-08 16:48:19 +02:00
Lord Hepipud
b85f282f0b Updates changelog for v1.9.2 2022-06-03 17:12:58 +02:00
Lord Hepipud
1b2e3a6ee1
Merge pull request #531 from Icinga:feature/icinga_state_file_test_and_repair
Feature: Adds test and repair for the Icinga Agent state file

Adds new Cmdlets to test and repair the Icinga Agent state file, in case the file is corrupt.

The `Test-IcingaAgent` will now check by default of the state is present and in case it is, if the file is healthy or corrupted.

A repair command `Repair-IcingaStateFile` will remove the corrupted files afterwards to ensure the Icinga Agent can be started as service again.
2022-06-03 14:17:24 +02:00
Lord Hepipud
55be30f52d Adds feature to test/repair the agent state file 2022-06-03 14:13:39 +02:00
Lord Hepipud
6b0e177c48
Merge pull request #529 from Icinga:fix/package_manifest_reader_on_2012r2
Fix: Package manifest reader on Win 2012 R2

Fixes package manifest reader for Icinga for Windows components on Windows 2012 R2 and older.
2022-06-01 16:56:58 +02:00
Lord Hepipud
8ed242ad50 Fixes package manifest reader on Win 2012 R2 2022-06-01 16:56:12 +02:00
Lord Hepipud
126ac28ea2
Merge pull request #527 from Icinga:feature/dev_mode_include_components
Feature: Adds developer mode for components

Adds support for the developer mode to now include the modules as well and ensure, that available cache files are overwritten with the template again.

This ensures that we can develop new features and test them on the fly, without having to manipulate cache files manually.
2022-05-30 09:48:00 +02:00
Lord Hepipud
982ae84be6 Adds developer mode support for components 2022-05-30 09:46:18 +02:00
Lord Hepipud
384ab1cf89
Merge pull request #525 from Icinga:feature/vscode_cache_overwrite
Features: Adds developer mode to prevent cache overwrite

Adds new developer mode for `icinga` command and improved cache handling, to ensure within `-DeveloperMode` and inside a VS Code environment, the framework cache file is never overwritten, while still all functions are loaded and imported.
2022-05-24 14:02:53 +02:00
Lord Hepipud
8df5ab35bb Adds developer mode to prevent cache overwrite 2022-05-24 14:00:59 +02:00
Lord Hepipud
42320b55b3
Merge pull request #521 from Icinga:feature/adds_service_recovery
Feature: Adds support for service recovery

Adds support to set service recovery for the Icinga Agent and Icinga for Windows service, to restart them in case of a crash or error
2022-05-12 16:27:21 +02:00
Lord Hepipud
b512e26715 Adds support for service recovery 2022-05-12 16:24:11 +02:00
Lord Hepipud
5dfc8ac16b
Merge pull request #520 from Icinga:fix/adds_component_import_for_dev_tools
Fix: Missing component import func on dev tools

Adds missing Import-IcingaPowerShellComponent function while creating new components by using the developer tools
2022-05-12 10:36:54 +02:00