Commit graph

1371 commits

Author SHA1 Message Date
Lord Hepipud
b6ce0c40e6
Merge pull request #236 from Icinga:feature/stop_icinga_agent_during_framework_upgrade
Feature: Stop Icinga Agent during Framework upgrade

In some rare cases it can happen that during the upgrade of the Icinga PowerShell Framework, files are still used caused by the Icinga Agent running in the background.
To remove this impact, we will now stop the Icinga Agent in case it is running before upgrading the Framework and starting the Icinga Agent again, in case it was started before.
2021-05-25 10:10:09 +02:00
Lord Hepipud
acb8cbaf5c Stops Icinga Agent during Framework upgrade 2021-05-25 10:09:14 +02:00
Lord Hepipud
476de7d9cc
Merge pull request #254 from Icinga/bugfix/make-exception-enums-not-plugin-specific
Bugfix: Make exception enums not plugin specific
2021-05-22 10:41:39 +02:00
Yonas Habteab
581e0d1a56 Make exception enums not plugin specific 2021-05-21 17:51:59 +02:00
Lord Hepipud
56c2ab4188
Merge pull request #252 from Icinga:fix/improve_module_error_handling
Feature: Inform the user if plugins are executed which are not meeting dependency requirements

Improve error handling on plugin execution by informing the user if the plugin is simply not installed or the entire module was not loaded because of errors or missing dependencies

Fixes #250
2021-05-21 11:37:31 +02:00
Lord Hepipud
47203d39c5 Feature: Inform the user if plugins are executed which are not meeting dependency requirements
Fixes #250
2021-05-21 11:02:51 +02:00
Lord Hepipud
0a09d63cbd
Merge pull request #248 from Icinga/feature/improve_test_for_performance_counter_categories
Feature: Improve test if Performance Counter category exist

This will improve `Test-IcingaPerformanceCounterCategory` by creating an object for the Performance Counter category provided and checking if it is a valid object instead of relying on the registry which might not contain all categories in the correct language.
2021-05-21 09:38:41 +02:00
Lord Hepipud
19a6952cee Improve test if perf counter category exist 2021-05-19 15:24:48 +02:00
Lord Hepipud
d6f164410b
Merge pull request #233 from Icinga:feature/supress_console_output_except_for_plugin_data
Feature: Suppress other messages then plugin output

Adds feature to suppress any kind of console output except for plugin output and performance data, while Icinga for Windows is initialised with `Use-Icinga -Minimal`
2021-05-19 09:21:05 +02:00
Lord Hepipud
01b39ea514 Supress other messages then plugin output 2021-05-19 09:19:43 +02:00
Lord Hepipud
527b3951ba
Merge pull request #238 from Icinga:fix/Exit-IcingaExecutePlugin-throws-exception-for-localized-PerfCounters
Fix: Exit-IcingaExecutePlugin throws exception for localized PerfCounters

Encoding for REST-Api check calls was wrong during queue and while reading the result. We will now enfore UTF8 in both ways.

Fixes #232
2021-05-11 09:50:13 +02:00
Lord Hepipud
5f3d08ba84
Merge pull request #243 from Icinga:feature/add_stacktrace_for_plugin_execution_failure
Feature: Adds stacktrace for plugin runtime error

Adds StackTrace for exception output in case plugin execution fails.
2021-05-07 14:35:58 +02:00
Lord Hepipud
41f8b2a7e5 Adds stacktrace for plugin runtime error 2021-05-07 14:34:39 +02:00
Lord Hepipud
0b6e2235ed Exit-IcingaExecutePlugin throws exception for localized PerfCounters
Fixes #232
2021-05-04 17:36:31 +02:00
Lord Hepipud
eb5dd020b5
Merge pull request #241 from Icinga:feature/force_new_tls_versions_on_rest_api_checks
Feature: Force new TLS version for REST

Ensures we use TLS 1.1 and 1.2 for REST-Api calls, as used certificates in general are created with these.
2021-05-04 17:34:32 +02:00
Lord Hepipud
bcb24e088a Force new TLS version for REST 2021-05-04 17:33:39 +02:00
Lord Hepipud
566a64cc6c
Merge pull request #240 from Icinga:fix/adds_missing_wmi_service_information
Fix: Adds missing attributes for services

