Commit graph

1645 commits

Author SHA1 Message Date
Lord Hepipud
8a0cddccc2
Merge branch 'master' into feature/support_knowledgebase_id_on_exception 2020-11-24 12:13:32 +01:00
Lord Hepipud
3e5fe3d4f5 Adds support for knowledge base id on exceptions 2020-11-24 12:09:34 +01:00
Lord Hepipud
0f445a3008
Merge pull request #164 from Icinga:feature/adds_exit_on_windows_terminal_integration
Feature: Adds exit to Windows Terminal integration to close shell on exit

Adds exit after calling icinga on Windows Terminal integration to ensure the shell will close in case the Icinga shell is closed.
2020-11-23 16:41:58 +01:00
Lord Hepipud
5dd1167549 Adds exit to Windows Terminal integration 2020-11-23 16:41:25 +01:00
Lord Hepipud
0469908999
Merge pull request #162 from Icinga:feature/add_exception_plugin_args_64_digits
Feature: Adds error on config generator for 64 digit args

Adds feature to test the length of plugin custom variables during config generation and throws error in case the total length is bigger than 64 digits, as imports into the Icinga Director by using baskets is not possible otherwise
2020-11-20 15:14:35 +01:00
Lord Hepipud
ba131e7bef Adds error on config generator for 64 digit args 2020-11-20 15:13:32 +01:00
Lord Hepipud
985a142bf3
Merge pull request #161 from Icinga:doc/update_upgrading_docs
Doc: Adds upgrading notes for plugins and kickstart for v1.3.0
2020-11-20 12:37:53 +01:00
Lord Hepipud
eae48d222e Adds upgrading notes for plugins and kickstart 2020-11-20 12:36:27 +01:00
Lord Hepipud
8769c8dd6d
Merge pull request #160 from Icinga:fix/install_release_components_fails_with_new_web_method
Fix: Instaling PowerShell components fails for release branch

Installing IcingaPowerShell components fails with new web method for release packages
2020-11-20 12:05:33 +01:00
Lord Hepipud
6606e73226 Fix invalid check if web response has errors 2020-11-20 12:03:42 +01:00
Lord Hepipud
d9e5551ad5
Merge pull request #159 from Icinga:fix/framework_update_fails_on_old_versions_due_to_code_cache
Fix: Fixes crash during update due to code cache feature
2020-11-20 08:25:13 +01:00
Lord Hepipud
7f86e2691a Fixes crash during update due to code cache 2020-11-20 08:23:29 +01:00
Lord Hepipud
0721b2f793
Merge pull request #158 from Icinga:doc/update_wmi_kb
Doc: Updates WMI KB for Winmgmt service restart
2020-11-20 02:04:34 +01:00
Lord Hepipud
24a2676171 Updates WMI kb for Winmgmt service restart 2020-11-20 02:03:08 +01:00
Lord Hepipud
3ec7559d12
Merge pull request #157 from Icinga/feature/Feature-Requests-Add-Proxy-Server-support
Feature: Add Proxy Server support for web calls

Also re-arranges web content by using old content from lib/web into lib/webserver, while new lib/web contains the proxy configuration.
2020-11-19 17:22:37 +01:00
Lord Hepipud
c38930c2de
Merge branch 'master' into feature/Feature-Requests-Add-Proxy-Server-support 2020-11-19 17:21:58 +01:00
Lord Hepipud
3d875639e4 Feature Requests: Add Proxy Server support
Also re-arranges web content by using old content from lib/web into lib/webserver, while new lib/web contains the proxy configuration.
Fixes #19
2020-11-19 17:16:33 +01:00
Lord Hepipud
09177a0851
Merge pull request #156 from Icinga:fix/Feature-Allow-sharing-of-local-variables-with-Icinga-Shell
Feature: Allow sharing of local variables with Icinga Shell
2020-11-19 13:47:18 +01:00
Lord Hepipud
33caeb7ce6 Feature: Allow sharing of local variables with Icinga Shell
Fixes #121
2020-11-19 13:44:56 +01:00
Lord Hepipud
8302903d2f
Merge pull request #155 from Icinga/feature/enable_debug_output_for_Wmi_calls
Feature: Add debug output for Get-IcingaWindowsInformation calls to EventLog

