Commit graph

1787 commits

Author SHA1 Message Date
Lord Hepipud
bfd0237256 Fixes thershold interval time conversion 2021-11-03 17:23:42 +01:00
Lord Hepipud
6e9f256d98
Merge pull request #387 from Icinga:fix/use_alias_for_command_args_on_config_generation_if_available
Fix: Use alias for args name on config generation

In case we are using aliases for command arguments/parameters, we should always use the first alias we find as argument instead of using the real name.
2021-10-28 17:29:46 +02:00
Lord Hepipud
cf2125d7a2 Use alias for args name on config generation 2021-10-28 17:28:41 +02:00
Lord Hepipud
ba941c1eca
Merge pull request #386 from Icinga:fix/check_generator_for_alias_checks
Fix: Check command generator for aliases

In case we are using aliases for check commands, to keep backwards compatibility, we have to ensure that check commands actually use the name of the alias for custom variables, to not break the naming and prevent wrong usage of custom variables.
2021-10-28 16:33:25 +02:00
Lord Hepipud
6cb7743954 Fixes check command generator for aliases 2021-10-28 16:13:35 +02:00
Lord Hepipud
97ebe4613d
Merge pull request #385 from Icinga:doc/adds_win11_win2022_support_matrix
Doc: Adds Windows 11 and Windows 2022 to support matrix
2021-10-27 11:51:14 +02:00
Lord Hepipud
70565570f9 Adds Win 11 and Win 2022 to support matrix 2021-10-27 11:50:19 +02:00
Lord Hepipud
22b493b24a
Merge pull request #384 from Icinga:fix/removes_module_loaded_testing
Fix: Module not loaded exception

Fixes an exception, telling the user a module is not loaded or installed, while the check itself returned a false value.

However, this check in general is useless and should be removed, as we can only check for components being loaded already, making it impossible to verify that a command is not available and loading the corresponding module, as we are unable to detect which module belongs to the command.

Therefor the entire test for this just causes CPU overhead and loading time for nothing.
2021-10-27 11:04:31 +02:00
Lord Hepipud
da9819de14 Fixes module not loaded exception 2021-10-27 11:01:00 +02:00
Lord Hepipud
8d91b69177
Merge pull request #378 from theFeu/master
Introduction: Update old link
2021-10-27 10:11:05 +02:00
Lord Hepipud
65f9f948d8
Merge pull request #383 from Icinga:feature/move_restapi_apichecks_into_framework
Feature: Move REST-Api and Aoi-Checks into Framework

As the long-term goal will be to move away from check execution with local PowerShell instances, we move the REST-Api and Api-Checks feature directly into the Framework.

By adding everything directly into the Framework, we ensure that no side-loading of modules is required and we can use the API and checker features to increase performance by a lot and provide direct setup and installation procedures inside the IMC.
2021-10-27 10:10:06 +02:00
Lord Hepipud
253cb7f4dd Adds Rest-Api and Api-Checks into framework 2021-10-27 10:06:13 +02:00
Lord Hepipud
fedc34bbb2
Merge pull request #382 from Icinga:fix/repository_hash_generator
Fix: Repository Hash generator

Fixes the hash generator for the repository hash, which always returned the same hash.
2021-10-26 09:07:18 +02:00
Lord Hepipud
234b771fd6 Fixes repo hashes, which always had the same hash 2021-10-26 09:04:50 +02:00
Feu Mourek
5bfa90d68c
Introduction: Update old link 2021-10-08 08:23:09 +02:00
Lord Hepipud
30ea5370e1
Merge pull request #376 from Icinga:fix/imc_install_json_error_handling
Fix: IMC error handling on invalid JSON for install command/file

Fixes error handling for IMC on automated installation with installation command or answer file, which will not abort the installation in case invalid JSON is provided or commands are used inside the command, not valid or exist on the system.