While filtering for certain services with `Get-IcingaServices`, there were some attributes missing from the collection. These are now added resulting in always correct output data.
2021-05-04 15:06:41 +02:00
Lord Hepipud
7bd8dccff8 Fixes missing attributes for services 2021-05-04 15:05:24 +02:00
Lord Hepipud
15fae3d60b
Merge pull request #239 from Icinga:feature/hide_securestring_customfields_values
Feature: Hide SecureString CustomFields input in Icinga Director

Adds feature to mask CustomField input values with `*` within the Icinga Director, in case the argument is defined as `SecureString`. Please ensure to read the [upgrading docs](https://icinga.com/docs/icinga-for-windows/latest/doc/30-upgrading-framework/) carefully, before importing new configurations.

Fixes #229
2021-05-04 10:42:02 +02:00
Lord Hepipud
c9f657a413 Adds feature to hide SecureString in Director 2021-05-04 10:38:54 +02:00
Lord Hepipud
7697b6b015
Merge pull request #235 from Icinga:feature/add_eventlog_analyzer_cmdlet
Adds Cmdlet for analysing EventLog content

Adds new Cmdlet `Show-IcingaEventLogAnalysis` to get a better overview on how many log entries are present within the EventLog based on hour, minute and day average/maximum for allowing a more dynamic configuration for `Invoke-IcingaCheckEventLog`
2021-04-28 15:25:13 +02:00
Lord Hepipud
89764e5ba5 Adds Cmdlet for analysing EventLog content 2021-04-28 15:23:30 +02:00
Lord Hepipud
d7a1745e39
Merge pull request #234 from Icinga:feature/allow_custom_exception_list_for_icinga_exceptions
Adds support to allow custom exception lists
2021-04-28 09:45:52 +02:00
Lord Hepipud
48d2249605 Adds support to allow custom exception lists 2021-04-28 09:44:40 +02:00
Lord Hepipud
8eb8467dad Updates changelog 2021-03-10 08:36:35 +01:00
Lord Hepipud
4909f87708 Fixes ConvertTo-IcingaSecureString exceptions 2021-03-10 08:32:55 +01:00
Lord Hepipud
87f7fec085 Updates version to v1.5.0 2021-03-10 08:31:12 +01:00
Lord Hepipud
4a4ca73594 Updates version to v1.4.1 2021-03-10 07:54:02 +01:00
Lord Hepipud
637d06e05d Fix memory leak on background service daemon 2021-03-10 07:52:55 +01:00
Lord Hepipud
20a4c8d4d3 Fixes ConvertTo-IcingaSecureString exceptions 2021-03-10 07:52:35 +01:00
Lord Hepipud
a504aa3704
Merge pull request #217 from bieba/master
fixes new-item asking for input type
2021-03-01 16:16:33 +01:00
Lord Hepipud
ccf00b5fff Updates changelog and upgrading docs 2021-03-01 14:19:29 +01:00
bieba
c69a6baf4e
fixes new-item asking for input type 2021-03-01 13:07:24 +01:00
Lord Hepipud
e81b2f6356
Merge pull request #215 from Icinga:fix/command_argument_parsing_used_wrong_variable
Fix: Wrong variable used for API check request
2021-03-01 12:39:07 +01:00
Lord Hepipud
33aca914b4 Fixes wrong variable used for API check request 2021-03-01 12:38:35 +01:00
Lord Hepipud
2ae5aff7cf
Merge pull request #214 from Icinga:fix/race_condition_exception_for_plugin_execution
Fix wrong plugin not installed unknown checkresult

Unknown checks for the plugin handler were called to soon, as the minimal configuration does not load old check commands for the plugins.
In addition API checks did not throw an unknown and were not catched properly
2021-03-01 12:08:59 +01:00
Lord Hepipud
e7c341e30a Fix wrong plugin not installed unknown checkresult 2021-03-01 12:07:57 +01:00
Lord Hepipud
ed43260bec Changelog update 2021-03-01 11:17:53 +01:00
Lord Hepipud
b9eb54d9ce
Merge pull request #213 from Icinga:feature/icinga_for_windows_management_console
Feature: Adds experimental Feature "Management Console"

Adds new experimental feature `Management Console` for better and easier management for Icinga for Windows and improved automation and deployed.

In addition following changes were made:
* Added support to fetch network interface for `Register-IcingaDirectorSelfServiceHost` directly from provided director url
* Added support for Icinga Framework Code Cache file being deleted once the feature is disabled
* Added support to suppress any console output for the current PowerShell session by using `Disable-IcingaFrameworkConsoleOutput` and to enable it again by using `Enable-IcingaFrameworkConsoleOutput`
* Added support for `-Release` argument for `Get-IcingaFrameworkServiceBinary` suppressing questions and using GitHub as source directly if set
* Added support to color console output by using `Write-IcingaConsolePlain` with the new argument `-ForeColor`
* Added new feature to write Icinga for Windows console headers more easily, better structured and formatted with `Write-IcingaConsoleHeader` by adding line content as array elements
* Fixed possible crash on `Get-IcingaAgentFeatures` if PowerShell is not running as administrator and therefor the command `icinga2 feature list` can not be processed
* Fixed `ConvertTo-IcingaSecureString` to return `$null` for empty strings instead of throwing an exception
2021-03-01 11:17:12 +01:00
Lord Hepipud
c4f6fcc1fd Adds experimental Feature "Management Console" 2021-03-01 11:15:21 +01:00
Lord Hepipud
6cbd3cef2a
Merge pull request #212 from Icinga:feature/add_experimental_api_check_doc_removes_cmdlets_on_framework
Adds Api checks docs; Removes cmdlets

Adds documentation for new experimental feature to forward checks to API and removes Cmdlets for managing whitelist/blacklist entries as we add them inside the REST-Api module.
2021-02-24 18:30:39 +01:00
Lord Hepipud
22fdf18a5d Adds Api checks docs; Removes cmdlets 2021-02-24 18:30:05 +01:00
Lord Hepipud
433511597e Renames uninstaller arg Component to Name 2021-02-24 15:12:14 +01:00
Lord Hepipud
7d3ac7ef08
Merge pull request #211 from Icinga:feature/add_support_to_uninstall_components
Feature: Adds support to uninstall Icinga for Windows

Adds feature to uninstall single components for Icinga for Windows or to uninstall everything and start entirely from new.
2021-02-24 14:23:04 +01:00
Lord Hepipud
1638465b06 Adds feature to uninstall Icinga for Windows 2021-02-24 14:21:40 +01:00
Lord Hepipud
96afdc7188
Merge pull request #204 from Icinga:feature/forward_checks_to_internal_api
Feature: Adds experimental feature for internal API checks

Adds experimental feature to forward checks executed by the Icinga Agent to an internal REST-Api, to reduce the performance impact on systems with lower ressources available
2021-02-24 13:05:51 +01:00
Lord Hepipud
7b847bdb78 Adds experimental feature for internal API checks 2021-02-24 12:49:37 +01:00
Lord Hepipud
a5a401f079
Merge pull request #210 from Icinga:fix/escape_strings_in_array_dsl_properly
Fixes DSL for building array elements escaped

Updates the Icinga DSL for building PowerShell arrays to ensure all string values are properly escaped with `'`. In case the user already wrapped commands with `'` by himself, this will not have an effect as we only add single quotes for escaping if they are not present already.
2021-02-24 09:34:15 +01:00
Lord Hepipud
742d7e06ce Fixes DSL for building array elements escaped 2021-02-24 09:33:04 +01:00
Lord Hepipud
0893325293
Merge pull request #208 from Icinga:fix/fix_generic_plugin_threshold_conversion
Fix: Plugin threshold conversion and adds % unit handling

Fixes `Convert-IcingaPluginThresholds` which sometimes did not return proper numeric usable values for our internal functions, causing issues on plugin calls. In addition the function now also supports the handling for % units.
2021-02-23 17:26:56 +01:00