Commit graph

1224 commits

Author SHA1 Message Date
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
Lord Hepipud
82fb8945c4
Merge pull request #138 from Icinga:fix/byte_conersion_overflow
Bugfix: Fixing value overflow on Convert-Bytes Cmdlet

Fixes an issue while converting data size values from any other datatype to bytes which will cause an overflow and might result in issues during comparison.
2020-10-30 09:57:50 +01:00
Lord Hepipud
4bc03b6bfa Fixing value overflow for Convert-Bytes 2020-10-30 09:56:33 +01:00
Lord Hepipud
84e6ff32b1
Merge pull request #137 from Icinga/feature/add-conversion-and-compare-unixtime-feature
Feature: Compare current time with DateTime Object
2020-10-30 07:35:35 +01:00
Yonas Habteab
06aad754a7 Compare current time with DateTime object 2020-10-29 15:33:55 +01:00
Lord Hepipud
8fe4ea984d
Merge pull request #136 from Icinga/feature/add_support_to_ignore_empty_checkpackages
Feature: Adds support to ignore empty check packages
2020-10-15 15:20:42 +02:00
Lord Hepipud
082fc18555 Adds support to ignore empty check packages 2020-10-15 15:19:55 +02:00
Lord Hepipud
184b3cd28e
Merge pull request #135 from Icinga:doc/update_roadmap
Doc: Update roadmap with new topics and releases
2020-10-13 17:40:18 +02:00
Lord Hepipud
d3773a957a Updates roadmap 2020-10-13 17:39:09 +02:00
Lord Hepipud
77815898e2
Merge pull request #130 from Icinga:fix/crash_on_background_service_checks
Bugfix: Fix crash on background service execution caused by missing Perf Data cache

Fix crash while running services as background task to collect metrics over time by missing Performance Counter cache initialisation.
2020-10-01 16:51:16 +02:00
Lord Hepipud
744e21b2c7 Fix crash on background checks on perf data cache 2020-10-01 16:49:58 +02:00
Lord Hepipud
8a99b1761f
Merge pull request #128 from Icinga:fix/icinga_timer_unhandled_output
Fixes uncatched invisible output on Start-IcingaTimer

Fixes unhandled output from loading `System.Reflection.Assembly` which can cause weird side effects for plugin outputs
2020-09-15 15:48:50 +02:00
Lord Hepipud
854b7fd997 Fixes uncatched invisible output 2020-09-15 15:46:33 +02:00
Lord Hepipud
26e335ee8a
Merge pull request #127 from Icinga:fix/mssql_connection_error_handling
Fixes MSSQL error handling on Integrated Security

Fixes wrong error message on failed MSSQL connection due to database not reachable by using `-IntegratedSecurity`
2020-09-15 15:42:21 +02:00
Lord Hepipud
d2a51495b2 Fixes MSSQL error handling on Integrated Security 2020-09-15 15:41:20 +02:00
Lord Hepipud
22024c7549
Merge pull request #126 from Icinga/doc/fix-image-path
Fix path for icons in the introduction section
2020-08-31 10:30:40 +02:00
Blerim Sheqa
6f53bf960b Fix path for icons in the introduction section 2020-08-31 10:17:53 +02:00
Lord Hepipud
ccb67ff960 Sets Windows Terminal images url to icinga.com 2020-08-29 08:02:41 +02:00
Lord Hepipud
f676e51ade Sets next version to v1.3.0 2020-08-29 08:01:21 +02:00
Lord Hepipud
dc863d7f09 Updates release date for v.1.2.0 2020-08-28 22:31:11 +02:00
Lord Hepipud
779ac48d80
Merge pull request #125 from Icinga/feature/windows_terminal_integration
Adds Windows Terminal integration
2020-08-28 15:27:32 +02:00
Lord Hepipud
e2d58ba182 Adds Windows Terminal integration 2020-08-28 15:24:48 +02:00