The system will write an error message and abort the installation in case of initial errors now.
2021-09-24 10:26:23 +02:00
Lord Hepipud
d88e61d33d Fixes error handling on IMC for invalid JSON 2021-09-24 10:24:32 +02:00
Lord Hepipud
f99230eb0e
Merge pull request #375 from Icinga:fix/exception_on_last_uninstall_message
Fix: Exception on last uninstall message print

Fixes an exception on the last message output while running `Uninstall-IcingaForWindows`, as the used function is no longer available due to Framework uninstallation.

We now replaced the last messages with proper `Write-Host` output
2021-09-15 13:41:49 +02:00
Lord Hepipud
0b544f9be7 Fixes error on last uninstall message print 2021-09-15 13:41:02 +02:00
Lord Hepipud
14ee09cb84
Merge pull request #373 from Icinga:fix/repository_name_with_dot
Fix: Repository names with dots fail to load

Fixes repository names with dots (`.`) by replacing them with `-`, as otherwise the config parser will fail finding the config object
2021-09-14 10:10:46 +02:00
Lord Hepipud
0b4db2ba70 Fixes config parser with dot in keys 2021-09-14 10:07:48 +02:00
Lord Hepipud
7ca347a7ab
Merge pull request #371 from Icinga:fix/imc_indention_error_host_address
Fix: Wrong IMC indention on host address summary

Fixes wrong indention on Icinga parent host address at IMC configuration summary.
2021-09-13 16:03:58 +02:00
Lord Hepipud
435e686127 Fixes wrong IMC indention on host address summary 2021-09-13 16:03:27 +02:00
Lord Hepipud
060dbdada0
Merge pull request #370 from Icinga:fix/installation_summary_header
Fix: IMC summary header has misleading title

Fixes misleading title for IMC summary header, which implies the installation instantly starts on continue, instead of notifying properly about the installation being started on the next step including the export of the answer file and install command.
2021-09-13 15:48:09 +02:00
Lord Hepipud
40cced71f2 Fixes IMC summary header from misleading title 2021-09-13 15:47:20 +02:00
Lord Hepipud
e37f55264e
Merge pull request #369 from Icinga:fix/remove_api_checks_experimental_warning
Fix: Removes experimental warning for api check feature

Removes experimental warning for Api-Check Forwarder feature and adds link to docs.
2021-09-13 13:43:29 +02:00
Lord Hepipud
f67a5ce6dc Removes experimental warning for api check feature 2021-09-13 13:42:58 +02:00
Lord Hepipud
78cab91c3a
Merge pull request #368 from Icinga:fix/repo_lookup_local_path
Fix: Repository lookup on local path for ifw.repo.json

Fixes lookup for local ifw.repo.json, in case the path was specified with `ifw.repo.json` included, like `C:\icinga\stable\ifw.repo.json`
2021-09-13 12:21:54 +02:00
Lord Hepipud
e29ba83778 Fixes repo lookup on local path for ifw.repo.json 2021-09-13 12:21:35 +02:00
Lord Hepipud
b9e244a1a1
Merge pull request #367 from Icinga:fix/director_register_state_not_saved
Fix: Icinga Director state not being saved on overview

In case the Icinga Director host is registered in the IMC over the Self-Service API, the menu is defaulting to the message "Do not register host" instead of displaying the correct configuration.

This is only a displaying issue and has no technical impact, but we still need to fix that.
2021-09-10 14:22:34 +02:00
Lord Hepipud
de0e58720b Fixes Director state not being saved on overview 2021-09-10 14:22:11 +02:00
Lord Hepipud
d02a12ead1
Merge pull request #366 from Icinga:fix/icinga_director_error_handling_imc
Fix: Improves error handling on IMC for Director

Fixes error message handling for Icinga Director while using IMC.
2021-09-10 11:41:22 +02:00
Lord Hepipud
9de78c6222 Improves error handling on IMC for Diretor 2021-09-10 11:40:58 +02:00
Lord Hepipud
5ae390f0f6
Merge pull request #365 from Icinga:fix/ignore_agent_config_on_install_failure
Fix: Icinga environment corruption on Icinga Agent installation failure

