Commit graph

1509 commits

Author SHA1 Message Date
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
Lord Hepipud
e7c33d225f Fixes plugin threshold conversion and adds % unit 2021-02-23 17:25:47 +01:00
Lord Hepipud
6f89f198f6
Merge pull request #207 from Icinga:feature/customize_check_label
Adds feature to customize label for checks

Adds new Argument `-LabelName` to `New-IcingaCheck`, allowing the developer to provide custom label names for checks and override the default based on the check name.
2021-02-23 13:48:03 +01:00
Lord Hepipud
b6da72b2b4 Adds feature to customize label for checks 2021-02-23 13:46:52 +01:00
Lord Hepipud
ec65665c25
Merge pull request #206 from Icinga:fix/background_service_checks_not_working
Fix: Background service check daemon data pool separation and memory leak

Improves the background daemon by separating each single configured check into an own data pool, preventing data of leaking from one thread to another which might cause a memory leak in long term with plenty of background checks defined.

This might also reduce CPU impact because lesser data has to be processed.
2021-02-23 11:02:17 +01:00
Lord Hepipud
b9eca3a259 Fix background service daemon; fix memory leak 2021-02-23 10:58:03 +01:00
Lord Hepipud
0a57bce802
Merge pull request #205 from Icinga:feature/open_config_file_as_readonly
Feature: Ensure config.json is opened as read-only

In some cases it can happen that multiple processes access our config file. By default `Get-Content` is not thread save and might result in errors while reading the file content.

In general we should use a read-only attempt for the config.json and write it only if required.
2021-02-22 17:34:14 +01:00
Lord Hepipud
80051d6732 Ensure config.json is opened as read-only 2021-02-22 17:31:58 +01:00
Lord Hepipud
9a1c187e90
Merge pull request #180 from Icinga:feature/split_thread_content_local_usage_only
Feature: Ensure thread results are separated from each other by default

In case multitple background daemons are running and executing check plugins, it can happen that results overlap from one thread to another. A CPU check might then include information from another service check for example.

We fix this by locking each check result data into an own thread, preventing other threads from accessing the data.
2021-02-22 16:56:20 +01:00
Lord Hepipud
b5d518dff9 Use non-shared globals for check results 2021-02-22 16:54:39 +01:00
Lord Hepipud
4c859cf184
Merge pull request #203 from Icinga:doc/adds_code_cache_docs
Adds code caching docs and removes experimental

Removes experimental state of the Icinga PowerShell Framework code caching and adds docs on how to use the feature
2021-02-10 16:40:51 +01:00
Lord Hepipud
27e8bca974 Adds code caching docs and removes experimental 2021-02-10 16:39:59 +01:00
Lord Hepipud
ee03d742b5
Merge pull request #198 from Icinga:feature/add_support_to_flush_api_directory_by_cmdlet
Feature: Adds Cmdlet to flush Icinga Agent API directory
2021-02-10 16:13:27 +01:00