Commit graph

1700 commits

Author SHA1 Message Date
Lord Hepipud
a1d32a584a Adds KW for Microsoft Defender problems 2022-02-07 15:10:54 +01:00
Lord Hepipud
2d883dbe79
Merge pull request #466 from Icinga:fix/plugin_doc_creator_metrics_over_time_url
Fix Link to metrics over time docs

Fixes link to metric over time for plugin documentation writer
2022-02-07 13:23:44 +01:00
Lord Hepipud
167aa4f215 Fixes link to metrics over time docs 2022-02-07 13:23:03 +01:00
Lord Hepipud
b9aaaa050f
Merge pull request #465 from Icinga:doc/knowledge_base_extension
Docs: Extend knowledge base
2022-02-07 13:08:09 +01:00
Lord Hepipud
07e5164299 Adds additional knowledge base entries 2022-02-07 13:07:04 +01:00
Lord Hepipud
caf89664f5
Merge pull request #464 from Icinga:fix/uninstall_ifw_not_removing_service_binary
Fix: Icinga for Windows uninstaller not removing service binary

Fixes the Icinga for Windows uninstaller which did not remove the service binary.
2022-02-06 17:12:40 +01:00
Lord Hepipud
6b38f27338 Fixes ifw uninstaller to remove service binary 2022-02-06 17:12:17 +01:00
Lord Hepipud
f923a9e6e3
Merge pull request #453 from Icinga:feature/optimize_imc
Feature: Rework IMC menu and extend feature set

Reworks the menu structure of the Icinga for Windows Management Console and makes it the default when running the command `icinga`.

For developers you can use `icinga -Shell` to receive the Icinga shell as before. In addition improves error handling of IMC, by caching all `Errors` and `Warnings` during action execution, printing them afterwards.
2022-02-04 16:13:08 +01:00
Lord Hepipud
c129bb627c Optimizes IMC and centralizes data 2022-02-04 16:11:02 +01:00
Lord Hepipud
436fca375b
Merge pull request #463 from Icinga:fix/repository_nolonger_readded_on_force
Fix: Add-IcingaRepository removes and adds repository with -Force

Fixes `Add-IcingaRepository` which now only overrides the `RemotePath` by using `-Force` instead of removing and adding the repository again, causing problems with installation orders over IMC for example
2022-02-03 13:38:25 +01:00
Lord Hepipud
58ed9292c6 Fixes repository order/config override on force 2022-02-03 13:36:43 +01:00
Lord Hepipud
87b0e84749
Merge pull request #462 from Icinga:fix/agent_installed_before_imc
Fix: Icinga Agent not configured properly if not installed over IMC and installation disabled there

Fixes Icinga Agent installation over IMC and Director Self-Service, in case the Self-Service is configured to not install the Icinga Agent or the user manually set `Do not install Icinga Agent` inside the IMC, which results in most configurations not being applied to the Agent, in case it is already installed
2022-02-03 13:05:28 +01:00
Lord Hepipud
251ff8d4e3 Fixes Icinga Agent broken state before IMC install 2022-02-03 13:04:34 +01:00
Lord Hepipud
d5b116240a
Merge pull request #459 from Icinga:fix/update_icinga_not_working_between_snapshot_stable
Fix: Update-Icinga not working between snapshot/stable

Fixes `Update-Icinga` which now supports to update from a snapshot branch and to downgrade properly from snapshot to stable to the latest release packages again.

**NOTE:** It is still **not** entirely supported to downgrade from snapshot to stable, as possible migrations for later versions will **not** be rolled back.
2022-01-30 14:02:51 +01:00
Lord Hepipud
9d388fd684 Fixes Update-Icinga between snapshot/stable 2022-01-30 14:02:00 +01:00
Lord Hepipud
417636a1e4
Merge pull request #458 from Icinga:fix/install_icinga_security_admin_shell
Fix: Install-IcingaSecurity should only run in administrative shell

We have to ensure that `Install-IcingaSecurity` is only allowed to be excuted from an administrative shell to not cause any errors.
2022-01-29 00:43:23 +01:00
Lord Hepipud
6598eb0bb8 Fixes install icinga security for admin shell 2022-01-29 00:42:40 +01:00
Lord Hepipud
d8e87b9272
Merge pull request #456 from Icinga:fix/jea_service_error_does_not_reset
Fix: JEA service error count not resetting itself