In case the Icinga Agent could not be installed, regardless of the reason, we should not write any zone, api or other related config to the environment.

By doing so, we can corrupt the environment and make it impossible for the Icinga Agent to be installed in the future, unless we manually delete the folowing directories:

* `C:\ProgramData\icinga2`
* `C:\Program Files\ICINGA2`
* `C:\Program Files (x86)\ICINGA2` (only for x86 installations)
2021-09-09 18:28:35 +02:00
Lord Hepipud
8492a39009 Fixes Icinga env corruption on Agent failure 2021-09-09 18:27:40 +02:00
Lord Hepipud
7b6b9e8224
Merge pull request #364 from Icinga:fix/long_user_lookup_on_large_ad
Fix: Long lookup for users on large AD

Fixes a long lookup for the user table on environments with a large Active Directory.
2021-09-09 15:48:58 +02:00
Lord Hepipud
34b5d2a249 Fixes long lookups for users on large AD 2021-09-09 15:48:01 +02:00
Lord Hepipud
d36a0976bd
Merge pull request #363 from Icinga:fix/jea_pid_empty_no_continue
Fix: Unneeded continue on no JEA pid present

In case no JEA pid is present, we should not lookup any processes and simply return `False` instead.
2021-09-09 15:23:23 +02:00
Lord Hepipud
cc3f750956 Fixes unneeded continue on no JEA pid 2021-09-09 15:23:09 +02:00
Lord Hepipud
acbbc4f68b
Merge pull request #362 from Icinga:fix/repository_install_fail_fileshare
Fix: Repository component install from file share

The installation from file share locations will fail, in case no `LocalPath` is assigned to the repository configuration and is also failing by invalid escaping of the path.

This is now fixed as the `RemotePath` is the only one being required and in addition downloads from file shares of component packages is now working as intended.
2021-09-09 12:05:27 +02:00
Lord Hepipud
8a5995603a Fixes repository install from fileshare 2021-09-09 12:04:40 +02:00
Lord Hepipud
068958d79a
Merge pull request #361 from Icinga:fix/director_self_service_no_agent_install
Fix: IMC fails on Icinga Director Self-Service no Agent installation set

In case you are using the IMC and the Icinga Director Self-Service API, it can happen that once entered the Self-Service API key, the shell will only look like this:

```
Input (Default 0 and c ):
```

Without any other form content.

This occured, in case inside the Self-Service API config the entry `Installation Source` was set to `- no automatic installation -`.

This fix resolves the issue and renders the form including the settings correctly.
2021-09-09 11:05:03 +02:00
Lord Hepipud
824c4f2da2 Fixes Director Self-Service no Agent install 2021-09-09 11:04:36 +02:00
Lord Hepipud
43e71832ea Updates master to v1.7.0 2021-09-06 16:36:34 +02:00
Lord Hepipud
2833e579f4
Merge pull request #357 from Icinga:doc/icinga_for_windows_v1.6.0
Docs: Updates documentation for v1.6.0
2021-09-06 16:35:00 +02:00
Lord Hepipud
8fee6ab55c Updates documentation for v1.6.0 2021-09-06 15:33:39 +02:00
Lord Hepipud
75eeac71ef
Merge pull request #360 from Icinga:fix/plain_check_execution
Fix: Plain Plugin Cmdlet execution on shell

Fixes plain execution of plugin Cmdlets on the PowerShell, which caused an exception of being thrown before, as no check command was assigned.
2021-09-06 15:33:19 +02:00
Lord Hepipud
d59bed6595 Fixes plain plugin cmdlet execution on shell 2021-09-06 15:32:22 +02:00
Lord Hepipud
bbbc6ee8e9
Merge pull request #358 from Icinga:fix/compare_function_windows2012r2
Fix: Compare function in Windows 2012 R2
2021-09-03 21:49:56 +02:00
Lord Hepipud
7614944068 Fixes compare function in Windows 2012 R2 2021-09-03 21:49:29 +02:00