Adds support to write all objects collected by `Get-IcingaWindowsInformation` into the Windows EventLog in case the debug output for the Icinga PowerShell Framework is enabled.
2020-11-19 13:05:38 +01:00
Lord Hepipud
3ae042b3c4 Adds debug output to eventlog for Wmi calls 2020-11-19 13:03:41 +01:00
Lord Hepipud
f166949037
Merge pull request #154 from Icinga/doc/Uninstall-agent-from-powershell
Doc: Add description on how to uninstall Icinga Agent and add KB for issues
2020-11-18 23:38:16 +01:00
Lord Hepipud
e4e8f2c394 Docs for Uninstall agent from powershell
Fixes #148
2020-11-18 23:37:16 +01:00
Lord Hepipud
2deeb83d38
Merge pull request #142 from Icinga/feature/add_code_cache_for_faster_framework_loading
Experimental: Adds code caching for faster framework loading

## Current Situation

Currently the entire Framework is taking a huge amount of time to load the files. This causes several issues:

* Slow loading increases the runtime of checks
* High CPU usage for the initial loading of the Framework
* High CPU usage over a longer period of time, cause more impcact on the systems

## Possible solutions

### Add caching

To reduce the impact for the Framework loading, we could add a cache file containing all Cmdlets, Enums and Functions allowing us to import file on initialization instead of having of to search for all `.psm1` files and load them one by one

### Use Nested Modules for PowerShell Plugins

PowerShell plugins right now are using `Use-IcingaPlugins` which searchs for all `.psm1` files inside the plugin folder to load them. We should use `NestedModules` here, as the overall impact is lower. On Framework side we can't do this how ever without loading times to explode. Plugins are tracked [at issue #87 here](https://github.com/Icinga/icinga-powershell-plugins/pull/87)

## Current Status

**Mitigated**

## Usage

You can enable/disable this feature by using `Enable-IcingaFrameworkCodeCache` and `Disable-IcingaFrameworkCodeCache`. Updating the cache is done with `Write-IcingaFrameworkCodeCache`
2020-11-18 18:58:35 +01:00
Lord Hepipud
8d4e66f1c6
Merge branch 'master' into feature/add_code_cache_for_faster_framework_loading 2020-11-18 18:58:05 +01:00
Lord Hepipud
fd4d634ed5
Merge pull request #152 from Icinga/fix/array_handling_for_validateset
Fix: Array handling for ValidateSet and array rendering for config generator

Empty arrays will now properly be rendered as empty array with @()instead of $null. In addition the config renderer now also supports ValidateSet for array entries
2020-11-18 18:21:04 +01:00
Lord Hepipud
5060dec97a Fixes array handling for ValidateSet
Empty arrays will now properly be rendered as empty array with @()
instead of $null. In addition the config renderer now also supports
ValidateSet for array entries
2020-11-18 18:18:16 +01:00
Lord Hepipud
f31ac25edd
Merge pull request #151 from Icinga/docs/adds_knowledge_base
Doc: Adds first knowledge base entries

Adds first knowledge base entries for Icinga for Windows.
2020-11-18 16:46:37 +01:00
Lord Hepipud
78432adaed Adds first knowledge base entries 2020-11-18 16:39:17 +01:00
Lord Hepipud
b31cd04a97
Merge pull request #149 from Icinga/feature/add_wmi_permission_setter
Feature: Adds support to add/remove/test Wmi permissions

You can now use 'Add-IcingaWmiPermissions' to add permissions for a specific user and namespace and remove them with
'Remove-IcingaWmiPermissions'
2020-11-18 14:49:43 +01:00
Lord Hepipud
f9f095e16b Adds support to add/remove/test Wmi permissions
You can now use 'Add-IcingaWmiPermissions' to add permissions for a
specific user and namespace and remove them with
'Remove-IcingaWmiPermissions'
2020-11-18 14:48:31 +01:00
Lord Hepipud
3ca5f44bc2
Merge pull request #147 from Icinga/fix/ssl_error_on_name_change
Fix: SSL creation on reconfigure might fail if naming changed from upper/lower case

