Commit graph

1596 commits

Author SHA1 Message Date
Lord Hepipud
b92d6d52da
Merge pull request #396 from Icinga:feature/add_plugin_documentation_creation
Feature: Adds function to create plugin documentation

Adds new function `Publish-IcingaPluginDocumentation` which was previously only available within the plugins package.
2021-11-08 16:37:08 +01:00
Lord Hepipud
4a4c49d886 Adds function to create plugin documentation 2021-11-08 16:36:40 +01:00
Lord Hepipud
aa4750e92a
Merge pull request #389 from Icinga:feature/developer_tools
Feature: Adds developer tools for easier start and management

Adds additional Cmdlets to get working on new Icinga for Windows components and publishing of  modules including validation alot easier.

`New-IcingaForWindowsComponent`: Creates an entire new module structure depending on input values, to get a base skeleton for further development ready

`Publish-IcingaForWindowsComponent`: Properly adds documentation, possible plugin configuration and dependencies of files to the manifest file, ensuring the integrity of the module

`Test-IcingaForWindowsComponent`: Allows to test your module and checks for code styling issues and errors as well as testing the module itself, if it can be imported, printing errors in case of problems

`Open-IcingaForWindowsComponentInEditor`: Allows to open a certain Icinga for Windows component in an editor to get started a lot easier. Only supports `Visual Studio Code` at the moment
2021-11-07 12:14:23 +01:00
Lord Hepipud
495e0d05c3 Adds developer utilities 2021-11-07 12:10:05 +01:00
Lord Hepipud
3fdd13ddac
Merge pull request #393 from Icinga:feature/generic_eventlog_reader_and_ifw_reader
Feature: Adds generic EventLog reader and IfW reader

Adds generic reader function `Read-IcingaWindowsEventLog`, allowing to read any EventLog as stream on the console and adds in addition `Read-IcingaForWindowsLog` for reading Icinga for Windows specific logs
2021-11-05 13:37:43 +01:00
Lord Hepipud
f4dd59461c Adds generic EventLog reader and IfW reader 2021-11-05 13:37:06 +01:00
Lord Hepipud
b4ced772f5
Merge pull request #392 from Icinga:feature/add_support_for_eventlog_reader
Feature: Adds support to read EventLog for logs

Starting with Icinga 2.13.0, the Agent will write to the Windows EventLog by default. Our `Read-IcingaAgentLogFile` Cmdlet will now support both and read from the EventLog if the feature is enabled and 2.13.0 or later is being installed
2021-11-04 18:53:57 +01:00
Lord Hepipud
a1fdb854ec Adds support to read EventLog for logs 2021-11-04 18:51:02 +01:00
Lord Hepipud
d759a4dd31
Merge pull request #390 from Icinga:fix/threshold_interval_fails_on_minute_to_hour_conversion
Fix: Thershold interval time conversion

Fixes an issue with `-ThresholdInterval` unit conversion, which causes an error if you want to convert `60m` or `1h`, as the used object is returning 0 for minutes in this matter, as the object itself moved to hours instead.

We should use `TotalMinutes` instead of `Minutes` on our `TimeSpan` object and round every single value returned to 0 digits.
2021-11-03 17:27:21 +01:00
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