Commit graph

2074 commits

Author SHA1 Message Date
Lord Hepipud
b846402196 Improve cache file writer with more robust handling 2022-08-27 15:28:52 +02:00
Lord Hepipud
fa66de09d7
Merge pull request #564 from Icinga:fix/securestring_argument_not_working_with_rest-api
Fix: SecureString arguments not working with REST-Api

Fixes checks like MSSQL using arguments of type `SecureString` not being usable with the Icinga for Windows REST-Api
2022-08-27 13:08:41 +02:00
Lord Hepipud
ab0d3913c8 Fixes SecureString arguments not working with REST-Api 2022-08-27 13:07:28 +02:00
Lord Hepipud
8dff45cbf5
Merge pull request #562 from Icinga:fix/fixes_perfdata_writer_in_jea_context
Fix: PerfData writer in JEA context without REST-Api

Fixes corrupt Performance Data, in case plugins were executed inside a JEA context without the REST-Api.
2022-08-26 22:38:39 +02:00
Lord Hepipud
2d40564a52 Fixes PerfData writer in JEA context without REST-Api 2022-08-26 22:38:09 +02:00
Lord Hepipud
72157d3a7f Fixes exception on update file removal 2022-08-26 15:36:52 +02:00
Lord Hepipud
1b3a12597a
Merge pull request #560 from Icinga:feature/improve_imc_update_uninstall_handling
Feature: Improves IMC update and uninstall handling for Framework

Improves handling for Icinga Management Console which will now terminate itself during full uninstallation and restarts after updating the Icinga PowerShell Framework, to apply changes directly
2022-08-26 15:34:08 +02:00
Lord Hepipud
adde8c0c81 Improves IMC update and uninstall handling for Framework 2022-08-26 15:33:32 +02:00
Lord Hepipud
d794135470
Merge pull request #561 from Icinga:doc/updates_grafana_docs_to_latest_state
Doc: Updates Grafana installation docs to latest state
2022-08-26 14:56:54 +02:00
Lord Hepipud
325dcdde75 Updates Grafana installation docs to latest state 2022-08-26 14:56:30 +02:00
Lord Hepipud
29b3f925bd
Merge pull request #559 from Icinga:doc/extends_upgrading_docs_for_v1.10.0
Docs: Extends docs for upgrading to v1.10.0 and adds KB entry
2022-08-26 09:11:17 +02:00
Lord Hepipud
a75c6a54bf Extends docs for upgrading to v1.10.0 and adds KB entry 2022-08-26 09:10:40 +02:00
Lord Hepipud
e6efba649f Fixes wrong graphic for overview screenshot on Grafana installation 2022-08-25 14:30:30 +02:00
Lord Hepipud
0153a49381 Updates docs 2022-08-25 14:23:56 +02:00
Lord Hepipud
20ffce493c Updates grafana docs 2022-08-25 12:57:28 +02:00
Lord Hepipud
edf9d27f39
Merge pull request #558 from Icinga:docs/grafana_dashboard_installation
Docs: Adds docs for grafana dashboard installation
2022-08-25 09:59:10 +02:00
Lord Hepipud
289f64ca93 Adds docs for grafana dashboard installation 2022-08-25 09:58:42 +02:00
Lord Hepipud
4c246d1dc5
Merge pull request #557 from Icinga:fix/unit_byte_thresholds_formatting_error
Fix: Byte unit Icinga threshold exception

Fixes byte unit Icinga threshold exception
2022-08-24 17:19:52 +02:00
Lord Hepipud
72b5d3d223 Fixes byte unit Icinga threshold exception 2022-08-24 17:16:55 +02:00
Lord Hepipud
7534a55949
Merge pull request #556 from Icinga:fix/certificate_folder_not_present_on_first_installation
Fix: Certificate folder not present on first installation

Fixes the certificate folder not present during first installation, preventing permissions properly set from the start which might cause issues once required
2022-08-24 16:59:19 +02:00
Lord Hepipud
11a9a3f0f3 Fixes certificate folder not present on first installation 2022-08-24 16:59:02 +02:00
Lord Hepipud
4c5eeaf50b
Merge pull request #550 from Icinga:fix/negative_thresholds_interpreted_as_argument
Fix: Negative thresholds interpreted as argument

Fixes negative thresholds being interpreted wrongly as argument instead of an value for an argument
2022-08-24 16:50:28 +02:00
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
8c5f9b5f21 Fixes negative thresholds interpreted as argument 2022-08-22 17:15:25 +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