Fixes an issue while changing the hostname between upper/lower case which might cause unwanted exceptions on one hand but also required manual signing of requests on the CA master as the signing process was not completed
2020-11-12 15:50:39 +01:00
Lord Hepipud
a5e7e2b0dc Fix error on SSL reconfigure for name changes 2020-11-12 15:50:00 +01:00
Lord Hepipud
cc1762ba51
Merge pull request #146 from Icinga/fix/api_disabled_after_successfull_cert_installation
Fix: Icinga API being disabled after successfull certificate installation
2020-11-12 14:34:19 +01:00
Lord Hepipud
ee4e890d2e Fixes Icinga API being disabled after cert install 2020-11-12 14:33:42 +01:00
Lord Hepipud
3f56d6f602
Merge pull request #145 from Icinga/doc/adds_doc_for_cert_installation
Doc: Adds help for certificate installation Cmdlet
2020-11-10 11:03:31 +01:00
Lord Hepipud
c7a7172191 Updates help for certificate installation 2020-11-10 11:02:16 +01:00
Lord Hepipud
37c0824be5 Experimental: Adds code caching for faster loading 2020-11-06 16:06:38 +01:00
Lord Hepipud
67c7d3c8e0
Merge pull request #60 from Icinga/feature/network_routes
Bugfix: Handle multiple network interfaces on discovery and add support for Windows 2008 R2

* Fixes issue on hosts with mulitple interfaces that provide virtual interfaces, causing problems on Director Self-Service creation
* Adds support for Windows 2008 R2
2020-11-06 15:23:27 +01:00
Lord Hepipud
162f8102fb Fixes multi interface support on interface discover
* Fixes issue on hosts with mulitple interfaces that provide virtual
interfaces, causing problems on Director Self-Service creation
* Adds support for Windows 2008 R2
2020-11-06 15:21:10 +01:00
Lord Hepipud
8b15df7ce0
Merge pull request #134 from Icinga/fauture/check-for-existing-wmi-classes
Check whether or not WMI class exists
2020-11-05 15:58:45 +01:00
Yonas Habteab
9a42c9efa1 Check whether or not a specific wmi class exists
Tests if a specific WMI class including the Namespace can be accessed
and returns status codes for possible errors/exceptions taht might
occure. Returns binary operator values for easier comparison. In case
no errors occured it will return $TestIcingaWindowsInfoEnums.TestIcingaWindowsInfo.Ok
2020-11-05 15:53:44 +01:00
Lord Hepipud
54e583f139
Merge pull request #143 from Icinga/bugfix/do-not-check-space-before-open-brace
Disable OnSameLine & don't check space before open brace
2020-11-05 15:21:10 +01:00
Yonas Habteab
98603071ab Disable OnSameLine & don't check space before open brace
Because the script analyzer often complains that we can always use the
function open brace on the same line as the function name, which is not
the case, I finally decided to correct this today. I set the attribute
OnSameLine to False and disabled the check for space before open Brace.
2020-11-05 13:34:14 +01:00
Lord Hepipud
df03f1e736
Merge pull request #141 from Icinga/feature/generic_cmdlet_for_icinga_threshold_conversion
Feature: Add generic Cmdlet to convert Icinga Thresholds

Adds Cmdlet `Convert-IcingaPluginThresholds` as generic approach to convert Icinga Thresholds with units to the lowest unit of this type.
2020-11-03 13:40:45 +01:00
Lord Hepipud
49d9c6000d Adds generic Cmdlet to convert Icinga Thresholds 2020-11-03 13:39:13 +01:00
Lord Hepipud
5b7861780a
Merge pull request #140 from Icinga/fix/unable_to_fetch_module_version_for_unloaded_modules
Fix: Version fetching for not loaded modules is impossible

Fixes version fetching for not loaded modules during upgrades/plugin calls with `Get-IcingaPowerShellModuleVersion`
2020-11-02 12:59:49 +01:00
Lord Hepipud
70def91d9d Fixes version fetching for unloaded modules 2020-11-02 12:58:54 +01:00
Lord Hepipud
d51bcb684e
Merge pull request #139 from Icinga/feature/add_cmdlet_to_open_shell_as_different_user
Feature: Add Cmdlet to open Icinga Shell as different user

Add Cmdlet Start-IcingaShellAsUser to open an Icinga Shell as different user for testing
2020-10-30 15:11:39 +01:00
Lord Hepipud
5e0ca2e8ad Adds feature to open an Icinga Shell as other user 2020-10-30 15:11:01 +01:00