While running the Icinga for Windows service in JEA context, it can happen that the corresponding WinRM service is restarted or terminated. The service daemon will keep an eye on that and restart the JEA session up to 5 times, before terminating the service and printing an error.

This fix will not add a grace period, which will reset the failure counter in case the service was running for more than 3 minutes. Which is more then enough runtime to not asume a faulty service behavior.
2022-01-29 00:28:35 +01:00
Lord Hepipud
051ac452b3 Fixes JEA service errors not resetting themself 2022-01-29 00:27:52 +01:00
Lord Hepipud
694c31c7fc
Merge pull request #455 from Icinga:feature/support_check_by_icingaforwindows
Feature: Adds support for check_by_icingaforwindows.ps1

Adds support for the remote execution plugin [check_by_icingaforwindows](https://github.com/LordHepipud/check_by_icingaforwindows), allowing to check from a Linux or Windows remote host by using WinRM to a target Windows machine.

Fully supports JEA profiles, but requires powershell installed on the Linux machine.
2022-01-28 23:35:25 +01:00
Lord Hepipud
e0fc3e52e2 Adds support for check_by_icingaforwindows.ps1 2022-01-28 23:31:23 +01:00
Lord Hepipud
ca1eab8b00
Merge pull request #454 from Icinga:fix/jea_background_daemon_handling
Fix: Background daemon not working in JEA context

The current implementation of the Icinga for Windows background daemon was not working entirely by using JEa profiles.

We fixed the behavior by resolving a problem within our JEA profile catalog builder as well as other factors causing issues. All background daemons will now work properly inside the JEA context.
2022-01-28 21:07:47 +01:00
Lord Hepipud
954e69fde1 Reworks background daemon for JEA context 2022-01-28 21:06:18 +01:00
Lord Hepipud
e3e330f5d3
Merge pull request #452 from Icinga:fix/unhandled_true_in_output_during_installation
Fix: Unhandled true output during installation

Fixes unhandled `true` output on the console while running the installer
2022-01-28 09:03:07 +01:00
Lord Hepipud
c82ab620bc Fixes unhanded true output during installation 2022-01-28 09:01:38 +01:00
Lord Hepipud
f4e58c2005
Merge pull request #444 from Icinga:fix/get-icingaservices_returns_unknown_on_wildcard
Fix: Get-IcingaServices returns unknown for StartType on wildcards

Fixes `Get\-IcingaServices` which returned `Unknown` for service `StartType`, in case the `-Service` argument contained values with wildcard `*`.

Example:

```powershell
$result = (Get-IcingaServices -Service 'icinga*');
$result.values.configuration.starttype;
$result.values.metadata.DisplayName

Name                           Value
----                           -----
value                          Unknown
raw                            5
value                          Unknown
raw                            5
Icinga PowerShell Service
Icinga 2
```

Fixes #443
2022-01-27 22:06:33 +01:00
Lord Hepipud
c96d49551e Fixes Get-IcingaService StartType with wildcards 2022-01-27 22:05:32 +01:00
Lord Hepipud
c8e8683390
Merge pull request #451 from Icinga:fix/jea_error_on_no_modules_and_output
Fix: JEA context cannot be created and command not found output

Fixes the PowerShell not being able to enter the JEA context, if only the Icinga PowerShell Framework is installed and no other component like plugins being present.

Fixes in addition the output for the JEA PowerShell, in case a check command cannot be executed. Previously the pipe `|` for performance data was always added, which is now gone.
2022-01-27 21:59:56 +01:00
Lord Hepipud
210862e683 Fixes JEA error on no modules installed and output 2022-01-27 21:59:38 +01:00
Lord Hepipud
9bcd2210e7
Merge pull request #450 from Icinga:feature/improve_show_commands
Feature: Improve show commands and extend Show-Icinga

Improves show command `Show-IcingaRegisteredServiceChecks` to use new layout for displaying information and adds new command `Show-IcingaRegisteredBackgroundDaemons`, following the same layout and possiblity.

In addition extends `Show-Icinga` by both commands and adds debug and api forwarder features to environment list.
2022-01-27 21:06:54 +01:00
Lord Hepipud
586b55adc0 Improves show commands and extends Show-Icinga 2022-01-27 21:06:13 +01:00
Lord Hepipud
72995178e4
Merge pull request #449 from Icinga:fix/exception_handling_module_import_installation
Fix: Error handling for failed module import

Adds improved exception handling for using `Install\-IcingaComponent` while importing of modules failed, because of missing dependencies for example.
2022-01-27 19:54:13 +01:00
Lord Hepipud
3eac2b3080 Fixes error handling for failed module import 2022-01-27 19:53:10 +01:00
Lord Hepipud
335038c957
Merge pull request #448 from Icinga:feature/secure_array_sorting_external_modules
Feature: Adds support to sort arrays without ScriptBlocks

Adds a new function, allowing to sort arrays with objects inside for specific members wihtout having to use ScriptBlocks on external modules.

This allows a secure usage even in JEA context and external modules are not blocked by calling `ScriptBlocks`
2022-01-27 19:39:10 +01:00
Lord Hepipud
71269705cf Adds feature to sort arrays without ScriptBlocks 2022-01-27 19:37:40 +01:00
Lord Hepipud
d525b22cc1
Merge pull request #447 from Icinga:feature/surpress_errors_on_new_progress_status
Feature: Supresses error messages on progress status

Adds `-PrintErrors` to `New-IcingaProgressStatus`, surpressing all errors by default, allowing to add this for testing internally.
2022-01-27 16:26:16 +01:00
Lord Hepipud
df9f3c890e Supresses error messages on progress status 2022-01-27 16:23:17 +01:00
Lord Hepipud
a3c0fa0da9
Merge pull request #446 from Icinga:fix/progress_status_rework
Fix: Reworks progress preference to remove ui glitches

Reworked Icinga for Windows progress status writer, which now properly closes progress status windows and allows to force close them afterwards, fixing previous UI glitches.
2022-01-27 15:35:39 +01:00
Lord Hepipud
cf52e6372e Fixes progress status writer by reworking 2022-01-27 15:34:17 +01:00
Lord Hepipud
ce67756910
Merge pull request #445 from Icinga:feature/repair_icinga_agent_service_command
Feature: Adds command to repair Icinga Agent service

In some cases it can happen, that during an upgrade of the Icinga Agent, the service fails because on how the .msi installer works.

This adds a new Cmdlet `Repair-IcingaService`, which resolves the problem and repairs the service.
2022-01-27 13:38:14 +01:00
Lord Hepipud
b97aca7d25 Adds command to repair Icinga Agent service 2022-01-27 13:37:13 +01:00
Lord Hepipud
269927cb6e
Merge pull request #442 from Icinga:fix/use_icinga_might_cause_exception
Fix: Exception on Use-Icinga

In some cases it can happen, that Icinga for Windows throws an exception while using \\\`Use\\\-Icinga\\\`. This happens because of an internal handling for rebuilding the cache, which tried to re\\\-import the modules.

This code seems no longer to be required and causes only problems while trying to use \\\`Use\\\-Icinga\\\` while inside the same shell, that Icinga for Windows is being installed the first time in.

As this seems no longer to be required, we will remove this code.
2022-01-26 16:24:23 +01:00
Lord Hepipud
293d5c06fa Fixes possible exception on Use-Icinga 2022-01-26 16:23:38 +01:00
Lord Hepipud
318f8c5ac0 Fixes doc spelling errors 2022-01-26 15:05:13 +01:00
Lord Hepipud
97bd4448a8
Merge pull request #441 from Icinga:fix/exception_on_framework_loading
Fix: Exception on loading by missing environment

Fixes an exception while loading the Framework, caused by a race condition for missing environment variables which are accessed by some plugins before the Framework is loaded properly.
2022-01-25 12:19:42 +01:00
Lord Hepipud
7faa516c15 Fixes exception on loading by missing environment 2022-01-25 12:18:08 +01:00
Lord Hepipud
db4d86e5b5
Merge pull request #440 from Icinga:feature/add_service_upgrade_notification
Feature: Adds upgrade notification to service binary

Ensures we add an upgrade notification if we are running the Icinga for Windows Service binary older than v1.2.0, which will not work with Icinga for Windows v1.8.0 or later.
2022-01-25 11:55:23 +01:00
Lord Hepipud
fe000c020f Adds upgrade notification to service binary 2022-01-25 11:54:18 +01:00
Lord Hepipud
a47af1e60a Updates docs 2022-01-25 11:28:33 +01:00
Lord Hepipud
45d189756e
Merge pull request #439 from Icinga:fix/move_performance_counter_to_private
Fix: Moves PerformanceCounter to private space

Moves PerformanceCounter to private space from previous public, which caused some problems.
2022-01-25 11:27:33 +01:00